1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
# Makefile for visitors
# Copyright (C) 2004 Salvatore Sanfilippo <antirez@invece.org>
# All Rights Reserved
# Under the GPL license version 2
DEBUG?= -g
CFLAGS?= -O2 -Wall -W
CCOPT= $(CFLAGS) $(CPPFLAGS)
OBJ = visitors.o aht.o antigetopt.o tail.o
PRGNAME = visitors
all: visitors
visitors.o: visitors.c blacklist.h
visitors: $(OBJ)
$(CC) -o $(PRGNAME) $(LDFLAGS) $(CCOPT) $(DEBUG) $(OBJ)
.c.o:
$(CC) -c $(CCOPT) $(DEBUG) $(COMPILE_TIME) $<
clean:
rm -rf $(PRGNAME) *.o
|