aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: df46d2b9f97d5998aa32bceb0b1abf2b47b295e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.POSIX:

CONFIGFILE = config.mk
include $(CONFIGFILE)

all: test

test: test.c binary-multisearch.h
	$(CC) -o $@ test.c $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)

check: test
	./test

install:
	mkdir -p -- "$(DESTDIR)$(PREFIX)/include"
	cp -- binary-multisearch.h "$(DESTDIR)$(PREFIX)/include"

uninstall:
	-rm -f -- "$(DESTDIR)$(PREFIX)/include/binary-multisearch.h"

clean:
	-rm -f -- *.o test

.PHONY: all check install uninstall clean