all: weighttp override SOURCES := $(wildcard src/*.c) override OBJECTS := $(patsubst %.c,%.o,$(SOURCES)) override LDFLAGS += -lev -lpthread override CFLAGS += '-DVERSION="0.2"' weighttp: $(OBJECTS) $(CC) $(LDFLAGS) -o weighttp $^ install: weighttp mkdir -p $(DESTDIR)/usr/bin cp weighttp $(DESTDIR)/usr/bin/ clean: rm -f weighttp $(OBJECTS) .PHONY: all install clean