mirror of
https://github.com/processone/ejabberd.git
synced 2024-10-31 15:21:38 +01:00
df21b2d48c
in multi core CPUs: fix compilation dependencies; compile behaviors before other source code (EJAB-697)(thanks to Jonathan Schleifer) * src/mod_pubsub/Makefile.in: Likewise * src/eldap/Makefile.in: Likewise SVN Revision: 1484
42 lines
765 B
Makefile
42 lines
765 B
Makefile
# $Id$
|
|
|
|
CC = @CC@
|
|
CFLAGS = @CFLAGS@
|
|
CPPFLAGS = @CPPFLAGS@
|
|
LDFLAGS = @LDFLAGS@
|
|
LIBS = @LIBS@
|
|
|
|
ERLANG_CFLAGS = @ERLANG_CFLAGS@
|
|
ERLANG_LIBS = @ERLANG_LIBS@
|
|
|
|
EFLAGS = -I .. -pz ..
|
|
# make debug=true to compile Erlang module with debug informations.
|
|
ifdef debug
|
|
EFLAGS+=+debug_info
|
|
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: $(ERLBEHAVBEAMS) $(BEAMS)
|
|
|
|
$(BEAMS): $(ERLBEHAVBEAMS)
|
|
|
|
$(OUTDIR)/%.beam: %.erl
|
|
@ERLC@ -W $(EFLAGS) -o $(OUTDIR) $<
|
|
|
|
clean:
|
|
rm -f $(BEAMS)
|
|
|
|
distclean: clean
|
|
rm -f Makefile
|
|
|
|
TAGS:
|
|
etags *.erl
|
|
|