diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1b0e819 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ + +# User configuration +-include config.mk + +SRCFILES := $(wildcard src/*.c) +OBJFILES := $(SRCFILES:%.c=%.o) +DEPFILES := $(OBJFILES:%.o=%.d) +CLEANFILES := $(CLEANFILES) $(DEPFILES) $(OBJFILES) meh +CFLAGS := -O3 -Wall -g -ggdb +LIBS := -lX11 -ljpeg + +meh: $(OBJFILES) + $(CC) -o $@ $(OBJFILES) $(LIBS) + +-include $(DEPFILES) + +%.o: %.c Makefile + @echo "CC $<" + @$(CC) $(CFLAGS) -MMD -MP -MT "$*.d" -c -o $@ $< + +# Clean +clean: + $(RM) $(CLEANFILES) + +.PHONY: clean + |