# Copyright (C) 2000,2007 Alan DeKok # This Makefile is free software; Alan DeKok # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. # # These are what I use on Linux. Your mileage may vary. #CC=gcc -Wall -g #LEX=flex pscan: scanner.yy.o pscan.o $(CC) scanner.yy.o pscan.o -o pscan $(LDFLAGS) scanner.yy.o: scanner.yy.c $(CC) $(CPPFLAGS) $(CFLAGS) -c scanner.yy.c -o scanner.yy.o scanner.yy.c: scanner.l $(LEX) -t scanner.l > scanner.yy.c pscan.o: pscan.c pscan.h FILES = COPYING find_formats.sh Makefile pscan.c pscan.h README scanner.l \ stackguard.txt test.c wu-ftpd.pscan pscan.tar.gz: $(FILES) @tar -zcf pscan.tar.gz $(FILES) clean: rm -f *.o *~ pscan scanner.yy.c core