From 438208bafad929f34d837e8f23f121d0bbe02e9a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 11 Jun 2020 18:29:01 +0200 Subject: First commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3-70-g09d2