equal
deleted
inserted
replaced
1 # include the system specific Makefile |
1 # include the system specific Makefile |
2 #include ../../../Makefile.$(shell uname) |
2 include ../Makefile.$(shell uname) |
3 |
3 |
4 |
4 |
5 |
5 |
6 default: all |
6 default: all |
7 |
7 |
13 clean: |
13 clean: |
14 -rm -f *.o Makefile.depend |
14 -rm -f *.o Makefile.depend |
15 -rm -f iec.flex.c iec.y.cc iec.y.hh iec.y.output |
15 -rm -f iec.flex.c iec.y.cc iec.y.hh iec.y.output |
16 -rm -f test_flex |
16 -rm -f test_flex |
17 |
17 |
18 #get warnings, debugging information and optimization |
|
19 CFLAGS = -Wall -pedantic -Wpointer-arith -Wwrite-strings |
|
20 # CFLAGS += -Werror |
|
21 |
|
22 CFLAGS += -ggdb -O3 -funroll-loops |
|
23 # Note: if the optimizer crashes, we'll leave out the -O3 for those files |
|
24 |
18 |
25 CFLAGS += -I. -I../* -I../../absyntax |
19 CFLAGS += -I. -I../* -I../../absyntax |
26 |
20 |
27 test_flex: iec.flex.c iec.y.hh |
21 test_flex: iec.flex.c iec.y.hh |
28 $(CXX) -o test_flex.o -c iec.flex.c -DTEST_MAIN $(CFLAGS) |
22 $(CXX) -o test_flex.o -c iec.flex.c -DTEST_MAIN $(CFLAGS) |
31 |
25 |
32 iec.flex.c: iec.flex |
26 iec.flex.c: iec.flex |
33 flex -oiec.flex.c iec.flex |
27 flex -oiec.flex.c iec.flex |
34 |
28 |
35 iec.flex.o: iec.y.hh iec.flex.c |
29 iec.flex.o: iec.y.hh iec.flex.c |
36 $(CXX) -c iec.flex.c -D LIBDIRECTORY='"$(IECLIBDIR)"' $(CFLAGS) |
30 $(CXX) -c iec.flex.c -D DEFAULT_LIBDIR='"$(IECLIBDIR)"' $(CFLAGS) |
37 |
31 |
38 iec.y.hh iec.y.cc: iec.y |
32 iec.y.hh iec.y.cc: iec.y |
39 bison -d -v -o iec.y.cc iec.y |
33 bison -d -v -o iec.y.cc iec.y |
40 |
34 |
41 iec.y.o: iec.y.cc iec.y.hh |
35 iec.y.o: iec.y.cc iec.y.hh |
42 $(CXX) -c iec.y.cc -D LIBDIRECTORY='"$(IECLIBDIR)"' $(CFLAGS) |
36 $(CXX) -c iec.y.cc $(CFLAGS) |
43 |
37 |
44 |
38 |
45 |
39 |
46 |
40 |
47 |
41 |