File: Makefile

package info (click to toggle)
pscan 1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 228 kB
  • sloc: ansic: 890; lex: 288; makefile: 31; sh: 1
file content (35 lines) | stat: -rw-r--r-- 1,018 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright (C) 2000,2007 Alan DeKok <aland@deployingradius.com>
# 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