File: Makefile

package info (click to toggle)
pscan 1.2-9
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, lenny, sid, squeeze, stretch, wheezy
  • size: 116 kB
  • ctags: 43
  • sloc: ansic: 310; lex: 141; makefile: 17; sh: 1
file content (28 lines) | stat: -rw-r--r-- 780 bytes parent folder | download | duplicates (3)
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
# Copyright (C) 2000 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

scanner.yy.o: scanner.yy.c
	$(CC) -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

clean:
	rm -f *.o *~ pscan scanner.yy.c core