commit 612b1190e3b4d952efd6c5791399e012f5f6ba0c parent 27a45430478270bc34bed263397b6e026465edad Author: Louis Burda <quent.burda@gmail.com> Date: Fri, 17 Mar 2023 17:11:12 +0100 Fix library name Diffstat:
M | Makefile | | | 18 | +++++++++--------- |
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/Makefile b/Makefile @@ -6,10 +6,10 @@ CFLAGS = -I include -Wno-prototype -Wunused-function CFLAGS += -Wunused-variable -Wconversion ifeq "$(DEBUG)" "1" -CFLAGS += -g -DLIBMAP_CHECK_ENABLE=1 +CFLAGS += -g -DLIBHASHMAP_CHECK_ENABLE=1 endif -all: build/libmap.so build/libmap.a build/test +all: build/libhashmap.so build/libhashmap.a build/test clean: rm -rf build @@ -17,26 +17,26 @@ clean: build: mkdir build -build/libmap.a: src/hashmap.c include/hashmap.h | build +build/libhashmap.a: src/hashmap.c include/hashmap.h | build $(CC) -o build/tmp.o src/hashmap.c $(CFLAGS) -r objcopy --keep-global-symbols=libhashmap.api build/tmp.o build/fixed.o $(AR) rcs $@ build/fixed.o -build/libmap.so: src/hashmap.c include/hashmap.h | build +build/libhashmap.so: src/hashmap.c include/hashmap.h | build $(CC) -o $@ src/hashmap.c -fPIC $(CFLAGS) -shared \ -Wl,-version-script libhashmap.lds -build/test: src/test.c build/libmap.a | build +build/test: src/test.c build/libhashmap.a | build $(CC) -o $@ $^ -I include -g install: install -m 644 include/hashmap.h -t "$(DESTDIR)$(PREFIX)$(INCLDIR)" - install -m 755 build/libmap.a -t "$(DESTDIR)$(PREFIX)$(LIBDIR)" - install -m 755 build/libmap.so -t "$(DESTDIR)$(PREFIX)$(LIBDIR)" + install -m 755 build/libhashmap.a -t "$(DESTDIR)$(PREFIX)$(LIBDIR)" + install -m 755 build/libhashmap.so -t "$(DESTDIR)$(PREFIX)$(LIBDIR)" uninstall: rm -f "$(DESTDIR)$(PREFIX)$(INCLDIR)/hashmap.h" - rm -f "$(DESTDIR)$(PREFIX)$(LIBDIR)/libmap.a" - rm -f "$(DESTDIR)$(PREFIX)$(LIBDIR)/libmap.so" + rm -f "$(DESTDIR)$(PREFIX)$(LIBDIR)/libhashmap.a" + rm -f "$(DESTDIR)$(PREFIX)$(LIBDIR)/libhashmap.so" .PHONY: all clean install uninstall