aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/Makefile b/src/Makefile
index 980e4d1..869872e 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,10 +1,12 @@
-ERLINTERFACE = erl_interface-3.5.5.3
-ERLINCS = -I$(HOME)/lib/erlang/lib/$(ERLINTERFACE)/include
-ERLLIBS = -L$(HOME)/lib/erlang/lib/$(ERLINTERFACE)/lib \
+ERLPREFIX = /usr/local
+ERLINTERFACE = erl_interface-3.7.6
+ERLINCS = -I$(ERLPREFIX)/lib/erlang/lib/$(ERLINTERFACE)/include
+ERLLIBS = -L$(ERLPREFIX)/lib/erlang/lib/$(ERLINTERFACE)/lib \
-lerl_interface -lei
-MYSQLINCS = -I/opt/local/include/mysql5/mysql
-MYSQLLIBS = -L/opt/local/lib/mysql5/mysql -lmysqlclient
+MYSQLPREFIX = /usr/local/mysql
+MYSQLINCS = -I/$(MYSQLPREFIX)/include
+MYSQLLIBS = -L/$(MYSQLPREFIX)/lib -lmysqlclient
CFLAGS = -g -Wall -Werror $(MYSQLINCS) $(ERLINCS)
LDFLAGS = $(MYSQLLIBS) $(ERLLIBS)
@@ -39,4 +41,4 @@ $(PRIVDIR):
mkdir -p $(PRIVDIR)
$(BEAMDIR):
- mkdir -p $(BEAMDIR) \ No newline at end of file
+ mkdir -p $(BEAMDIR)