[svn:parrot] r43316 - in branches/one_make: compilers/imcc config/gen/makefiles

coke at svn.parrot.org coke at svn.parrot.org
Wed Dec 30 04:58:53 UTC 2009


Author: coke
Date: Wed Dec 30 04:58:51 2009
New Revision: 43316
URL: https://trac.parrot.org/parrot/changeset/43316

Log:
$(IMCC_DIR) -> compilers/imcc

Modified:
   branches/one_make/compilers/imcc/Makefile.mak
   branches/one_make/config/gen/makefiles/root.in

Modified: branches/one_make/compilers/imcc/Makefile.mak
==============================================================================
--- branches/one_make/compilers/imcc/Makefile.mak	Wed Dec 30 04:37:24 2009	(r43315)
+++ branches/one_make/compilers/imcc/Makefile.mak	Wed Dec 30 04:58:51 2009	(r43316)
@@ -1,202 +1,202 @@
 # these are private to the IMCC subsystem
 IMCC_O_FILES := \
-    $(IMCC_DIR)/imcparser$(O) \
-    $(IMCC_DIR)/imclexer$(O) \
-    $(IMCC_DIR)/imc$(O) \
-    $(IMCC_DIR)/main$(O) \
-    $(IMCC_DIR)/symreg$(O) \
-    $(IMCC_DIR)/instructions$(O) \
-    $(IMCC_DIR)/cfg$(O) \
-    $(IMCC_DIR)/reg_alloc$(O) \
-    $(IMCC_DIR)/sets$(O) \
-    $(IMCC_DIR)/debug$(O) \
-    $(IMCC_DIR)/optimizer$(O) \
-    $(IMCC_DIR)/pbc$(O) \
-    $(IMCC_DIR)/parser_util$(O) \
-    $(IMCC_DIR)/pcc$(O)
-
-$(IMCC_DIR)/pcc$(O) : \
-    $(IMCC_DIR)/cfg.h \
-    $(IMCC_DIR)/debug.h \
-    $(IMCC_DIR)/imc.h \
-    $(IMCC_DIR)/imcparser.h \
-    $(IMCC_DIR)/instructions.h \
-    $(IMCC_DIR)/parser.h \
-    $(IMCC_DIR)/sets.h \
-    $(IMCC_DIR)/symreg.h \
-    $(IMCC_DIR)/unit.h \
+    compilers/imcc/imcparser$(O) \
+    compilers/imcc/imclexer$(O) \
+    compilers/imcc/imc$(O) \
+    compilers/imcc/main$(O) \
+    compilers/imcc/symreg$(O) \
+    compilers/imcc/instructions$(O) \
+    compilers/imcc/cfg$(O) \
+    compilers/imcc/reg_alloc$(O) \
+    compilers/imcc/sets$(O) \
+    compilers/imcc/debug$(O) \
+    compilers/imcc/optimizer$(O) \
+    compilers/imcc/pbc$(O) \
+    compilers/imcc/parser_util$(O) \
+    compilers/imcc/pcc$(O)
+
+compilers/imcc/pcc$(O) : \
+    compilers/imcc/cfg.h \
+    compilers/imcc/debug.h \
+    compilers/imcc/imc.h \
+    compilers/imcc/imcparser.h \
+    compilers/imcc/instructions.h \
+    compilers/imcc/parser.h \
+    compilers/imcc/sets.h \
+    compilers/imcc/symreg.h \
+    compilers/imcc/unit.h \
     $(INC_DIR)/oplib/ops.h \
     $(PARROT_H_HEADERS)
 
