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