Mercurial > hg > index.cgi
comparison Makefile @ 193:68f41eaf44f2
Added lwcc, lwcpp stubs
author | lost@l-w.ca |
---|---|
date | Fri, 13 Jan 2012 22:32:15 -0700 |
parents | 20ba68be2cd7 |
children | 47a055c57d4a |
comparison
equal
deleted
inserted
replaced
192:8ae2670377ca | 193:68f41eaf44f2 |
---|---|
41 lwlink_srcs := $(addprefix lwlink/,$(lwlink_srcs)) | 41 lwlink_srcs := $(addprefix lwlink/,$(lwlink_srcs)) |
42 lwobjdump_srcs := $(addprefix lwlink/,$(lwobjdump_srcs)) | 42 lwobjdump_srcs := $(addprefix lwlink/,$(lwobjdump_srcs)) |
43 | 43 |
44 lwcc_srcs := lwcc.c | 44 lwcc_srcs := lwcc.c |
45 lwcc_srcs := $(addprefix lwcc/,$(lwcc_srcs)) | 45 lwcc_srcs := $(addprefix lwcc/,$(lwcc_srcs)) |
46 lwcpp_srcs := lwcpp.c | |
47 lwcpp_srcs := $(addprefix lwcc/cpp/,$(lwcpp_srcs)) | |
46 | 48 |
47 lwasm_srcs := debug.c input.c insn_bitbit.c insn_gen.c insn_indexed.c \ | 49 lwasm_srcs := debug.c input.c insn_bitbit.c insn_gen.c insn_indexed.c \ |
48 insn_inh.c insn_logicmem.c insn_rel.c insn_rlist.c insn_rtor.c insn_tfm.c \ | 50 insn_inh.c insn_logicmem.c insn_rel.c insn_rlist.c insn_rtor.c insn_tfm.c \ |
49 instab.c list.c lwasm.c macro.c main.c os9.c output.c pass1.c pass2.c \ | 51 instab.c list.c lwasm.c macro.c main.c os9.c output.c pass1.c pass2.c \ |
50 pass3.c pass4.c pass5.c pass6.c pass7.c pragma.c pseudo.c section.c \ | 52 pass3.c pass4.c pass5.c pass6.c pass7.c pragma.c pseudo.c section.c \ |
55 lwlink_objs := $(lwlink_srcs:.c=.o) | 57 lwlink_objs := $(lwlink_srcs:.c=.o) |
56 lwar_objs := $(lwar_srcs:.c=.o) | 58 lwar_objs := $(lwar_srcs:.c=.o) |
57 lwlib_objs := $(lwlib_srcs:.c=.o) | 59 lwlib_objs := $(lwlib_srcs:.c=.o) |
58 lwobjdump_objs := $(lwobjdump_srcs:.c=.o) | 60 lwobjdump_objs := $(lwobjdump_srcs:.c=.o) |
59 lwcc_objs := $(lwcc_srcs:.c=.o) | 61 lwcc_objs := $(lwcc_srcs:.c=.o) |
62 lwcpp_objs := $(lwcpp_srcs:.c=.o) | |
60 | 63 |
61 lwasm_deps := $(lwasm_srcs:.c=.d) | 64 lwasm_deps := $(lwasm_srcs:.c=.d) |
62 lwlink_deps := $(lwlink_srcs:.c=.d) | 65 lwlink_deps := $(lwlink_srcs:.c=.d) |
63 lwar_deps := $(lwar_srcs:.c=.d) | 66 lwar_deps := $(lwar_srcs:.c=.d) |
64 lwlib_deps := $(lwlib_srcs:.c=.d) | 67 lwlib_deps := $(lwlib_srcs:.c=.d) |
65 lwobjdump_deps := $(lwobjdump_srcs:.c=.d) | 68 lwobjdump_deps := $(lwobjdump_srcs:.c=.d) |
66 lwcc_deps := $(lwcc_srcs:.c=.d) | 69 lwcc_deps := $(lwcc_srcs:.c=.d) |
70 lwcpp_deps := $(lwcpp_srcs:.c=.d) | |
67 | 71 |
68 .PHONY: lwlink lwasm lwar lwobjdump lwcc | 72 .PHONY: lwlink lwasm lwar lwobjdump lwcc lwcpp |
69 lwlink: lwlink/lwlink$(PROGSUFFIX) | 73 lwlink: lwlink/lwlink$(PROGSUFFIX) |
70 lwasm: lwasm/lwasm$(PROGSUFFIX) | 74 lwasm: lwasm/lwasm$(PROGSUFFIX) |
71 lwar: lwar/lwar$(PROGSUFFIX) | 75 lwar: lwar/lwar$(PROGSUFFIX) |
72 lwobjdump: lwlink/lwobjdump$(PROGSUFFIX) | 76 lwobjdump: lwlink/lwobjdump$(PROGSUFFIX) |
73 lwcc: lwcc/lwcc$(PROGSUFFIX) | 77 lwcc: lwcc/lwcc$(PROGSUFFIX) |
78 lwcpp: lwcc/lwcpp$(PROGSUFFIX) | |
74 | 79 |
75 .PHONY: lwbasic | 80 .PHONY: lwbasic |
76 lwbasic: lwbasic/lwbasic$(PROGSUFFIX) | 81 lwbasic: lwbasic/lwbasic$(PROGSUFFIX) |
77 | 82 |
78 lwasm/lwasm$(PROGSUFFIX): $(lwasm_objs) lwlib | 83 lwasm/lwasm$(PROGSUFFIX): $(lwasm_objs) lwlib |
92 @$(CC) -o $@ $(lwar_objs) $(LDFLAGS) | 97 @$(CC) -o $@ $(lwar_objs) $(LDFLAGS) |
93 | 98 |
94 lwcc/lwcc$(PROGSUFFIX): $(lwcc_objs) lwlib | 99 lwcc/lwcc$(PROGSUFFIX): $(lwcc_objs) lwlib |
95 @echo Linking $@ | 100 @echo Linking $@ |
96 @$(CC) -o $@ $(lwcc_objs) $(LDFLAGS) | 101 @$(CC) -o $@ $(lwcc_objs) $(LDFLAGS) |
102 | |
103 lwcc/lwcpp$(PROGSUFFIX): $(lwcpp_objs) lwlib | |
104 @echo Linking $@ | |
105 @$(CC) -o $@ $(lwcpp_objs) $(LDFLAGS) | |
106 | |
97 | 107 |
98 #.PHONY: lwlib | 108 #.PHONY: lwlib |
99 .INTERMEDIATE: lwlib | 109 .INTERMEDIATE: lwlib |
100 lwlib: lwlib/liblw.a | 110 lwlib: lwlib/liblw.a |
101 | 111 |
123 | 133 |
124 .PHONY: clean | 134 .PHONY: clean |
125 clean: $(cleantargs) | 135 clean: $(cleantargs) |
126 @echo "Cleaning up" | 136 @echo "Cleaning up" |
127 @rm -f lwlib/liblw.a lwasm/lwasm$(PROGSUFFIX) lwlink/lwlink$(PROGSUFFIX) lwlink/lwobjdump$(PROGSUFFIX) lwar/lwar$(PROGSUFFIX) lwcc/lwcc$(PROGSUFFIX) | 137 @rm -f lwlib/liblw.a lwasm/lwasm$(PROGSUFFIX) lwlink/lwlink$(PROGSUFFIX) lwlink/lwobjdump$(PROGSUFFIX) lwar/lwar$(PROGSUFFIX) lwcc/lwcc$(PROGSUFFIX) |
128 @rm -f $(lwasm_objs) $(lwlink_objs) $(lwar_objs) $(lwlib_objs) $(lwobjdump_objs) $(lwcc_objs) | 138 @rm -f $(lwasm_objs) $(lwlink_objs) $(lwar_objs) $(lwlib_objs) $(lwobjdump_objs) $(lwcc_objs) $(lwcpp_objs) |
129 @rm -f $(extra_clean) | 139 @rm -f $(extra_clean) |
130 @rm -f */*.exe | 140 @rm -f */*.exe |
131 | 141 |
132 .PHONY: realclean | 142 .PHONY: realclean |
133 realclean: clean $(realcleantargs) | 143 realclean: clean $(realcleantargs) |
134 @echo "Cleaning up even more" | 144 @echo "Cleaning up even more" |
135 @rm -f $(lwasm_deps) $(lwlink_deps) $(lwar_deps) $(lwlib_deps) $(lwobjdump_deps) | 145 @rm -f $(lwasm_deps) $(lwlink_deps) $(lwar_deps) $(lwlib_deps) $(lwobjdump_deps) $(lwcc_deps) $(lwcpp_deps) |
136 @rm -f docs/manual/*.html docs/manual/*.pdf | 146 @rm -f docs/manual/*.html docs/manual/*.pdf |
137 | 147 |
138 print-%: | 148 print-%: |
139 @echo $* = $($*) | 149 @echo $* = $($*) |
140 | 150 |