-$(IMCC_DIR)/instructions$(O) : \
-    $(IMCC_DIR)/cfg.h \
-    $(IMCC_DIR)/debug.h \
-    $(IMCC_DIR)/imc.h \
-    $(IMCC_DIR)/instructions.h \
-    $(IMCC_DIR)/optimizer.h \
-    $(IMCC_DIR)/pbc.h \
-    $(IMCC_DIR)/sets.h \
-    $(IMCC_DIR)/symreg.h \
-    $(IMCC_DIR)/unit.h \
+compilers/imcc/instructions$(O) : \
+    compilers/imcc/cfg.h \
+    compilers/imcc/debug.h \
+    compilers/imcc/imc.h \
+    compilers/imcc/instructions.h \
+    compilers/imcc/optimizer.h \
+    compilers/imcc/pbc.h \
+    compilers/imcc/sets.h \
+    compilers/imcc/symreg.h \
+    compilers/imcc/unit.h \
     $(INC_DIR)/oplib/ops.h \
     $(PARROT_H_HEADERS)
 
-$(IMCC_DIR)/pbc$(O) : \
-    $(IMCC_DIR)/cfg.h \
-    $(IMCC_DIR)/debug.h \
-    $(IMCC_DIR)/imc.h \
-    $(IMCC_DIR)/instructions.h \
-    $(IMCC_DIR)/pbc.h \
-    $(IMCC_DIR)/sets.h \
-    $(IMCC_DIR)/symreg.h \
-    $(IMCC_DIR)/unit.h \
+compilers/imcc/pbc$(O) : \
+    compilers/imcc/cfg.h \
+    compilers/imcc/debug.h \
+    compilers/imcc/imc.h \
+    compilers/imcc/instructions.h \
+    compilers/imcc/pbc.h \
+    compilers/imcc/sets.h \
+    compilers/imcc/symreg.h \
+    compilers/imcc/unit.h \
     $(INC_DIR)/oplib/ops.h \
     $(PARROT_H_HEADERS) \
     $(PMC_INC_DIR)/pmc/pmc_sub.h
 
-$(IMCC_DIR)/parser_util$(O) : \
-    $(IMCC_DIR)/cfg.h \
-    $(IMCC_DIR)/debug.h \
-    $(IMCC_DIR)/imc.h \
-    $(IMCC_DIR)/imcparser.h \
-    $(IMCC_DIR)/instructions.h \
-    $(IMCC_DIR)/optimizer.h \
-    $(IMCC_DIR)/parser.h \
-    $(IMCC_DIR)/pbc.h \
-    $(IMCC_DIR)/sets.h \
-    $(IMCC_DIR)/symreg.h \
-    $(IMCC_DIR)/unit.h \
+compilers/imcc/parser_util$(O) : \
+    compilers/imcc/cfg.h \
+    compilers/imcc/debug.h \
+    compilers/imcc/imc.h \
+    compilers/imcc/imcparser.h \
+    compilers/imcc/instructions.h \
+    compilers/imcc/optimizer.h \
+    compilers/imcc/parser.h \
+    compilers/imcc/pbc.h \
+    compilers/imcc/sets.h \
+    compilers/imcc/symreg.h \
+    compilers/imcc/unit.h \
     $(INC_DIR)/dynext.h \
     $(INC_DIR)/embed.h \
     $(INC_DIR)/oplib/ops.h \
     $(PARROT_H_HEADERS) \
     $(PMC_INC_DIR)/pmc/pmc_sub.h
 
-$(IMCC_DIR)/imc$(O) : \
-    $(IMCC_DIR)/cfg.h \
-    $(IMCC_DIR)/debug.h \
-    $(IMCC_DIR)/imc.h \
-    $(IMCC_DIR)/instructions.h \
-    $(IMCC_DIR)/optimizer.h \
-    $(IMCC_DIR)/sets.h \
-    $(IMCC_DIR)/symreg.h \
-    $(IMCC_DIR)/unit.h \
+compilers/imcc/imc$(O) : \
+    compilers/imcc/cfg.h \
+    compilers/imcc/debug.h \
+    compilers/imcc/imc.h \
+    compilers/imcc/instructions.h \
+    compilers/imcc/optimizer.h \
+    compilers/imcc/sets.h \
+    compilers/imcc/symreg.h \
+    compilers/imcc/unit.h \
     $(INC_DIR)/oplib/ops.h \
     $(PARROT_H_HEADERS)
 
