diff options
author | Mattias Andrée <maandree@kth.se> | 2020-06-11 18:29:01 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-06-11 18:41:35 +0200 |
commit | 438208bafad929f34d837e8f23f121d0bbe02e9a (patch) | |
tree | 083e9441b6b01c1f29333ce5c4104c5098790808 /Makefile | |
download | binary-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-- | Makefile | 24 |
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 |