Calculate how many hours you're working. A project in multiple languages.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
DEPS = hours.o period.o |
|
|
|
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 $@
|
|
|