CC = tcc DIRL = c:\tc\lib DIRH = c:\tc\include CFLAGS= -I$(DIRH) -L$(DIRL) -DMYGETOPT EXECS = crop.exe scpict.exe msh.exe p2chr.exe index.exe mergep.exe itrlc.exe lsp.exe filterp.exe joinp.exe mkpict.exe all: $(EXECS) joinp.exe: joinp.c getopt.obj $(CC) $(CFLAGS) -ejoinp joinp.c getopt.obj libpict.lib mathc.lib mkpict.exe: mkpict.c getopt.obj $(CC) $(CFLAGS) -emkpict mkpict.c getopt.obj libpict.lib mathc.lib scpict.exe: scpict.c getopt.obj $(CC) $(CFLAGS) -escpict scpict.c getopt.obj libpict.lib mathc.lib crop.exe: crop.c $(CC) $(CFLAGS) -ecrop crop.c libpict.lib msh.exe: msh.c $(CC) $(CFLAGS) -emsh msh.c libpict.lib p2chr.exe: p2chr.c $(CC) $(CFLAGS) -ep2chr p2chr.c libpict.lib index.exe: index.c getopt.obj $(CC) $(CFLAGS) -eindex index.c getopt.obj libpict.lib filterp.exe: filterp.c getopt.obj $(CC) $(CFLAGS) -efilterp filterp.c getopt.obj libpict.lib mathc.lib mergep.exe: mergep.c getopt.obj $(CC) $(CFLAGS) -emergep mergep.c getopt.obj libpict.lib mathc.lib itrlc.exe: itrlc.c getopt.obj $(CC) $(CFLAGS) -eitrlc itrlc.c getopt.obj libpict.lib lsp.exe: lsp.c getopt.obj $(CC) $(CFLAGS) -elsp lsp.c getopt.obj libpict.lib getopt.obj: getopt.c $(CC) $(CFLAGS) -c getopt.c clean: del *.obj new: del $(EXECS) make all