Julio Biason
4 years ago
1 changed files with 10 additions and 2 deletions
@ -1,7 +1,15 @@ |
|||||||
OBJS = main.o hours.o
|
DEPS = hours.o period.o
|
||||||
|
|
||||||
wh: $(OBJS) |
wh: main.o $(DEPS) |
||||||
gcc $^ -o $@
|
gcc $^ -o $@
|
||||||
|
|
||||||
%.o: %.c %.h |
%.o: %.c %.h |
||||||
gcc -c $< -Wall
|
gcc -c $< -Wall
|
||||||
|
|
||||||
|
.PHONY: test |
||||||
|
test: wh_tests |
||||||
|
./wh_tests
|
||||||
|
rm ./wh_tests
|
||||||
|
|
||||||
|
wh_tests: wh_tests.o $(DEPS) |
||||||
|
gcc $^ -o $@
|
||||||
|
Loading…
Reference in new issue