You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
378 B

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/
rm -f weighttp $(OBJECTS)
.PHONY: all install clean