include ../config.mk INCLUDES = -I../include SRC = $(shell find -type f -name '*.c') BIN = $(SRC:%.c=%) LDLIBS = -l:libumumble.a -ltlsuv $(shell pkg-config --libs openssl) -luv 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)