Factor-out common loop
[khatus.git] / x5 / Makefile
CommitLineData
4dc09422
SK
1CPPFLAGS := -D_POSIX_C_SOURCE=200809L
2CFLAGS := -std=c99 -Wall -Wextra
3LDLIBS := -lX11
fabb8771 4
af4ef80d 5.PHONY: build clean rebuild
9b5ebc12 6
17a27e48 7build: \
8345f2b3 8 khatus \
d03cabfe 9 khatus_sensor_battery \
8345f2b3 10 khatus_sensor_time
17a27e48
SK
11
12khatus: \
13 khatus_lib_log.o \
14 khatus_lib_time.o
15
d03cabfe
SK
16khatus_sensor_battery: \
17 khatus_lib_log.o \
55883d9a 18 khatus_lib_sensor.o \
d03cabfe
SK
19 khatus_lib_time.o
20
8345f2b3
SK
21khatus_sensor_time: \
22 khatus_lib_log.o \
55883d9a 23 khatus_lib_sensor.o \
8345f2b3
SK
24 khatus_lib_time.o
25
17a27e48 26khatus_lib_time.o: khatus_lib_log.o
9b5ebc12
SK
27
28clean:
17a27e48
SK
29 @find . -type f -executable -delete
30 @find . -type f -name '*.o' -delete
9b5ebc12 31
af4ef80d
SK
32rebuild:
33 @$(MAKE) -s clean
9b5ebc12 34 @$(MAKE) -s build
This page took 0.036653 seconds and 4 git commands to generate.