1CC = gcc 2DEBUG = 0 3 4OBJS = htick.o global.o toss.o fcommon.o scan.o areafix.o add_desc.o seenby.o hatch.o filelist.o filecase.o report.o clean.o 5SRC_DIR = ../src/ 6 7CFLAGS = -c -I../h -I../.. -Wall -O3 -s -DUNIX 8LFLAGS = -L../../smapi -L../../fidoconf 9 10all: $(OBJS) \ 11 htick 12 13 14# this is the rule for BSD's own make 15.PATH.c : $(SRC_DIR) 16.c.o: 17 $(CC) $(CFLAGS) $< 18 19# and this is the rule if you are using gmake 20%.o: $(SRC_DIR)%.c 21 $(CC) $(CFLAGS) $(SRC_DIR)$*.c 22 23# luckily, the rules from above do not interfere with each other - BSD make 24# ignores the second one, gmake ignores the first one. 25 26 27htick: $(OBJS) 28 $(CC) $(LFLAGS) -o htick $(OBJS) -lfidoconfigbsd -lsmapibsd 29 30clean: 31 -rm -f *.o 32 -rm *~ 33 -rm core 34 -rm htick 35 36distclean: clean 37 -rm htick 38 -rm *.1.gz 39 -rm *.log~ 40