aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile9
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)