X-Git-Url: https://git.xandkar.net/?p=khatus.git;a=blobdiff_plain;f=x5%2FMakefile;h=d8fcc231149c90a07a9260fd1a660dbfbeb2cddd;hp=59d115b8107616bd003a98b7b93d9e5a8986b62e;hb=HEAD;hpb=f76c7576941e2c2de3b077d6113acbd109352bb8 diff --git a/x5/Makefile b/x5/Makefile index 59d115b..d8fcc23 100644 --- a/x5/Makefile +++ b/x5/Makefile @@ -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: - @ find . -type f -executable -delete + @find . -type f -executable -delete + @find . -type f -name '*.o' -delete rebuild: @$(MAKE) -s clean