Author: particle
Date: Fri Nov 11 14:54:04 2005
New Revision: 9911

Added:
   trunk/config/gen/makefiles/amber.in
Log:
added missing amber makefile template

Added: trunk/config/gen/makefiles/amber.in
==============================================================================
--- (empty file)
+++ trunk/config/gen/makefiles/amber.in Fri Nov 11 14:54:04 2005
@@ -0,0 +1,54 @@
+RM_F     = ${rm_f}

+PERL     = ${perl}

+BUILDPMC = $(PERL) ${build_dir}${slash}build_tools${slash}build_dynclasses.pl

+DESTDIR  = ${build_dir}${slash}runtime${slash}parrot${slash}dynext

+O        = ${o}

+CLASSDIR = lib/kernel/pmc

+LOAD_EXT = ${load_ext}

+

+# Order matters!

+PMCS = \

+ amber_default \

+ amber_array \

+ amber_boolean \

+ amber_integer \

+ amber_character \

+ amber_string \

+ amber_pathname \

+ amber_table

+

+# the default target

+all: pmcs

+

+# a listing of all targets that are meant to be called by users

+help:

+       @echo ""

+       @echo "Following targets are available for the user:"

+       @echo ""

+       @echo "  all:               pmcs"

+       @echo "                     This is the default."

+       @echo "  pmcs:              PMCs for Amber's kernel types."

+       @echo ""

+       @echo "Cleaning:"

+       @echo "  clean:             Basic cleaning up."

+       @echo "  realclean:         Removes also files generated by 
'Configure.pl'"

+       @echo "  distclean:         Removes also anything built, in theory"

+       @echo ""

+       @echo "Misc:"

+       @echo "  help:              Print this help message."

+       @echo ""

+

+# PMCs for Amber's kernel types

+pmcs:

+       @cd $(CLASSDIR) && $(BUILDPMC) generate $(PMCS)

+       @cd $(CLASSDIR) && $(BUILDPMC) compile $(PMCS)

+       @cd $(CLASSDIR) && $(BUILDPMC) linklibs $(PMCS)

+       @cd $(CLASSDIR) && $(BUILDPMC) copy "--destination=$(DESTDIR)" $(PMCS)

+

+clean:

+       $(RM_F) $(CLASSDIR)${slash}pmc_*.h $(CLASSDIR)${slash}amber_*.h 
$(CLASSDIR)${slash}*$(LOAD_EXT) $(CLASSDIR)${slash}*.dump 
$(CLASSDIR)${slash}*.c $(CLASSDIR)${slash}*$(O)

+

+realclean: clean

+       $(RM_F) Makefile

+

+distclean: realclean

Reply via email to