diff options
author | Mattias Andrée <maandree@kth.se> | 2021-09-16 16:17:46 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-09-16 16:17:46 +0200 |
commit | 685183aec181d29f3035cdd19ab1d826e2edb5f9 (patch) | |
tree | a7816c4b6fcc81fa0ed914c7a51de04c35d2fdbf /Makefile | |
parent | m readme (diff) | |
download | binary-multisearch.h-685183aec181d29f3035cdd19ab1d826e2edb5f9.tar.gz binary-multisearch.h-685183aec181d29f3035cdd19ab1d826e2edb5f9.tar.bz2 binary-multisearch.h-685183aec181d29f3035cdd19ab1d826e2edb5f9.tar.xz |
Improve makefile1.0.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -3,10 +3,15 @@ CONFIGFILE = config.mk include $(CONFIGFILE) + all: test +test.o: binary-multisearch.h + +.c.o: + $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) -test: test.c binary-multisearch.h - $(CC) -o $@ test.c $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) +.o: + $(CC) -o $@ $< $(LDFLAGS) check: test ./test @@ -19,6 +24,9 @@ uninstall: -rm -f -- "$(DESTDIR)$(PREFIX)/include/binary-multisearch.h" clean: - -rm -f -- *.o test + -rm -f -- *.o *.su test + +.SUFFIXES: +.SUFFIXES: .o .c .PHONY: all check install uninstall clean |