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