From def43439373421a63072a9e788085ce54a1f8889 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Mon, 6 Feb 2012 14:02:33 -0500 Subject: Parameterize ERL/MySQL locations in Makefile --- src/Makefile | 14 ++++++++------ 1 file 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) -- cgit v1.2.3