Build as C99
[khatus.git] / x5 / Makefile
index 1429988..585ca12 100644 (file)
@@ -1,16 +1,14 @@
-EXECUTABLES := khatus
-CC          := gcc -Wall
+CPPFLAGS := -D_POSIX_C_SOURCE=200809L
+CFLAGS   := -std=c99 -Wall -Wextra
+LDLIBS   := -lX11
 
-.PHONY: \
-  build \
-  clean \
-  rebuild
+.PHONY: build clean rebuild
 
-build: $(EXECUTABLES)
+build: khatus
 
 clean:
-       @find . -name '*.o' -type f -delete
-       @rm -f $(EXECUTABLES)
+       @ find . -type f -executable -delete
 
-rebuild: clean
+rebuild:
+       @$(MAKE) -s clean
        @$(MAKE) -s build
This page took 0.023187 seconds and 4 git commands to generate.