1 Debian patch touch this file
-
Use default build flags
- Author
- Andreas Tille <[email protected]>
| 1 | # Copyright (C) 2000,2007 Alan DeKok <[email protected]> |
| 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 | |
| 16 | pscan: scanner.yy.o pscan.o |
| •17 | $(CC) scanner.yy.o pscan.o -o pscan $(LDFLAGS) |
| 18 | |
| 19 | scanner.yy.o: scanner.yy.c |
| •20 | $(CC) $(CPPFLAGS) $(CFLAGS) -c scanner.yy.c -o scanner.yy.o |
| 21 | |
| 22 | scanner.yy.c: scanner.l |
| 23 | $(LEX) -t scanner.l > scanner.yy.c |
| 24 | |
| 25 | pscan.o: pscan.c pscan.h |
| 26 | |
| 27 | FILES = COPYING find_formats.sh Makefile pscan.c pscan.h README scanner.l \ |
| 28 | stackguard.txt test.c wu-ftpd.pscan |
| 29 | |
| 30 | |
| 31 | pscan.tar.gz: $(FILES) |
| 32 | @tar -zcf pscan.tar.gz $(FILES) |
| 33 | |
| 34 | clean: |
| 35 | rm -f *.o *~ pscan scanner.yy.c core |