aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Hawthorn <jhawthor@uvic.ca>2008-05-14 21:35:42 -0700
committerJohn Hawthorn <jhawthor@uvic.ca>2008-05-14 21:35:42 -0700
commit7a68eb750b334031b9c0cd29b6aff0d46734e23a (patch)
tree88ee50f6166506fce1dd5afe71a8f52cd7094523 /Makefile
downloadmirror-meh-7a68eb750b334031b9c0cd29b6aff0d46734e23a.tar.gz
mirror-meh-7a68eb750b334031b9c0cd29b6aff0d46734e23a.tar.bz2
mirror-meh-7a68eb750b334031b9c0cd29b6aff0d46734e23a.zip
initial
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
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
+