-$(IMCC_DIR)/cfg$(O) : \
-    $(IMCC_DIR)/cfg.h \
-    $(IMCC_DIR)/debug.h \
-    $(IMCC_DIR)/imc.h \
-    $(IMCC_DIR)/instructions.h \
-    $(IMCC_DIR)/optimizer.h \
-    $(IMCC_DIR)/sets.h \
-    $(IMCC_DIR)/symreg.h \
-    $(IMCC_DIR)/unit.h \
+compilers/imcc/cfg$(O) : \
+    compilers/imcc/cfg.h \
+    compilers/imcc/debug.h \
+    compilers/imcc/imc.h \
+    compilers/imcc/instructions.h \
+    compilers/imcc/optimizer.h \
+    compilers/imcc/sets.h \
+    compilers/imcc/symreg.h \
+    compilers/imcc/unit.h \
     $(INC_DIR)/oplib/ops.h \
     $(PARROT_H_HEADERS)
 
-$(IMCC_DIR)/debug$(O) : \
-    $(IMCC_DIR)/cfg.h \
-    $(IMCC_DIR)/debug.h \
-    $(IMCC_DIR)/imc.h \
-    $(IMCC_DIR)/instructions.h \
-    $(IMCC_DIR)/sets.h \
-    $(IMCC_DIR)/symreg.h \
-    $(IMCC_DIR)/unit.h \
+compilers/imcc/debug$(O) : \
+    compilers/imcc/cfg.h \
+    compilers/imcc/debug.h \
+    compilers/imcc/imc.h \
+    compilers/imcc/instructions.h \
+    compilers/imcc/sets.h \
+    compilers/imcc/symreg.h \
+    compilers/imcc/unit.h \
     $(INC_DIR)/oplib/ops.h \
     $(PARROT_H_HEADERS)
 
-$(IMCC_DIR)/imclexer$(O) : \
-    $(IMCC_DIR)/cfg.h \
-    $(IMCC_DIR)/debug.h \
-    $(IMCC_DIR)/imc.h \
-    $(IMCC_DIR)/imcparser.h \
-    $(IMCC_DIR)/instructions.h \
-    $(IMCC_DIR)/parser.h \
-    $(IMCC_DIR)/sets.h \
-    $(IMCC_DIR)/symreg.h \
-    $(IMCC_DIR)/unit.h \
+compilers/imcc/imclexer$(O) : \
+    compilers/imcc/cfg.h \
+    compilers/imcc/debug.h \
+    compilers/imcc/imc.h \
+    compilers/imcc/imcparser.h \
+    compilers/imcc/instructions.h \
+    compilers/imcc/parser.h \
+    compilers/imcc/sets.h \
+    compilers/imcc/symreg.h \
+    compilers/imcc/unit.h \
     $(INC_DIR)/oplib/ops.h \
     $(PARROT_H_HEADERS)
 
-$(IMCC_DIR)/imcparser$(O) : \
-    $(IMCC_DIR)/cfg.h \
-    $(IMCC_DIR)/debug.h \
-    $(IMCC_DIR)/imc.h \
-    $(IMCC_DIR)/imcparser.h \
-    $(IMCC_DIR)/instructions.h \
-    $(IMCC_DIR)/optimizer.h \
-    $(IMCC_DIR)/parser.h \
-    $(IMCC_DIR)/pbc.h \
-    $(IMCC_DIR)/sets.h \
-    $(IMCC_DIR)/symreg.h \
-    $(IMCC_DIR)/unit.h \
+compilers/imcc/imcparser$(O) : \
+    compilers/imcc/cfg.h \
+    compilers/imcc/debug.h \
+    compilers/imcc/imc.h \
+    compilers/imcc/imcparser.h \
+    compilers/imcc/instructions.h \
+    compilers/imcc/optimizer.h \
+    compilers/imcc/parser.h \
+    compilers/imcc/pbc.h \
+    compilers/imcc/sets.h \
+    compilers/imcc/symreg.h \
+    compilers/imcc/unit.h \
     $(INC_DIR)/dynext.h \
     $(INC_DIR)/oplib/ops.h \
     $(PARROT_H_HEADERS)
 
