TOPDIR = ../ CLEANFILES=smtpmap scannertest include $(TOPDIR)/makefile.conf all smtpmap-sub: small_socket.o mstring.o mfile.o scanner_smtp.o smtpmap.o fp_return.o fp_rfc.o fp.o fp_conf.o scanner_server.o $(CC) $(CFLAGS) $(LDFLAGS) $(INC) small_socket.o mstring.o mfile.o scanner_smtp.o fp_return.o fp_rfc.o fp.o fp_conf.o scanner_server.o smtpmap.o -o smtpmap %.o:%.cpp $(CC) $(CFLAGS) $(CPPFLAGS) $(INC) -c $*.cpp clean:: @echo Cleaning up @rm -f *.o $(CLEANFILES) scannertest:: small_socket.o mstring.o mfile.o scanner_smtp.o fp_conf.o fp_return.o fp_rfc.o fp.o scannertest.o $(CC) $(CFLAGS) $(INC) small_socket.o mstring.o mfile.o scanner_smtp.o fp_conf.o fp_return.o fp.o fp_rfc.o scannertest.o -o scannertest depend dep:: @echo Creating dependencies @$(CC) $(DEPFLAG) *.cpp > .depend 2> .depend.err || touch .depend