From 887ab7a574ea437a8c42b0dfd6537015214f94d6 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Mon, 28 Jul 2008 12:10:12 -0400 Subject: Makefile fixes: * Parameterize MySQL include and lib location. Also update them for my MacPorts installation. * Add missing beams to make. --- src/Makefile | 9 ++++++--- 1 file 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) -- cgit v1.2.3