Mercurial > hg > index.cgi
comparison Makefile @ 173:3413a88f4d09
Added test framework
author | lost@l-w.ca |
---|---|
date | Wed, 07 Sep 2011 20:45:20 -0600 |
parents | 2eda3e39b3b8 |
children | 5350ce9f446f |
comparison
equal
deleted
inserted
replaced
172:a88b04ba5ab8 | 173:3413a88f4d09 |
---|---|
68 | 68 |
69 lwar/lwar$(PROGSUFFIX): $(lwar_objs) lwlib lwar/rules.make | 69 lwar/lwar$(PROGSUFFIX): $(lwar_objs) lwlib lwar/rules.make |
70 @echo Linking $@ | 70 @echo Linking $@ |
71 @$(CC) -o $@ $(lwar_objs) $(LDFLAGS) | 71 @$(CC) -o $@ $(lwar_objs) $(LDFLAGS) |
72 | 72 |
73 test: test.c lwlib | |
74 $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ test.c $(LDFLAGS) | |
75 | |
76 #.PHONY: lwlib | 73 #.PHONY: lwlib |
77 .INTERMEDIATE: lwlib | 74 .INTERMEDIATE: lwlib |
78 lwlib: lwlib/liblw.a | 75 lwlib: lwlib/liblw.a |
79 | 76 |
80 lwlib/liblw.a: $(lwlib_objs) lwlib/rules.make | 77 lwlib/liblw.a: $(lwlib_objs) lwlib/rules.make |
119 @echo $* = $($*) | 116 @echo $* = $($*) |
120 | 117 |
121 .PHONY: install | 118 .PHONY: install |
122 install: | 119 install: |
123 cp $(MAIN_TARGETS) /usr/local/bin/ | 120 cp $(MAIN_TARGETS) /usr/local/bin/ |
121 | |
122 .PHONY: test | |
123 test: all test/runtests | |
124 @test/runtests | |
124 | 125 |