diff options
Diffstat (limited to 'tests/Makefile')
-rw-r--r-- | tests/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile new file mode 100644 index 0000000..bc757bf --- /dev/null +++ b/tests/Makefile @@ -0,0 +1,19 @@ +include ../config.mk +INCLUDES = -I../include + +SRC = $(shell find -type f -name '*.c') +BIN = $(SRC:%.c=%) + +LDLIBS = -luv -l:libumumble.a +LDFLAGS = -L.. + +.PHONY: all + +all: $(BIN) + +$(BIN): $(SRC) + mkdir -p '$(BUILD_DIR)' + $(CC) -o $(BUILD_DIR)/$@ $(CFLAGS) $(INCLUDES) $(@:%=%.c) $(LDFLAGS) $(LDLIBS) + +clean: + rm -rf $(BUILD_DIR) |