Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff --git a/Makefile b/Makefile
index 3ff7bc1..357c235 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,13 @@
-CFLAGS += $(shell pkg-config --cflags lua)
-LDLIBS += $(shell pkg-config --libs lua) -lldap
+CC := /usr/bin/clang
+CFLAGS += -I/usr/local/include -I/usr/local/include/luajit-2.0
+LDLIBS += -L/usr/local/lib/ -lldap
-LUA_MODULES := $(shell pkg-config --variable=INSTALL_CMOD lua)
+LUA_MODULES := /usr/local/lib/lua/5.1/
all: lualdap.so
lualdap.so: lualdap.c
- $(CC) -fPIC -shared $(CFLAGS) -o $@ $^ $(LDLIBS)
+ $(CC) -fPIC -shared $(CFLAGS) -o $@ $^ $(LDLIBS) lualdap.c
install: lualdap.so
mkdir -p "$(DESTDIR)$(LUA_MODULES)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.