weighttp/Makefile

21 lines
378 B
Makefile
Raw Normal View History

2010-08-23 13:09:12 +00:00
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