Mercurial > hg > index.cgi
comparison Makefile @ 269:1c70570e3d42
Remove references to lwbasic and lwcc directories from the Makefile
Remove references to now removed lwbasic and lwcc project directories since
there is no point cluttering the Makefile up with entries that are no longer
relevant.
author | William Astle <lost@l-w.ca> |
---|---|
date | Sat, 09 Mar 2013 19:07:27 -0700 |
parents | c5b1dd523ac4 |
children | 35b6787a5b39 |
comparison
equal
deleted
inserted
replaced
268:7ad3bd19691b | 269:1c70570e3d42 |
---|---|
39 lwlink_srcs := main.c lwlink.c readfiles.c expr.c script.c link.c output.c map.c | 39 lwlink_srcs := main.c lwlink.c readfiles.c expr.c script.c link.c output.c map.c |
40 lwobjdump_srcs := objdump.c | 40 lwobjdump_srcs := objdump.c |
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 | |
45 lwcc_srcs := $(addprefix lwcc/,$(lwcc_srcs)) | |
46 lwcpp_srcs := lwcpp.c | |
47 lwcpp_srcs := $(addprefix lwcc/cpp/,$(lwcpp_srcs)) | |
48 | |
49 lwasm_srcs := debug.c input.c insn_bitbit.c insn_gen.c insn_indexed.c \ | 44 lwasm_srcs := debug.c input.c insn_bitbit.c insn_gen.c insn_indexed.c \ |
50 insn_inh.c insn_logicmem.c insn_rel.c insn_rlist.c insn_rtor.c insn_tfm.c \ | 45 insn_inh.c insn_logicmem.c insn_rel.c insn_rlist.c insn_rtor.c insn_tfm.c \ |
51 instab.c list.c lwasm.c macro.c main.c os9.c output.c pass1.c pass2.c \ | 46 instab.c list.c lwasm.c macro.c main.c os9.c output.c pass1.c pass2.c \ |
52 pass3.c pass4.c pass5.c pass6.c pass7.c pragma.c pseudo.c section.c \ | 47 pass3.c pass4.c pass5.c pass6.c pass7.c pragma.c pseudo.c section.c \ |
53 struct.c symbol.c unicorns.c | 48 struct.c symbol.c unicorns.c |
56 lwasm_objs := $(lwasm_srcs:.c=.o) | 51 lwasm_objs := $(lwasm_srcs:.c=.o) |
57 lwlink_objs := $(lwlink_srcs:.c=.o) | 52 lwlink_objs := $(lwlink_srcs:.c=.o) |
58 lwar_objs := $(lwar_srcs:.c=.o) | 53 lwar_objs := $(lwar_srcs:.c=.o) |
59 lwlib_objs := $(lwlib_srcs:.c=.o) | 54 lwlib_objs := $(lwlib_srcs:.c=.o) |
60 lwobjdump_objs := $(lwobjdump_srcs:.c=.o) | 55 lwobjdump_objs := $(lwobjdump_srcs:.c=.o) |
61 lwcc_objs := $(lwcc_srcs:.c=.o) | |
62 lwcpp_objs := $(lwcpp_srcs:.c=.o) | |
63 | 56 |
64 lwasm_deps := $(lwasm_srcs:.c=.d) | 57 lwasm_deps := $(lwasm_srcs:.c=.d) |
65 lwlink_deps := $(lwlink_srcs:.c=.d) | 58 lwlink_deps := $(lwlink_srcs:.c=.d) |
66 lwar_deps := $(lwar_srcs:.c=.d) | 59 lwar_deps := $(lwar_srcs:.c=.d) |
67 lwlib_deps := $(lwlib_srcs:.c=.d) | 60 lwlib_deps := $(lwlib_srcs:.c=.d) |
68 lwobjdump_deps := $(lwobjdump_srcs:.c=.d) | 61 lwobjdump_deps := $(lwobjdump_srcs:.c=.d) |
69 lwcc_deps := $(lwcc_srcs:.c=.d) | |
70 lwcpp_deps := $(lwcpp_srcs:.c=.d) | |
71 | 62 |
72 .PHONY: lwlink lwasm lwar lwobjdump lwcc lwcpp | 63 .PHONY: lwlink lwasm lwar lwobjdump |
73 lwlink: lwlink/lwlink$(PROGSUFFIX) | 64 lwlink: lwlink/lwlink$(PROGSUFFIX) |
74 lwasm: lwasm/lwasm$(PROGSUFFIX) | 65 lwasm: lwasm/lwasm$(PROGSUFFIX) |
75 lwar: lwar/lwar$(PROGSUFFIX) | 66 lwar: lwar/lwar$(PROGSUFFIX) |
76 lwobjdump: lwlink/lwobjdump$(PROGSUFFIX) | 67 lwobjdump: lwlink/lwobjdump$(PROGSUFFIX) |
77 lwcc: lwcc/lwcc$(PROGSUFFIX) | |
78 lwcpp: lwcc/lwcpp$(PROGSUFFIX) | |
79 | |
80 .PHONY: lwbasic | |
81 lwbasic: lwbasic/lwbasic$(PROGSUFFIX) | |
82 | 68 |
83 lwasm/lwasm$(PROGSUFFIX): $(lwasm_objs) lwlib | 69 lwasm/lwasm$(PROGSUFFIX): $(lwasm_objs) lwlib |
84 @echo Linking $@ | 70 @echo Linking $@ |
85 @$(CC) -o $@ $(lwasm_objs) $(LDFLAGS) | 71 @$(CC) -o $@ $(lwasm_objs) $(LDFLAGS) |
86 | 72 |
94 | 80 |
95 lwar/lwar$(PROGSUFFIX): $(lwar_objs) lwlib | 81 lwar/lwar$(PROGSUFFIX): $(lwar_objs) lwlib |
96 @echo Linking $@ | 82 @echo Linking $@ |
97 @$(CC) -o $@ $(lwar_objs) $(LDFLAGS) | 83 @$(CC) -o $@ $(lwar_objs) $(LDFLAGS) |
98 | 84 |
99 lwcc/lwcc$(PROGSUFFIX): $(lwcc_objs) lwlib | |
100 @echo Linking $@ | |
101 @$(CC) -o $@ $(lwcc_objs) $(LDFLAGS) | |
102 | |
103 lwcc/lwcpp$(PROGSUFFIX): $(lwcpp_objs) lwlib | |
104 @echo Linking $@ | |
105 @$(CC) -o $@ $(lwcpp_objs) $(LDFLAGS) | |
106 | |
107 | |
108 #.PHONY: lwlib | 85 #.PHONY: lwlib |
109 .INTERMEDIATE: lwlib | 86 .INTERMEDIATE: lwlib |
110 lwlib: lwlib/liblw.a | 87 lwlib: lwlib/liblw.a |
111 | 88 |
112 lwlib/liblw.a: $(lwlib_objs) | 89 lwlib/liblw.a: $(lwlib_objs) |
113 @echo Linking $@ | 90 @echo Linking $@ |
114 @$(AR) rc $@ $(lwlib_objs) | 91 @$(AR) rc $@ $(lwlib_objs) |
115 @$(RANLIB) $@ | 92 @$(RANLIB) $@ |
116 | 93 |
117 alldeps := $(lwasm_deps) $(lwlink_deps) $(lwar_deps) $(lwlib_deps) ($lwobjdump_deps) $(lwcc_deps) | 94 alldeps := $(lwasm_deps) $(lwlink_deps) $(lwar_deps) $(lwlib_deps) ($lwobjdump_deps) |
118 | 95 |
119 -include $(alldeps) | 96 -include $(alldeps) |
120 | 97 |
121 extra_clean := $(extra_clean) *~ */*~ | 98 extra_clean := $(extra_clean) *~ */*~ |
122 | 99 |
132 | 109 |
133 | 110 |
134 .PHONY: clean | 111 .PHONY: clean |
135 clean: $(cleantargs) | 112 clean: $(cleantargs) |
136 @echo "Cleaning up" | 113 @echo "Cleaning up" |
137 @rm -f lwlib/liblw.a lwasm/lwasm$(PROGSUFFIX) lwlink/lwlink$(PROGSUFFIX) lwlink/lwobjdump$(PROGSUFFIX) lwar/lwar$(PROGSUFFIX) lwcc/lwcc$(PROGSUFFIX) | 114 @rm -f lwlib/liblw.a lwasm/lwasm$(PROGSUFFIX) lwlink/lwlink$(PROGSUFFIX) lwlink/lwobjdump$(PROGSUFFIX) lwar/lwar$(PROGSUFFIX) |
138 @rm -f $(lwasm_objs) $(lwlink_objs) $(lwar_objs) $(lwlib_objs) $(lwobjdump_objs) $(lwcc_objs) $(lwcpp_objs) | 115 @rm -f $(lwasm_objs) $(lwlink_objs) $(lwar_objs) $(lwlib_objs) $(lwobjdump_objs) |
139 @rm -f $(extra_clean) | 116 @rm -f $(extra_clean) |
140 @rm -f */*.exe | 117 @rm -f */*.exe |
141 | 118 |
142 .PHONY: realclean | 119 .PHONY: realclean |
143 realclean: clean $(realcleantargs) | 120 realclean: clean $(realcleantargs) |
144 @echo "Cleaning up even more" | 121 @echo "Cleaning up even more" |
145 @rm -f $(lwasm_deps) $(lwlink_deps) $(lwar_deps) $(lwlib_deps) $(lwobjdump_deps) $(lwcc_deps) $(lwcpp_deps) | 122 @rm -f $(lwasm_deps) $(lwlink_deps) $(lwar_deps) $(lwlib_deps) $(lwobjdump_deps) |
146 @rm -f docs/manual/*.html docs/manual/*.pdf | 123 @rm -f docs/manual/*.html docs/manual/*.pdf |
147 | 124 |
148 print-%: | 125 print-%: |
149 @echo $* = $($*) | 126 @echo $* = $($*) |
150 | 127 |