aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2020-06-11 18:29:01 +0200
committerMattias Andrée <maandree@kth.se>2020-06-11 18:41:35 +0200
commit438208bafad929f34d837e8f23f121d0bbe02e9a (patch)
tree083e9441b6b01c1f29333ce5c4104c5098790808 /Makefile
downloadbinary-multisearch.h-438208bafad929f34d837e8f23f121d0bbe02e9a.tar.gz
binary-multisearch.h-438208bafad929f34d837e8f23f121d0bbe02e9a.tar.bz2
binary-multisearch.h-438208bafad929f34d837e8f23f121d0bbe02e9a.tar.xz
First commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-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