Skip to content

Instantly share code, notes, and snippets.

@pirogoeth
Created July 13, 2015 03:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pirogoeth/9f1f57ea3b05a95cd516 to your computer and use it in GitHub Desktop.
Save pirogoeth/9f1f57ea3b05a95cd516 to your computer and use it in GitHub Desktop.
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