Shift X2 status from legacy to archived
[khatus.git] / x5 / Makefile
index 839a0a5..d8fcc23 100644 (file)
@@ -1,12 +1,31 @@
-CFLAGS := -Wall -Wextra
-LDLIBS := -lX11
+CPPFLAGS := -D_POSIX_C_SOURCE=200809L
+CFLAGS   := -std=c99 -Wall -Wextra
+LDLIBS   := -lX11
 
 .PHONY: build clean rebuild
 
-build: khatus
+build: \
+    khatus \
+    khatus_sensor_battery \
+    khatus_sensor_time
+
+khatus: \
+       khlib_log.o \
+       khlib_time.o
+
+khatus_sensor_battery: \
+       khlib_log.o \
+       khlib_time.o
+
+khatus_sensor_time: \
+       khlib_log.o \
+       khlib_time.o
+
+khlib_time.o: khlib_log.o
 
 clean:
-       @rm -f khatus
+       @find . -type f -executable -delete
+       @find . -type f -name '*.o' -delete
 
 rebuild:
        @$(MAKE) -s clean
This page took 0.024378 seconds and 4 git commands to generate.