-$(IMCC_DIR)/main$(O) : \
-    $(IMCC_DIR)/cfg.h \
-    $(IMCC_DIR)/debug.h \
-    $(IMCC_DIR)/imc.h \
-    $(IMCC_DIR)/imcparser.h \
-    $(IMCC_DIR)/instructions.h \
-    $(IMCC_DIR)/parser.h \
-    $(IMCC_DIR)/pbc.h \
-    $(IMCC_DIR)/sets.h \
-    $(IMCC_DIR)/symreg.h \
-    $(IMCC_DIR)/unit.h \
+compilers/imcc/main$(O) : \
+    compilers/imcc/cfg.h \
+    compilers/imcc/debug.h \
+    compilers/imcc/imc.h \
+    compilers/imcc/imcparser.h \
+    compilers/imcc/instructions.h \
+    compilers/imcc/parser.h \
+    compilers/imcc/pbc.h \
+    compilers/imcc/sets.h \
+    compilers/imcc/symreg.h \
+    compilers/imcc/unit.h \
     $(INC_DIR)/embed.h \
     $(INC_DIR)/imcc.h \
     $(INC_DIR)/oplib/ops.h \
     $(INC_DIR)/runcore_api.h \
     $(PARROT_H_HEADERS)
 
-$(IMCC_DIR)/optimizer$(O) : \
-    $(IMCC_DIR)/cfg.h \
-    $(IMCC_DIR)/debug.h \
-    $(IMCC_DIR)/imc.h \
-    $(IMCC_DIR)/instructions.h \
-    $(IMCC_DIR)/optimizer.h \
-    $(IMCC_DIR)/pbc.h \
-    $(IMCC_DIR)/sets.h \
-    $(IMCC_DIR)/symreg.h \
-    $(IMCC_DIR)/unit.h \
+compilers/imcc/optimizer$(O) : \
+    compilers/imcc/cfg.h \
+    compilers/imcc/debug.h \
+    compilers/imcc/imc.h \
+    compilers/imcc/instructions.h \
+    compilers/imcc/optimizer.h \
+    compilers/imcc/pbc.h \
+    compilers/imcc/sets.h \
+    compilers/imcc/symreg.h \
+    compilers/imcc/unit.h \
     $(INC_DIR)/oplib/ops.h \
     $(PARROT_H_HEADERS)
 
-$(IMCC_DIR)/reg_alloc$(O) : \
-    $(IMCC_DIR)/cfg.h \
-    $(IMCC_DIR)/debug.h \
-    $(IMCC_DIR)/imc.h \
-    $(IMCC_DIR)/instructions.h \
-    $(IMCC_DIR)/optimizer.h \
-    $(IMCC_DIR)/sets.h \
-    $(IMCC_DIR)/symreg.h \
-    $(IMCC_DIR)/unit.h \
+compilers/imcc/reg_alloc$(O) : \
+    compilers/imcc/cfg.h \
+    compilers/imcc/debug.h \
+    compilers/imcc/imc.h \
+    compilers/imcc/instructions.h \
+    compilers/imcc/optimizer.h \
+    compilers/imcc/sets.h \
+    compilers/imcc/symreg.h \
+    compilers/imcc/unit.h \
     $(INC_DIR)/oplib/ops.h \
     $(PARROT_H_HEADERS)
 
-$(IMCC_DIR)/sets$(O) : \
-    $(IMCC_DIR)/cfg.h \
-    $(IMCC_DIR)/debug.h \
-    $(IMCC_DIR)/imc.h \
-    $(IMCC_DIR)/instructions.h \
-    $(IMCC_DIR)/sets.h \
-    $(IMCC_DIR)/symreg.h \
-    $(IMCC_DIR)/unit.h \
+compilers/imcc/sets$(O) : \
+    compilers/imcc/cfg.h \
+    compilers/imcc/debug.h \
+    compilers/imcc/imc.h \
+    compilers/imcc/instructions.h \
+    compilers/imcc/sets.h \
+    compilers/imcc/symreg.h \
+    compilers/imcc/unit.h \
     $(INC_DIR)/oplib/ops.h \
     $(PARROT_H_HEADERS)
 
