From 7a68eb750b334031b9c0cd29b6aff0d46734e23a Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Wed, 14 May 2008 21:35:42 -0700 Subject: initial --- Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 + -- cgit v1.2.3