mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
50137aa98d
SVN Revision: 2842
47 lines
891 B
Makefile
47 lines
891 B
Makefile
# $Id$
|
|
|
|
CC = @CC@
|
|
CFLAGS = @CFLAGS@
|
|
CPPFLAGS = @CPPFLAGS@
|
|
LDFLAGS = @LDFLAGS@
|
|
LIBS = @LIBS@
|
|
|
|
ERLANG_CFLAGS = @ERLANG_CFLAGS@
|
|
ERLANG_LIBS = @ERLANG_LIBS@
|
|
|
|
EFLAGS += -I ..
|
|
EFLAGS += -pz ..
|
|
|
|
# make debug=true to compile Erlang module with debug informations.
|
|
ifdef debug
|
|
EFLAGS+=+debug_info +export_all
|
|
endif
|
|
|
|
OUTDIR = ..
|
|
ERLBEHAVS = gen_pubsub_node.erl gen_pubsub_nodetree.erl
|
|
SOURCES_ALL = $(wildcard *.erl)
|
|
SOURCES = $(filter-out $(ERLBEHAVS),$(SOURCES_ALL))
|
|
ERLBEHAVBEAMS = $(addprefix $(OUTDIR)/,$(ERLBEHAVS:.erl=.beam))
|
|
BEAMS = $(addprefix $(OUTDIR)/,$(SOURCES:.erl=.beam))
|
|
|
|
|
|
all: mod_pubsub_odbc.erl $(ERLBEHAVBEAMS) $(BEAMS)
|
|
|
|
$(BEAMS): $(ERLBEHAVBEAMS)
|
|
|
|
$(OUTDIR)/%.beam: %.erl
|
|
@ERLC@ -W $(EFLAGS) -o $(OUTDIR) $<
|
|
|
|
clean:
|
|
rm -f $(BEAMS)
|
|
|
|
distclean: clean
|
|
rm -f Makefile
|
|
|
|
mod_pubsub_odbc.erl:
|
|
patch -o mod_pubsub_odbc.erl mod_pubsub.erl pubsub_odbc.patch
|
|
|
|
TAGS:
|
|
etags *.erl
|
|
|