1# Copyright (C) 2000,2007 Alan DeKok <aland@deployingradius.com> 2# This Makefile is free software; Alan DeKok 3# gives unlimited permission to copy and/or distribute it, 4# with or without modifications, as long as this notice is preserved. 5 6# This program is distributed in the hope that it will be useful, 7# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 8# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 9# PARTICULAR PURPOSE. 10# 11 12# These are what I use on Linux. Your mileage may vary. 13#CC=gcc -Wall -g 14#LEX=flex 15 16CC ?= gcc 17CFLAGS ?= -O -pipe 18 19pscan: scanner.yy.o pscan.o 20 $(CC) scanner.yy.o pscan.o -o pscan 21 22scanner.yy.o: scanner.yy.c 23 $(CC) $(CFLAGS) -c scanner.yy.c -o scanner.yy.o 24 25scanner.yy.c: scanner.l 26 $(LEX) -t scanner.l > scanner.yy.c 27 28pscan.o: pscan.c pscan.h 29 30FILES = COPYING find_formats.sh Makefile pscan.c pscan.h README scanner.l \ 31 stackguard.txt test.c wu-ftpd.pscan 32 33 34pscan.tar.gz: $(FILES) 35 @tar -zcf pscan.tar.gz $(FILES) 36 37clean: 38 rm -f *.o *~ pscan scanner.yy.c core 39