comparison Bison-Flex/BasicCompiler-MemoryBase/EUC/Makefile @ 0:db40c85cad7a default tip

upload sample source
author nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
date Mon, 09 May 2011 03:11:59 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:db40c85cad7a
1 SOURCES = script.cpp compiler.cpp node.cpp vm.cpp script-parser.yy script-scanner.ll
2 HEADERS = compiler.h node.h vm.h vm_code.h vm_value.h
3 OBJ = script.o compiler.o node.o vm.o script-parser.o script-scanner.o
4 BISON_OUTPUT = script-parser.cc script-parser.hh location.hh position.hh
5
6 #CFLAGS = -O2
7 CFLAGS = -g3 -O0
8
9 all: script
10
11 convert: $(SOURCES) $(HEADERS)
12
13 .SUFFIXES:
14 .SUFFIXES: .cpp .cc .ll .yy .o
15
16 script: $(OBJ)
17 $(CC) $(LDFLAGS) -o $@ $(OBJ) -lstdc++
18
19 .cpp.o:
20 $(CC) -c $(CFLAGS) -o $@ $<
21
22 .cc.o:
23 $(CC) -c $(CFLAGS) -o $@ $<
24
25 $(BISON_OUTPUT): script-parser.yy
26 bison -d -ra -oscript-parser.cc script-parser.yy
27
28 script-scanner.cc: script-scanner.ll
29 flex -8 -oscript-scanner.cc script-scanner.ll
30
31 script-parser.o: $(BISON_OUTPUT)
32 script-scanner.o: script-scanner.cc
33
34 script.cpp: ../script.cpp
35 nkf --unix $< > $@
36
37 compiler.cpp: ../compiler.cpp
38 nkf --unix $< > $@
39
40 node.cpp: ../node.cpp
41 nkf --unix $< > $@
42
43 vm.cpp: ../vm.cpp
44 nkf --unix $< > $@
45
46 script-parser.yy: ../script-parser.yy
47 nkf --unix $< > $@
48
49 script-scanner.ll: ../script-scanner.ll
50 nkf --unix $< > $@
51
52 vm_code.h: ../vm_code.h
53 nkf --unix $< > $@
54
55 vm_value.h: ../vm_value.h
56 nkf --unix $< > $@
57
58 vm.h: ../vm.h
59 nkf --unix $< > $@
60
61 node.h: ../node.h
62 nkf --unix $< > $@
63
64 compiler.h: ../compiler.h
65 nkf --unix $< > $@
66
67 depend:
68 makedepend -- $(CFLAGS) -- $(SOURCES)
69
70 # DO NOT DELETE
71
72 script.o: compiler.h script-parser.hh stack.hh node.h location.hh position.hh
73 script.o: vm.h vm_value.h vm_code.h
74 compiler.o: script-parser.hh stack.hh node.h location.hh position.hh vm.h
75 compiler.o: vm_value.h vm_code.h compiler.h
76 node.o: node.h location.hh position.hh vm.h vm_value.h vm_code.h compiler.h
77 node.o: script-parser.hh stack.hh
78 vm.o: vm.h vm_value.h vm_code.h
79 script-parser.o: node.h location.hh position.hh vm.h vm_value.h vm_code.h
80 script-parser.o: compiler.h script-parser.hh stack.hh
81 script-scanner.o: /usr/include/errno.h /usr/include/features.h
82 script-scanner.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
83 script-scanner.o: /usr/include/bits/errno.h /usr/include/linux/errno.h
84 script-scanner.o: /usr/include/asm/errno.h /usr/include/asm-i486/errno.h
85 script-scanner.o: /usr/include/asm-generic/errno.h
86 script-scanner.o: /usr/include/asm-generic/errno-base.h /usr/include/limits.h
87 script-scanner.o: /usr/include/bits/posix1_lim.h
88 script-scanner.o: /usr/include/bits/local_lim.h /usr/include/linux/limits.h
89 script-scanner.o: /usr/include/bits/posix2_lim.h compiler.h script-parser.hh
90 script-scanner.o: stack.hh node.h location.hh position.hh vm.h vm_value.h
91 script-scanner.o: vm_code.h