Mercurial > hg > index.cgi
comparison Makefile @ 17:4969bd6f3b7d
Fixed up glitch with Makefile causing binaries to always be considered out of date
author | lost@l-w.ca |
---|---|
date | Sat, 22 Jan 2011 17:33:54 -0700 |
parents | 2f98cf1558e1 |
children | f4df3bd4b85f |
comparison
equal
deleted
inserted
replaced
16:2f98cf1558e1 | 17:4969bd6f3b7d |
---|---|
42 lwlink_deps := $(lwlink_srcs:.c=.d) | 42 lwlink_deps := $(lwlink_srcs:.c=.d) |
43 lwar_deps := $(lwar_srcs:.c=.d) | 43 lwar_deps := $(lwar_srcs:.c=.d) |
44 lwlib_deps := $(lwlib_srcs:.c=.d) | 44 lwlib_deps := $(lwlib_srcs:.c=.d) |
45 lwobjdump_deps := $(lwobjdump_srcs:.c=.d) | 45 lwobjdump_deps := $(lwobjdump_srcs:.c=.d) |
46 | 46 |
47 .PHONY: lwlink lwasm lwar lwobjdump$(PROGSUFFIX) | 47 .PHONY: lwlink lwasm lwar lwobjdump |
48 lwlink: lwlink/lwlink$(PROGSUFFIX) | 48 lwlink: lwlink/lwlink$(PROGSUFFIX) |
49 lwasm: lwasm/lwasm$(PROGSUFFIX) | 49 lwasm: lwasm/lwasm$(PROGSUFFIX) |
50 lwar: lwar/lwar$(PROGSUFFIX) | 50 lwar: lwar/lwar$(PROGSUFFIX) |
51 lwobjdump: lwlink/lwobjdump$(PROGSUFFIX) | 51 lwobjdump: lwlink/lwobjdump$(PROGSUFFIX) |
52 | 52 |
61 lwlink/lwobjdump$(PROGSUFFIX): $(lwobjdump_objs) lwlib lwlink/rules.make | 61 lwlink/lwobjdump$(PROGSUFFIX): $(lwobjdump_objs) lwlib lwlink/rules.make |
62 @echo Linking $@ | 62 @echo Linking $@ |
63 @$(CC) -o $@ $(lwobjdump_objs) $(LDFLAGS) | 63 @$(CC) -o $@ $(lwobjdump_objs) $(LDFLAGS) |
64 | 64 |
65 lwar/lwar$(PROGSUFFIX): $(lwar_objs) lwlib lwar/rules.make | 65 lwar/lwar$(PROGSUFFIX): $(lwar_objs) lwlib lwar/rules.make |
66 @echo Linknig $@ | 66 @echo Linking $@ |
67 @$(CC) -o $@ $(lwar_objs) $(LDFLAGS) | 67 @$(CC) -o $@ $(lwar_objs) $(LDFLAGS) |
68 | 68 |
69 test: test.c lwlib | 69 test: test.c lwlib |
70 $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ test.c $(LDFLAGS) | 70 $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ test.c $(LDFLAGS) |
71 | 71 |
72 .PHONY: lwlib | 72 #.PHONY: lwlib |
73 .INTERMEDIATE: lwlib | |
73 lwlib: lwlib/liblw.a | 74 lwlib: lwlib/liblw.a |
74 | 75 |
75 lwlib/liblw.a: $(lwlib_objs) lwlib/rules.make | 76 lwlib/liblw.a: $(lwlib_objs) lwlib/rules.make |
76 @echo Linking $@ | 77 @echo Linking $@ |
77 @$(AR) rc $@ $(lwlib_objs) | 78 @$(AR) rc $@ $(lwlib_objs) |