weighttp/Makefile
2010-10-24 18:59:23 +00:00

21 lines
378 B
Makefile

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