diff options
author | Brian Cully <bjc@kublai.com> | 2012-02-06 14:02:33 -0500 |
---|---|---|
committer | Brian Cully <github.20.shmit@spamgourmet.com> | 2012-02-06 14:02:33 -0500 |
commit | def43439373421a63072a9e788085ce54a1f8889 (patch) | |
tree | 564c9bfab7dc3d14f7a593380b373f87518c68d5 /src/Makefile | |
parent | dd53971f9e25dcacc43eca3b255f37a365a91de3 (diff) | |
download | mysqlerl-def43439373421a63072a9e788085ce54a1f8889.tar.gz mysqlerl-def43439373421a63072a9e788085ce54a1f8889.zip |
Parameterize ERL/MySQL locations in Makefile
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 14 |
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) |