aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..df46d2b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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