DBM=-DCZ_DATAB=\"cz2czdbm.dat\" MACROS=-DUNIX=0 -DLINUX=0 -DDOS=1 XMACROS=-DUNIX=0 -DDOS=1 CFLAGS= LDFLAGS=-lgdbm XLDFLAGS=-lgdbm -lpdcur CC=gcc all: prog xprog czget czput czput: cz2czput.c $(CC) $(CFLAGS) $(DBM) -o cz2czput.exe cz2czput.c -lgdbm czget: cz2czget.c $(CC) $(CFLAGS) $(DBM) -o cz2czget.exe cz2czget.c -lgdbm xprog: xcz2cz.o autodet.o tables.o codes.o $(CC) -o xcz2cz.exe xcz2cz.o autodet.o tables.o codes.o $(XLDFLAGS) xcz2cz.o: xcz2cz.c $(CC) $(CFLAGS) $(XMACROS) $(DBM) -c xcz2cz.c prog: cz2cz.o autodet.o errors.o conf.o tables.o databadd.o codes.o $(CC) -o cz2cz.exe cz2cz.o autodet.o conf.o errors.o tables.o databadd.o codes.o $(LDFLAGS) cz2cz.o: cz2czdef.h cz2cz.c $(CC) $(CFLAGS) $(MACROS) $(DBM) -c cz2cz.c autodet.o: cz2czdef.h autodet.h autodet.c $(CC) $(CFLAGS) $(DBM) -c autodet.c conf.o: cz2czdef.h conf.h conf.c $(CC) $(CFLAGS) -c conf.c errors.o: cz2czdef.h errors.h errors.c $(CC) $(CFLAGS) -c errors.c tables.o: cz2czdef.h tables.h tables.c $(CC) $(CFLAGS) -c tables.c codes.o: cz2czdef.h codes.h codes.c $(CC) $(CFLAGS) -c codes.c databadd.o: cz2czdef.h databadd.h databadd.c $(CC) $(CFLAGS) $(DBM) -c databadd.c install: cz2czput cz2czdbm.txt cz2czdbm.dat copy cz2czrc cz2czrc.cnf clean: del *.o