ports/www/mod_auth_mysql_another/files/patch-Makefile
Martin Blapp afdee1be9a Change LOCALBASE to PREFIX, and set -rpath, so the module can be installed
into PREFIX without setting LD_LIBRARY_PATH.
2002-05-22 15:50:34 +00:00

20 lines
454 B
Text

--- /dev/null Sat Apr 20 17:11:40 2002
+++ Makefile Sat Apr 20 17:12:22 2002
@@ -0,0 +1,17 @@
+APXS = apxs
+APXSFLAGS =
+DSO = mod_auth_mysql.so
+SRCS = mod_auth_mysql.c
+OPTS = -I%%PREFIX%%/include -L%%PREFIX%%/lib/mysql -lmysqlclient
+
+all: $(DSO)
+
+$(DSO): $(SRCS)
+ $(APXS) $(APXSFLAGS) -o $(DSO) $(OPTS) -c $(SRCS) -rpath %%PREFIX%%/lib/mysql
+
+install: $(DSO)
+ $(APXS) $(APXSFLAGS) $(NAME) -i -A $(DSO)
+
+clean:
+ -rm -f *.o $(DSO)
+