Commit | Line | Data |
---|---|---|
4dc09422 SK |
1 | CPPFLAGS := -D_POSIX_C_SOURCE=200809L |
2 | CFLAGS := -std=c99 -Wall -Wextra | |
3 | LDLIBS := -lX11 | |
fabb8771 | 4 | |
af4ef80d | 5 | .PHONY: build clean rebuild |
9b5ebc12 | 6 | |
17a27e48 | 7 | build: \ |
8345f2b3 SK |
8 | khatus \ |
9 | khatus_sensor_time | |
17a27e48 SK |
10 | |
11 | khatus: \ | |
12 | khatus_lib_log.o \ | |
13 | khatus_lib_time.o | |
14 | ||
8345f2b3 SK |
15 | khatus_sensor_time: \ |
16 | khatus_lib_log.o \ | |
17 | khatus_lib_time.o | |
18 | ||
17a27e48 | 19 | khatus_lib_time.o: khatus_lib_log.o |
9b5ebc12 SK |
20 | |
21 | clean: | |
17a27e48 SK |
22 | @find . -type f -executable -delete |
23 | @find . -type f -name '*.o' -delete | |
9b5ebc12 | 24 | |
af4ef80d SK |
25 | rebuild: |
26 | @$(MAKE) -s clean | |
9b5ebc12 | 27 | @$(MAKE) -s build |