forked from mbbill/flexbison
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile.ch2
36 lines (26 loc) · 786 Bytes
/
Makefile.ch2
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
# $Header: /home/johnl/flnb/code/RCS/Makefile.ch2,v 2.1 2009/11/08 02:53:18 johnl Exp $
# Companion source code for "flex & bison", published by O'Reilly
# Media, ISBN 978-0-596-15597-1
# Copyright (c) 2009, Taughannock Networks. All rights reserved.
# See the README file for license conditions and contact info.
# programs in chapter 2
CFLAGS=-g
all: fb2-1 fb2-2 fb2-3 fb2-4 fb2-5
fb2-1: fb2-1.l
flex -o [email protected] $<
${CC} ${CFLAGS} -o $@ [email protected]
fb2-2: fb2-2.l
flex -o [email protected] $<
${CC} ${CFLAGS} -o $@ [email protected]
fb2-3: fb2-3.l
flex -o [email protected] $<
${CC} ${CFLAGS} -o $@ [email protected]
fb2-4: fb2-4.l
flex -o [email protected] $<
${CC} ${CFLAGS} -o $@ [email protected]
fb2-5: fb2-5.l
flex -o [email protected] $<
${CC} ${CFLAGS} -o $@ [email protected]
clean:
rm -f fb2-1 fb2-2 fb2-3 fb2-4 fb2-5 \
fb2-1.c fb2-2.c fb2-3.c fb2-4.c fb2-5.c