Browse Source

Build tests

master
Julio Biason 4 years ago
parent
commit
9b6317ad8d
  1. 12
      c/makefile

12
c/makefile

@ -1,7 +1,15 @@
OBJS = main.o hours.o
DEPS = hours.o period.o
wh: $(OBJS)
wh: main.o $(DEPS)
gcc $^ -o $@
%.o: %.c %.h
gcc -c $< -Wall
.PHONY: test
test: wh_tests
./wh_tests
rm ./wh_tests
wh_tests: wh_tests.o $(DEPS)
gcc $^ -o $@

Loading…
Cancel
Save