Add Makefile

tight-png
Andri Yngvason 2019-08-27 19:57:52 +00:00 committed by Andri Yngvason
parent 980c437f3c
commit 46addff198
1 changed files with 24 additions and 0 deletions

24
Makefile 100644
View File

@ -0,0 +1,24 @@
all: neatvnc
DEPENDENCIES := pixman-1 libpng libuv
CFLAGS := -g -O0 -std=gnu11 -D_GNU_SOURCE -Iinc \
$(foreach dep,$(DEPENDENCIES),$(shell pkg-config --cflags $(dep)))
LDFLAGS := $(foreach dep,$(DEPENDENCIES),$(shell pkg-config --libs $(dep)))
neatvnc: src/server.o src/util.o src/vec.o src/zrle.o src/pngfb.o
$(CC) $^ $(LDFLAGS) -o $@
src/%.o: src/%.c
$(CC) -c $(CFLAGS) $< -o $@ -MMD -MP -MF $@.deps
.PHONY: clean
clean:
rm -f neatvnc
rm -f src/*.o src/*.deps
-include src/*.deps
.SUFFIXES:
.SECONDARY: