simpleweb/Makefile

21 lines
339 B
Makefile
Raw Permalink Normal View History

2007-06-16 14:22:32 +02:00
CFLAGS := -O2 -pipe -Wall
OBJS := configfile.o event.o http.o logging.o simpleweb.o sockaddr.o tcpsocket.o
all: simpleweb
simpleweb: $(OBJS)
$(CC) $(CFLAGS) $^ -o $@
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
%.d: %.c
$(CC) $(CFLAGS) -MM -c $< -o $@
clean:
rm -f simpleweb *.d *.o *.log
DEPS := $(wildcard *.c)
-include $(DEPS:.c=.d)