diff options
author | Brian Cully <bjc@kublai.com> | 2008-07-28 12:10:12 -0400 |
---|---|---|
committer | Brian Cully <github.20.shmit@spamgourmet.com> | 2008-07-28 14:44:18 -0400 |
commit | 887ab7a574ea437a8c42b0dfd6537015214f94d6 (patch) | |
tree | 5d688a52af34650ac511570583ee24dfc6f398bc /src/Makefile | |
parent | 82b1f53f53f4550f44e3d59937da84d3660d3917 (diff) | |
download | mysqlerl-887ab7a574ea437a8c42b0dfd6537015214f94d6.tar.gz mysqlerl-887ab7a574ea437a8c42b0dfd6537015214f94d6.zip |
Makefile fixes:
* Parameterize MySQL include and lib location. Also update them for
my MacPorts installation.
* Add missing beams to make.
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile index f3133fa..a8d2020 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,9 +1,11 @@ ERLINTERFACE = erl_interface-3.5.5.3 +MYSQLINC = /opt/local/include/mysql5/mysql +MYSQLLIB = /opt/local/lib/mysql5/mysql -CFLAGS = -I/usr/local/mysql/include \ +CFLAGS = -I$(MYSQLINC) \ -I$(HOME)/lib/erlang/lib/$(ERLINTERFACE)/include \ -O2 -g -Wall -Werror -LDFLAGS = -L/usr/local/mysql/lib \ +LDFLAGS = -L$(MYSQLLIB) \ -L$(HOME)/lib/erlang/lib/$(ERLINTERFACE)/lib \ -lerl_interface -lei EFLAGS = -W +debug_info @@ -14,7 +16,8 @@ BEAMDIR = ../ebin BINS = $(PRIVDIR)/mysqlerl $(BEAMDIR)/mysqlerl.app MYSQLERLOBJS = io.o log.o msg.o mysqlerl.o BEAMS = mysqlerl.beam mysqlerl_app.beam mysqlerl_connection.beam \ - mysqlerl_connection_sup.beam + mysqlerl_connection_sup.beam mysqlerl_port.beam \ + mysqlerl_port_sup.beam mysqlerl_sup.beam LIBS = -lmysqlclient all: $(PRIVDIR) $(BEAMDIR) $(BINS) |