equal
deleted
inserted
replaced
8 .PHONY: iec.flex |
8 .PHONY: iec.flex |
9 |
9 |
10 all: iec.flex.o iec.y.o stage1_2.o |
10 all: iec.flex.o iec.y.o stage1_2.o |
11 |
11 |
12 |
12 |
|
13 |
13 clean: |
14 clean: |
14 -rm -f *.o Makefile.depend |
15 -rm -f *.o Makefile.depend |
15 -rm -f iec.flex.c iec.y.cc iec.y.hh iec.y.output |
16 -rm -f iec.flex.c iec.y.cc iec.y.hh iec.y.output |
|
17 -rm -f iec.noerrorcheck.y |
16 -rm -f test_flex |
18 -rm -f test_flex |
17 |
19 |
18 |
20 |
19 CFLAGS += -I. -I../* -I../../absyntax |
21 CFLAGS += -I. -I../* -I../../absyntax |
20 |
22 |
|
23 |
|
24 |
21 test_flex: iec.flex.c iec.y.hh |
25 test_flex: iec.flex.c iec.y.hh |
22 $(CXX) -o test_flex.o -c iec.flex.c -DTEST_MAIN $(CFLAGS) |
26 $(CXX) -o test_flex.o -c iec.flex.c -DTEST_MAIN $(CFLAGS) |
23 $(CXX) -o test_flex test_flex.o |
27 $(CXX) -o test_flex test_flex.o |
24 # $(CXX) -o test_flex test_flex.o ../util/symtable.o -DTEST_MAIN |
28 # $(CXX) -o test_flex test_flex.o ../util/symtable.o -DTEST_MAIN |
|
29 |
|
30 |
|
31 |
|
32 |
25 |
33 |
26 iec.flex.c: iec.flex |
34 iec.flex.c: iec.flex |
27 flex -oiec.flex.c iec.flex |
35 flex -oiec.flex.c iec.flex |
28 |
36 |
29 iec.flex.o: iec.y.hh iec.flex.c |
37 iec.flex.o: iec.y.hh iec.flex.c |
33 bison -d -v -o iec.y.cc iec.y |
41 bison -d -v -o iec.y.cc iec.y |
34 |
42 |
35 iec.y.o: iec.y.cc iec.y.hh |
43 iec.y.o: iec.y.cc iec.y.hh |
36 $(CXX) -c iec.y.cc $(CFLAGS) |
44 $(CXX) -c iec.y.cc $(CFLAGS) |
37 |
45 |
|
46 |
|
47 noerrorcheck: iec.y |
|
48 sed '/ERROR_CHECK_BEGIN/,/ERROR_CHECK_END/ d' iec.y > iec.noerrorcheck.y |
|
49 flex -oiec.flex.c iec.flex |
|
50 $(CXX) -c iec.flex.c -D DEFAULT_LIBDIR='"$(IECLIBDIR)"' $(CFLAGS) |
|
51 bison -d -v -o iec.y.cc iec.noerrorcheck.y |
|
52 $(CXX) -c iec.y.cc $(CFLAGS) |
38 |
53 |
39 |
54 |
40 |
55 |
41 |
56 |
42 #how to make things from other directories if they are missing |
57 #how to make things from other directories if they are missing |