]> granicus.if.org Git - ejabberd/commitdiff
* src/Makefile.in: Support for parallel compilation with 'make -j'
authorBadlop <badlop@process-one.net>
Wed, 26 Mar 2008 09:27:46 +0000 (09:27 +0000)
committerBadlop <badlop@process-one.net>
Wed, 26 Mar 2008 09:27:46 +0000 (09:27 +0000)
in multi core CPUs: fix compilation dependencies; compile
behaviors before other source code. (thanks to Jonathan Schleifer)
* src/mod_pubsub/Makefile.in: Likewise
* src/eldap/Makefile.in: Likewise

SVN Revision: 1258

ChangeLog
src/Makefile.in
src/eldap/Makefile.in
src/mod_pubsub/Makefile.in

index 930ff79849bc2322eff9a00bc7551c1057e2d18f..03e4b4223d514b24921f26861540bab4c22471ef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-03-26  Badlop  <badlop@process-one.net>
+
+       * src/Makefile.in: Support for parallel compilation with 'make -j'
+       in multi core CPUs: fix compilation dependencies; compile
+       behaviors before other source code. (thanks to Jonathan Schleifer)
+       * src/mod_pubsub/Makefile.in: Likewise
+       * src/eldap/Makefile.in: Likewise
+
 2008-03-26  Alexey Shchepin  <alexey@process-one.net>
 
        * src/ejabberd_local.erl: The iq_response table wasn't cloned
index fc981a4a0a470486ee74f227dc36e967a96bc736..b758b5f09ad72d1d20b7aa3dfeeb2184c42f00e7 100644 (file)
@@ -50,7 +50,9 @@ prefix = @prefix@
 SUBDIRS = @mod_irc@ @mod_pubsub@ @mod_muc@ @mod_proxy65@ @eldap@ @pam@ @web@ stringprep @tls@ @odbc@ @ejabberd_zlib@
 ERLSHLIBS = expat_erl.so
 ERLBEHAVS = cyrsasl.erl gen_mod.erl p1_fsm.erl
-SOURCES = $(ERLBEHAVS) $(wildcard *.erl)
+SOURCES_ALL = $(wildcard *.erl)
+SOURCES = $(filter-out $(ERLBEHAVS),$(SOURCES_ALL))
+ERLBEHAVBEAMS = $(ERLBEHAVS:.erl=.beam)
 BEAMS = $(SOURCES:.erl=.beam)
 
 DESTDIR =
@@ -74,7 +76,11 @@ endif
 
 all: $(ERLSHLIBS) compile-beam all-recursive
 
-compile-beam: XmppAddr.hrl $(BEAMS)
+compile-beam: XmppAddr.hrl $(ERLBEHAVBEAMS) $(BEAMS)
+
+$(BEAMS): $(ERLBEHAVBEAMS)
+
+all-recursive: $(ERLBEHAVBEAMS)
 
 %.beam:       %.erl
        @ERLC@ -W $(ERLC_FLAGS) $<
index 4e1e87688282ebee45090f6d08019c96603a79e3..1c9b7ca2216122a13d80c362f96e3566458833a0 100644 (file)
@@ -22,6 +22,8 @@ BEAMS = $(addprefix $(OUTDIR)/,$(SOURCES:.erl=.beam))
 
 all:    $(BEAMS) ELDAPv3.beam
 
+ELDAPv3.beam: ELDAPv3.erl
+
 ELDAPv3.erl:       ELDAPv3.asn
        @ERLC@ -bber_bin -W $(EFLAGS) $<
 
index b9eba426794ce32c3ea3fb5bc0f6ddb821469d5e..39f6a16e8a4986fcb0b86771ff527c460ff54934 100644 (file)
@@ -16,11 +16,16 @@ ifdef debug
 endif
 
 OUTDIR = ..
-SOURCES = $(wildcard *.erl)
+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:    $(BEAMS)
+all:    $(ERLBEHAVBEAMS) $(BEAMS)
+
+$(BEAMS): $(ERLBEHAVBEAMS)
 
 $(OUTDIR)/%.beam:       %.erl
        @ERLC@ -W $(EFLAGS) -o $(OUTDIR) $<