summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c1ab43d..dc3d23e 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,8 @@ PREFIX = $(HOME)/.local
ALL = libayylmao.a libayylmao.so
OBJ = ayy.o lmao.o
+CFLAGS = -fPIC
+
all: $(ALL)
install: $(ALL)
@@ -19,4 +21,4 @@ clean:
libayylmao.a: libayylmao.a(ayy.o) libayylmao.a(lmao.o)
libayylmao.so: $(OBJ)
- $(CC) $(CFLAGS) -fPIC -shared -Wl,-soname,$@ $(LDFLAGS) -o $@ ayy.o lmao.o
+ $(CC) $(CFLAGS) -shared -Wl,-soname,$@ $(LDFLAGS) -o $@ ayy.o lmao.o