On Wed, 30 Dec 2009, Will Coleda wrote:

> I've created a branch (one_make) to start cleaning up the makefile.
> I've just now eliminated the compiler.dummy target there, and moved
> several generated independent makefiles into include'd ones.
> 
> I've also broken out a few chunks of static deps into their own files.
> 
> Can I get some verification from some non-gmake builds?

OpenSolaris make doesn't like the ':=' style of variables.  Something like 
the appended patch is needed.  

There seem to be some missing dependencies somewhere:  A parallel build 
with OpenSolaris distributed make (dmake) gave this error:

perl tools/build/ops2c.pl CGP --core
Parrot/OpLib/core.pm did not return a true value at 
/export/home/doughera/src/parrot/parrot-svn/tools/build/../../lib/Parrot/Ops2c/Utils.pm
 line 7.
BEGIN failed--compilation aborted at 
/export/home/doughera/src/parrot/parrot-svn/tools/build/../../lib/Parrot/Ops2c/Utils.pm
 line 7.
Compilation failed in require at tools/build/ops2c.pl line 11.
BEGIN failed--compilation aborted at tools/build/ops2c.pl line 11.
*** Error code 255
dmake: Fatal error: Command failed for target `src/ops/core_ops_cgp.c'

I might have a chance to look into it early next week, but probably not 
before then.

> Any suggestions on better names than Makefile.mak ?

Nothing better comes to mind.


Index: ext/nqp-rx/Makefile.mak
===================================================================
--- ext/nqp-rx/Makefile.mak     (revision 43325)
+++ ext/nqp-rx/Makefile.mak     (working copy)
@@ -1,6 +1,6 @@
 ## XXX does not cover .includes of core .pasm files
 
-NQPRX_LIB_PBCS := \
+NQPRX_LIB_PBCS = \
     $(LIBRARY_DIR)/Regex.pbc \
     $(LIBRARY_DIR)/HLL.pbc \
     $(LIBRARY_DIR)/P6Regex.pbc \
Index: compilers/tge/Makefile.mak
===================================================================
--- compilers/tge/Makefile.mak  (revision 43325)
+++ compilers/tge/Makefile.mak  (working copy)
@@ -1,5 +1,5 @@
 
-TGE_LIB_PBCS := $(LIBRARY_DIR)/TGE.pbc compilers/tge/tgc.pbc
+TGE_LIB_PBCS = $(LIBRARY_DIR)/TGE.pbc compilers/tge/tgc.pbc
 
 $(LIBRARY_DIR)/TGE.pbc:  \
     $(LIBRARY_DIR)/PGE.pbc \
Index: compilers/data_json/Makefile.mak
===================================================================
--- compilers/data_json/Makefile.mak    (revision 43325)
+++ compilers/data_json/Makefile.mak    (working copy)
@@ -1,4 +1,4 @@
-DATA_JSON_LIB_PBCS := compilers/data_json/data_json.pbc
+DATA_JSON_LIB_PBCS = compilers/data_json/data_json.pbc
 
 compilers/data_json/data_json.pbc : $(PARROT) \
     compilers/data_json/data_json/grammar.pbc \
Index: compilers/pct/Makefile.mak
===================================================================
--- compilers/pct/Makefile.mak  (revision 43325)
+++ compilers/pct/Makefile.mak  (working copy)
@@ -1,6 +1,6 @@
 ## XXX does not cover .includes of core .pasm files
 
-PCT_LIB_PBCS := \
+PCT_LIB_PBCS = \
     $(LIBRARY_DIR)/PCT.pbc \
     $(LIBRARY_DIR)/PCT/PAST.pbc \
     $(LIBRARY_DIR)/PCT/Grammar.pbc \
Index: compilers/imcc/Makefile.mak
===================================================================
--- compilers/imcc/Makefile.mak (revision 43325)
+++ compilers/imcc/Makefile.mak (working copy)
@@ -1,5 +1,5 @@
 # these are private to the IMCC subsystem
-IMCC_O_FILES := \
+IMCC_O_FILES = \
     compilers/imcc/imcparser$(O) \
     compilers/imcc/imclexer$(O) \
     compilers/imcc/imc$(O) \
Index: compilers/pge/Makefile.mak
===================================================================
--- compilers/pge/Makefile.mak  (revision 43325)
+++ compilers/pge/Makefile.mak  (working copy)
@@ -1,6 +1,6 @@
 # the default target
 
-PGE_LIB_PBCS := $(LIBRARY_DIR)/PGE.pbc
+PGE_LIB_PBCS = $(LIBRARY_DIR)/PGE.pbc
 
 ## Two-stage build that reuses builtins_gen.pir ; use the Perl6Grammar.pir
 ## of stage one to avoid a circular dependency.
Index: compilers/nqp/Makefile.mak
===================================================================
--- compilers/nqp/Makefile.mak  (revision 43325)
+++ compilers/nqp/Makefile.mak  (working copy)
@@ -1,6 +1,6 @@
-NQP_LIB_PBCS := compilers/nqp/nqp.pbc
+NQP_LIB_PBCS = compilers/nqp/nqp.pbc
 
-NQP_SOURCES := \
+NQP_SOURCES = \
     compilers/nqp/nqp.pir \
     compilers/nqp/src/Grammar.pg \
     compilers/nqp/src/Grammar/Actions.pir \
@@ -27,7 +27,7 @@
 
 compilers/nqp/bootstrap/nqp.pbc : $(LIBRARY)/PCT.pbc
 
-NQP_CLEANUPS := \
+NQP_CLEANUPS = \
     nqp.pbc \
     src/Grammar_gen.pir \
     bootstrap/gen_actions.pir \

-- 
    Andy Dougherty              [email protected]
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev

Reply via email to