-$(IMCC_DIR)/symreg$(O) : \
-    $(IMCC_DIR)/cfg.h \
-    $(IMCC_DIR)/debug.h \
-    $(IMCC_DIR)/imc.h \
-    $(IMCC_DIR)/instructions.h \
-    $(IMCC_DIR)/sets.h \
-    $(IMCC_DIR)/symreg.h \
-    $(IMCC_DIR)/unit.h \
+compilers/imcc/symreg$(O) : \
+    compilers/imcc/cfg.h \
+    compilers/imcc/debug.h \
+    compilers/imcc/imc.h \
+    compilers/imcc/instructions.h \
+    compilers/imcc/sets.h \
+    compilers/imcc/symreg.h \
+    compilers/imcc/unit.h \
     $(INC_DIR)/oplib/ops.h \
     $(PARROT_H_HEADERS)
 
@@ -207,18 +207,18 @@
 # Note that YACC or LEX may be null commands, so we must `touch` all the
 # target files, instead of just the .flag files.
 
-$(IMCC_DIR)/imcc.y.flag $(IMCC_DIR)/imcparser.c $(IMCC_DIR)/imcparser.h : $(IMCC_DIR)/imcc.y
-	$(YACC) $(IMCC_DIR)/imcc.y -d -o $(IMCC_DIR)/imcparser.c
-	$(PERL) $(BUILD_TOOLS_DIR)/fixup_gen_file.pl -noheaderizer $(IMCC_DIR)/imcparser.c $(IMCC_DIR)/imcc.y
-	$(PERL) $(BUILD_TOOLS_DIR)/fixup_gen_file.pl -noheaderizer $(IMCC_DIR)/imcparser.h $(IMCC_DIR)/imcc.y
-	$(TOUCH) $(IMCC_DIR)/imcc.y.flag $(IMCC_DIR)/imcparser.c $(IMCC_DIR)/imcparser.h
-
-$(IMCC_DIR)/imcc.l.flag $(IMCC_DIR)/imclexer.c : $(IMCC_DIR)/imcc.l
-	$(LEX) -o$(IMCC_DIR)/imclexer.c $(IMCC_DIR)/imcc.l
-	$(TOUCH) $(IMCC_DIR)/imcc.l.flag $(IMCC_DIR)/imclexer.c
+compilers/imcc/imcc.y.flag compilers/imcc/imcparser.c compilers/imcc/imcparser.h : compilers/imcc/imcc.y
+	$(YACC) compilers/imcc/imcc.y -d -o compilers/imcc/imcparser.c
+	$(PERL) $(BUILD_TOOLS_DIR)/fixup_gen_file.pl -noheaderizer compilers/imcc/imcparser.c compilers/imcc/imcc.y
+	$(PERL) $(BUILD_TOOLS_DIR)/fixup_gen_file.pl -noheaderizer compilers/imcc/imcparser.h compilers/imcc/imcc.y
+	$(TOUCH) compilers/imcc/imcc.y.flag compilers/imcc/imcparser.c compilers/imcc/imcparser.h
+
+compilers/imcc/imcc.l.flag compilers/imcc/imclexer.c : compilers/imcc/imcc.l
+	$(LEX) -ocompilers/imcc/imclexer.c compilers/imcc/imcc.l
+	$(TOUCH) compilers/imcc/imcc.l.flag compilers/imcc/imclexer.c
 
 imcc-clean:
 	$(RM_F) \
-    $(IMCC_DIR)/core \
-    "$(IMCC_DIR)/*$(O)" \
-    $(IMCC_DIR)/imcparser.output
+    compilers/imcc/core \
+    "compilers/imcc/*$(O)" \
+    compilers/imcc/imcparser.output

Modified: branches/one_make/config/gen/makefiles/root.in
==============================================================================
--- branches/one_make/config/gen/makefiles/root.in	Wed Dec 30 04:37:24 2009	(r43315)
+++ branches/one_make/config/gen/makefiles/root.in	Wed Dec 30 04:58:51 2009	(r43316)
@@ -53,9 +53,6 @@
 # current directory
 CUR_DIR         := .
 
