author | Mario de Sousa <msousa@fe.up.pt> |
Mon, 04 Apr 2011 15:26:13 +0100 | |
changeset 276 | 1679f514f38a |
parent 258 | d7d92b2f87e9 |
child 279 | c0453b7f99df |
permissions | -rwxr-xr-x |
0
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
1 |
# include the system specific Makefile |
40
873a5b60a7ea
Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents:
15
diff
changeset
|
2 |
include ../Makefile.$(shell uname) |
0
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
3 |
|
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
4 |
|
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
5 |
|
257 | 6 |
default: all |
0
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
7 |
|
15
0b472e25eb16
Adding changes to make the compiler compatible with bison ver 2.3
mario
parents:
0
diff
changeset
|
8 |
all: iec.flex.o iec.y.o stage1_2.o |
0b472e25eb16
Adding changes to make the compiler compatible with bison ver 2.3
mario
parents:
0
diff
changeset
|
9 |
|
0
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
10 |
clean: |
159 | 11 |
echo > Makefile.depend |
0
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
12 |
-rm -f iec.flex.c iec.y.cc iec.y.hh iec.y.output |
68 | 13 |
-rm -f iec.noerrorcheck.y |
0
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
14 |
-rm -f test_flex |
172 | 15 |
-rm -f stage1_2.o |
16 |
-rm -f iec.y.o |
|
17 |
-rm -f iec.flex.o |
|
258
d7d92b2f87e9
Merging my Huge change with Edouards/Laurents version
Mario de Sousa <msousa@fe.up.pt>
diff
changeset
|
18 |
-rm -f Makefile.depend |
172 | 19 |
|
0
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
20 |
|
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
21 |
CFLAGS += -I. -I../* -I../../absyntax |
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
22 |
|
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
23 |
iec.flex.c: iec.flex |
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
24 |
flex -oiec.flex.c iec.flex |
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
25 |
|
258
d7d92b2f87e9
Merging my Huge change with Edouards/Laurents version
Mario de Sousa <msousa@fe.up.pt>
diff
changeset
|
26 |
stage1_2.cc: iec.y.hh |
d7d92b2f87e9
Merging my Huge change with Edouards/Laurents version
Mario de Sousa <msousa@fe.up.pt>
diff
changeset
|
27 |
stage1_2.o: stage1_2.cc |
172 | 28 |
|
0
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
29 |
iec.flex.o: iec.y.hh iec.flex.c |
40
873a5b60a7ea
Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents:
15
diff
changeset
|
30 |
$(CXX) -c iec.flex.c -D DEFAULT_LIBDIR='"$(IECLIBDIR)"' $(CFLAGS) |
0
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
31 |
|
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
32 |
iec.y.hh iec.y.cc: iec.y |
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
33 |
bison -d -v -o iec.y.cc iec.y |
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
34 |
|
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
35 |
iec.y.o: iec.y.cc iec.y.hh |
40
873a5b60a7ea
Fixed -I library include path behavior + removed old lib implementation + added generated lib func names to stage 1_2 + added Makefile.Linux
etisserant
parents:
15
diff
changeset
|
36 |
$(CXX) -c iec.y.cc $(CFLAGS) |
0
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
37 |
|
68 | 38 |
noerrorcheck: iec.y |
39 |
sed '/ERROR_CHECK_BEGIN/,/ERROR_CHECK_END/ d' iec.y > iec.noerrorcheck.y |
|
40 |
flex -oiec.flex.c iec.flex |
|
41 |
$(CXX) -c iec.flex.c -D DEFAULT_LIBDIR='"$(IECLIBDIR)"' $(CFLAGS) |
|
42 |
bison -d -v -o iec.y.cc iec.noerrorcheck.y |
|
43 |
$(CXX) -c iec.y.cc $(CFLAGS) |
|
44 |
||
0
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
45 |
#how to make things from other directories if they are missing |
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
46 |
../% /%: |
fb772792efd1
Initial commit. Last MatPLC CVS with some makefile inclusion removed in order to compile fine out of MatPLC.
etisserant
parents:
diff
changeset
|
47 |
$(MAKE) -C $(@D) $(@F) |
15
0b472e25eb16
Adding changes to make the compiler compatible with bison ver 2.3
mario
parents:
0
diff
changeset
|
48 |
|
0b472e25eb16
Adding changes to make the compiler compatible with bison ver 2.3
mario
parents:
0
diff
changeset
|
49 |
|
0b472e25eb16
Adding changes to make the compiler compatible with bison ver 2.3
mario
parents:
0
diff
changeset
|
50 |
Makefile.depend depend: |
243 | 51 |
$(CXX) -MM -MG -I. *.cc \ |
52 |
| sed 's/:/ Makefile.depend:/' > Makefile.depend |
|
15
0b472e25eb16
Adding changes to make the compiler compatible with bison ver 2.3
mario
parents:
0
diff
changeset
|
53 |
|
0b472e25eb16
Adding changes to make the compiler compatible with bison ver 2.3
mario
parents:
0
diff
changeset
|
54 |
include Makefile.depend |
0b472e25eb16
Adding changes to make the compiler compatible with bison ver 2.3
mario
parents:
0
diff
changeset
|
55 |
|
243 | 56 |