diff options
author | Brian Cully <bjc@kublai.com> | 2012-02-06 19:44:47 -0500 |
---|---|---|
committer | Brian Cully <github.20.shmit@spamgourmet.com> | 2012-02-06 19:46:56 -0500 |
commit | 50f3c688a7cd4819680dbd19b9933c6cb5e62ca7 (patch) | |
tree | 5d9bf2edac40d874ec05bafc1e1e38b443879ce3 /src/Makefile | |
parent | d3b118481833acd44d724c06ce8c9d6b6ff2838a (diff) | |
download | mysqlerl-50f3c688a7cd4819680dbd19b9933c6cb5e62ca7.tar.gz mysqlerl-50f3c688a7cd4819680dbd19b9933c6cb5e62ca7.zip |
Move most files into lib, add top-level makefile
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/Makefile b/src/Makefile deleted file mode 100644 index 3a1510b..0000000 --- a/src/Makefile +++ /dev/null @@ -1,44 +0,0 @@ -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 - -MYSQLPREFIX = /usr/local/mysql -MYSQLINCS = -I$(MYSQLPREFIX)/include -MYSQLLIBS = -L$(MYSQLPREFIX)/lib -lmysqlclient - -CFLAGS = -g -Wall -Werror $(MYSQLINCS) $(ERLINCS) -LDFLAGS = $(MYSQLLIBS) $(ERLLIBS) -EFLAGS = -W +debug_info - -PRIVDIR = ../priv -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_port.beam \ - mysqlerl_port_sup.beam mysqlerl_sup.beam - -all: $(PRIVDIR) $(BEAMDIR) $(BINS) - -clean: - rm -rf *.o *.beam - rm -rf $(BINS) $(MYSQLERLOBJS) $(BEAMS) $(BEAMDIR)/mysqlerl.app - -%.beam: %.erl - erlc $(EFLAGS) $< - -$(PRIVDIR)/mysqlerl: $(PRIVDIR) $(MYSQLERLOBJS) - $(CC) -o $@ $(MYSQLERLOBJS) $(LDFLAGS) - -$(BEAMDIR)/mysqlerl.app: $(BEAMDIR) $(BEAMS) - cp $(BEAMS) $(BEAMDIR) - cp mysqlerl.app $(BEAMDIR) - -$(PRIVDIR): - mkdir -p $(PRIVDIR) - -$(BEAMDIR): - mkdir -p $(BEAMDIR) |