From 611150ef5965e4b1ea4e571e96a59dda623ee74c Mon Sep 17 00:00:00 2001 From: epoch Date: Fri, 15 May 2020 02:51:19 -0500 Subject: moved some CFLAGS to target-specific --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 25fb69d..9b86af1 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ ### why the fuck is this here? LDFLAGS=-lhashtable -Llibhashtable -CFLAGS=-fpic -shared -pedantic -Wall -g3 +CFLAGS=-pedantic -Wall -g3 PREFIX:=/usr/local TARGET=libhashtable.so @@ -8,6 +8,7 @@ all: $(TARGET) libhashtable.h: ./genheader.sh +$(TARGET): CFLAGS+=-fpic -shared $(TARGET): libhashtable.o ld -shared -o $(TARGET) libhashtable.o @@ -15,7 +16,7 @@ clean: rm -f libhashtable.so rm *.o -install: +install: all mkdir -p $(PREFIX)/lib mkdir -p $(PREFIX)/include install $(TARGET) $(PREFIX)/lib/$(TARGET) -- cgit v1.2.3