-# directory for the intermediate code compiler
-IMCC_DIR        := compilers/imcc
-
 # directory for the (experimental) PIR code compiler
 PIRC_DIR        := compilers/pirc
 
@@ -191,12 +188,12 @@
 #IF(has_crypto):    t/dynpmc/sha256.t \
 #IF(has_crypto):    t/dynpmc/sha512.t \
     CFLAGS \
-    $(IMCC_DIR)/CFLAGS \
+    compilers/imcc/CFLAGS \
     config_lib.pasm \
     $(BUILD_TOOLS_DIR)/dynpmc.pl \
     $(BUILD_TOOLS_DIR)/dynoplibs.pl \
     parrot.pc \
-    $(IMCC_DIR)/imcc.y.flag \
+    compilers/imcc/imcc.y.flag \
     $(OPS_DIR)/core_ops.c \
     $(OPS_DIR)/core_ops_switch.c
 
@@ -1947,7 +1944,7 @@
     $(INSTALLABLENQP) \
     pbc_to_exe.pbc pbc_to_exe.c pbc_to_exe$(O) pbc_to_exe$(EXE) \
     parrot_config$(EXE) parrot_config.c parrot_config$(O) parrot_config.pbc \
-    $(IMCC_DIR)/main$(O) \
+    compilers/imcc/main$(O) \
     $(PDUMP) $(SRC_DIR)/pbc_dump$(O) $(SRC_DIR)/packdump$(O) \
     $(PDB) $(SRC_DIR)/parrot_debugger$(O) \
     $(PBCMERGE) $(SRC_DIR)/pbc_merge$(O) \
@@ -1982,7 +1979,7 @@
     $(INSTALLABLEPDB) \
     $(INSTALLABLECONFIG) \
     $(INSTALLABLENQP) \
-    $(IMCC_DIR)/main$(O) \
+    compilers/imcc/main$(O) \
     $(PDUMP) $(SRC_DIR)/pbc_dump$(O) $(SRC_DIR)/packdump$(O) \
     $(PDB) $(SRC_DIR)/parrot_debugger$(O) \
     $(PBCMERGE) $(SRC_DIR)/pbc_merge$(O) \
@@ -2319,7 +2316,7 @@
 	$(MKPATH) $(SPLINT_TMP)
 	$(SPLINT) $(CC_INC) "-Iinclude/pmc" "-Icompilers/ast" $(SPLINTFLAGS) $(SPLINTFLAGS_TEST) \
 	$(SPLINT_SOURCE) \
-	$(SPLINT) $(CC_INC) $(SPLINTFLAGS) $(SPLINTFLAGS_TEST) $(IMCC_DIR)/main.c
+	$(SPLINT) $(CC_INC) $(SPLINTFLAGS) $(SPLINTFLAGS_TEST) compilers/imcc/main.c
 
 # "splint" is the less-thorough splint target.  For cage cleaning work,
 # you'll probably want to specify SPLINT_SOURCE rather than work on the
@@ -2351,7 +2348,7 @@
     $(BUILD_DIR) \
     $(BUILD_DIR)/t/perl \
     $(IO_DIR) \
-    $(IMCC_DIR)
+    compilers/imcc
 
 cover: \
     cover.dummy \
@@ -2578,7 +2575,7 @@
     $(PIRC_O_FILES)
 
 headerizer : $(SRC_DIR)/core_pmcs.c
-	$(PERL) $(BUILD_TOOLS_DIR)/headerizer.pl $(HEADERIZER_O_FILES) $(IMCC_DIR)/imcc.y
+	$(PERL) $(BUILD_TOOLS_DIR)/headerizer.pl $(HEADERIZER_O_FILES) compilers/imcc/imcc.y
 
 apilist: $(SRC_DIR)/core_pmcs.c
 	$(PERL) $(BUILD_TOOLS_DIR)/headerizer.pl --macro=PARROT_EXPORT $(HEADERIZER_O_FILES)


More information about the parrot-commits mailing list