aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f8b78bf
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,34 @@
+CFLAGS = -std=c99 -Wall -pedantic -O2
+CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_FILE_OFFSET_BITS=64
+LDFLAGS = -lm -s
+
+BIN =\
+ vu-colour-srgb\
+ vu-concat\
+ vu-dissolve\
+ vu-flip\
+ vu-flop\
+ vu-frame-to-image\
+ vu-image-to-frame\
+ vu-invert-luma\
+ vu-next-frame\
+ vu-read-head\
+ vu-repeat\
+ vu-set-alpha\
+ vu-set-luma\
+ vu-single-colour\
+ vu-stack\
+ vu-write-head
+
+all: $(BIN)
+
+%: %.o util.o stream.o
+ $(CC) $(LDFLAGS) -o $@ $^
+
+%.o: src/%.c src/*.h
+ $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
+
+clean:
+ -rm $(BIN) $(BIN:=.o) util.o stream.o
+
+.PHONY: all clean