1# $Id: Makefile,v 1.7 2020/05/21 00:10:56 nanard Exp $ 2# made for GNU Make (and BSD make) 3CFLAGS = -Wall -g -DTEST 4CFLAGS += -Wextra 5CFLAGS += -I.. 6EXECUTABLES = testobsdrdr testpfpinhole 7 8all: $(EXECUTABLES) 9 10clean: 11 rm -f *.o $(EXECUTABLES) 12 13testobsdrdr: testobsdrdr.o obsdrdr.o getifaddr.o 14 $(CC) $(CFLAGS) -o $@ $> 15 16testpfpinhole: testpfpinhole.o obsdrdr.o pfpinhole.o getifaddr.o 17 $(CC) $(CFLAGS) -o $@ $> 18 19obsdrdr.o: obsdrdr.c obsdrdr.h 20 21pfpinhole.o: pfpinhole.c pfpinhole.h 22 23testobsdrdr.o: testobsdrdr.c obsdrdr.h 24 25testpfpinhole.o: testpfpinhole.c pfpinhole.h 26 27getifaddr.o: ../getifaddr.c 28