summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 627a926..e6d30cd 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
@@ -10,6 +10,7 @@ all: $(TARGET)
libhashtable.h:
./genheader.sh
+$(TARGET): CFLAGS+=-fpic -shared
$(TARGET): libhashtable.o
ld -shared -o $(TARGET) libhashtable.o