Mercurial > hg > index.cgi
comparison Makefile @ 293:c419b3b3d43f ccdev
Checkpoint on lwcc-cpp development
This is a checkpoint with some substantial code cleanups on what is so far
implemented. This should avoid substantial code duplication later.
author | William Astle <lost@l-w.ca> |
---|---|
date | Mon, 09 Sep 2013 23:07:19 -0600 |
parents | 40ecbd5da481 |
children | 048adfee2933 |
comparison
equal
deleted
inserted
replaced
292:40ecbd5da481 | 293:c419b3b3d43f |
---|---|
99 lwcc_driver_srcs := main.c | 99 lwcc_driver_srcs := main.c |
100 lwcc_driver_srcs := $(addprefix lwcc/driver/,$(lwcc_driver_srcs)) | 100 lwcc_driver_srcs := $(addprefix lwcc/driver/,$(lwcc_driver_srcs)) |
101 lwcc_driver_objs := $(lwcc_driver_srcs:.c=.o) | 101 lwcc_driver_objs := $(lwcc_driver_srcs:.c=.o) |
102 lwcc_driver_deps := $(lwcc_driver_srcs:.c=.d) | 102 lwcc_driver_deps := $(lwcc_driver_srcs:.c=.d) |
103 | 103 |
104 lwcc_cpp_srcs := main.c error.c file.c | 104 lwcc_cpp_srcs := main.c error.c file.c preproc.c char_p.c |
105 lwcc_cpp_srcs := $(addprefix lwcc/cpp/,$(lwcc_cpp_srcs)) | 105 lwcc_cpp_srcs := $(addprefix lwcc/cpp/,$(lwcc_cpp_srcs)) |
106 lwcc_cpp_objs := $(lwcc_cpp_srcs:.c=.o) | 106 lwcc_cpp_objs := $(lwcc_cpp_srcs:.c=.o) |
107 lwcc_cpp_deps := $(lwcc_cpp_srcs:.c=.d) | 107 lwcc_cpp_deps := $(lwcc_cpp_srcs:.c=.d) |
108 | 108 |
109 .PHONY: lwlink lwasm lwar lwobjdump lwcc | 109 .PHONY: lwlink lwasm lwar lwobjdump lwcc |
167 .PHONY: clean | 167 .PHONY: clean |
168 clean: $(cleantargs) | 168 clean: $(cleantargs) |
169 @echo "Cleaning up" | 169 @echo "Cleaning up" |
170 @rm -f lwlib/liblw.a lwasm/lwasm$(PROGSUFFIX) lwlink/lwlink$(PROGSUFFIX) lwlink/lwobjdump$(PROGSUFFIX) lwar/lwar$(PROGSUFFIX) | 170 @rm -f lwlib/liblw.a lwasm/lwasm$(PROGSUFFIX) lwlink/lwlink$(PROGSUFFIX) lwlink/lwobjdump$(PROGSUFFIX) lwar/lwar$(PROGSUFFIX) |
171 @rm -f lwcc/driver/lwcc$(PROGSUFFIX) lwcc/cpp/lwcc-cpp$(PROGSUFFIX) | 171 @rm -f lwcc/driver/lwcc$(PROGSUFFIX) lwcc/cpp/lwcc-cpp$(PROGSUFFIX) |
172 @rm -f $(lwcc_driver_ojbs) $(lwcc_preproc_objs) | 172 @rm -f $(lwcc_driver_ojbs) $(lwcc_cpp_objs) |
173 @rm -f $(lwasm_objs) $(lwlink_objs) $(lwar_objs) $(lwlib_objs) $(lwobjdump_objs) | 173 @rm -f $(lwasm_objs) $(lwlink_objs) $(lwar_objs) $(lwlib_objs) $(lwobjdump_objs) |
174 @rm -f $(extra_clean) | 174 @rm -f $(extra_clean) |
175 @rm -f */*.exe | 175 @rm -f */*.exe |
176 | 176 |
177 .PHONY: realclean | 177 .PHONY: realclean |
178 realclean: clean $(realcleantargs) | 178 realclean: clean $(realcleantargs) |
179 @echo "Cleaning up even more" | 179 @echo "Cleaning up even more" |
180 @rm -f $(lwasm_deps) $(lwlink_deps) $(lwar_deps) $(lwlib_deps) $(lwobjdump_deps) | 180 @rm -f $(lwasm_deps) $(lwlink_deps) $(lwar_deps) $(lwlib_deps) $(lwobjdump_deps) |
181 @rm -f $(lwcc_driver_deps) | 181 @rm -f $(lwcc_driver_deps) $(lwcc_cpp_deps) |
182 @rm -f docs/manual/*.html docs/manual/*.pdf | 182 @rm -f docs/manual/*.html docs/manual/*.pdf |
183 | 183 |
184 print-%: | 184 print-%: |
185 @echo $* = $($*) | 185 @echo $* = $($*) |
186 | 186 |