diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-01-09 17:46:13 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-01-09 17:46:20 +0100 |
| commit | 1d54e89222ae3fd67c9dfcb6b979fd6842909d2e (patch) | |
| tree | 2f35f84b814a27de14ea0cc8ef029632dab0b17e /Makefile | |
| parent | Add todo (diff) | |
| download | blind-1d54e89222ae3fd67c9dfcb6b979fd6842909d2e.tar.gz blind-1d54e89222ae3fd67c9dfcb6b979fd6842909d2e.tar.bz2 blind-1d54e89222ae3fd67c9dfcb6b979fd6842909d2e.tar.xz | |
Fix errors and add makefile
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 34 |
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 |
