compiler/Make.proto
changeset 8 c2de4aaa2670
parent 7 cccc239c8833
child 10 5df5a2f8e4b5
equal deleted inserted replaced
7:cccc239c8833 8:c2de4aaa2670
    19 # (must point to ST/X top directory, for tools and includes)
    19 # (must point to ST/X top directory, for tools and includes)
    20 TOP=../../../stx
    20 TOP=../../../stx
    21 INCLUDE_TOP=$(TOP)/..
    21 INCLUDE_TOP=$(TOP)/..
    22 
    22 
    23 # subdirectories where targets are to be made:
    23 # subdirectories where targets are to be made:
    24 SUBDIRS=
    24 SUBDIRS= tests
    25 
    25 
    26 
    26 
    27 # subdirectories where Makefiles are to be made:
    27 # subdirectories where Makefiles are to be made:
    28 # (only define if different from SUBDIRS)
    28 # (only define if different from SUBDIRS)
    29 # ALLSUBDIRS=
    29 # ALLSUBDIRS=
    32 
    32 
    33 # if your embedded C code requires any system includes,
    33 # if your embedded C code requires any system includes,
    34 # add the path(es) here:,
    34 # add the path(es) here:,
    35 # ********** OPTIONAL: MODIFY the next lines ***
    35 # ********** OPTIONAL: MODIFY the next lines ***
    36 # LOCALINCLUDES=-Ifoo -Ibar
    36 # LOCALINCLUDES=-Ifoo -Ibar
    37 LOCALINCLUDES= -I$(INCLUDE_TOP)/stx/goodies/sunit -I$(INCLUDE_TOP)/stx/libbasic -I$(INCLUDE_TOP)/stx/goodies/petitparser
    37 LOCALINCLUDES= -I$(INCLUDE_TOP)/stx/goodies/petitparser -I$(INCLUDE_TOP)/stx/libbasic -I$(INCLUDE_TOP)/stx/libcomp
    38 
    38 
    39 
    39 
    40 # if you need any additional defines for embedded C code,
    40 # if you need any additional defines for embedded C code,
    41 # add them here:,
    41 # add them here:,
    42 # ********** OPTIONAL: MODIFY the next lines ***
    42 # ********** OPTIONAL: MODIFY the next lines ***
    80 
    80 
    81 
    81 
    82 
    82 
    83 # run default testsuite for this package
    83 # run default testsuite for this package
    84 test: $(TOP)/goodies/builder/reports
    84 test: $(TOP)/goodies/builder/reports
    85 	$(MAKE) -C $(TOP)/goodies/builder/reports
    85 	$(MAKE) -C $(TOP)/goodies/builder/reports -f Makefile.init
    86 	$(TOP)/goodies/builder/reports/report-runner.sh -D . -r Builder::TestReport -p $(PACKAGE)
    86 	$(TOP)/goodies/builder/reports/report-runner.sh -D . -r Builder::TestReport -p $(PACKAGE)
    87 
    87 
    88 
    88 
    89 
    89 
    90 # add more install actions here
    90 # add more install actions here
    97 preMake::
    97 preMake::
    98 
    98 
    99 # add more postMake actions here
    99 # add more postMake actions here
   100 postMake:: cleanjunk
   100 postMake:: cleanjunk
   101 
   101 
   102 prereq: $(REQUIRED_SUPPORT_DIRS)
   102 # build all mandatory prerequisite packages (containing superclasses) for this package
       
   103 prereq:
   103 	cd $(TOP)/libbasic && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
   104 	cd $(TOP)/libbasic && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
   104 	cd $(TOP)/librun && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
   105 	cd $(TOP)/libbasic2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
       
   106 	cd $(TOP)/goodies/petitparser && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
   105 
   107 
       
   108 
       
   109 
       
   110 # build all packages containing referenced classes for this package
       
   111 # they are nor needed to compile the package
       
   112 references:
   106 
   113 
   107 
   114 
   108 cleanjunk::
   115 cleanjunk::
   109 	-rm -f *.s *.s2
   116 	-rm -f *.s *.s2
   110 
   117 
   117 
   124 
   118 # BEGINMAKEDEPEND --- do not remove this line; make depend needs it
   125 # BEGINMAKEDEPEND --- do not remove this line; make depend needs it
   119 $(OUTDIR)Dart__Parser.$(O) Dart__Parser.$(H): Dart__Parser.st $(INCLUDE_TOP)/stx/goodies/petitparser/PPCompositeParser.$(H) $(INCLUDE_TOP)/stx/goodies/petitparser/PPDelegateParser.$(H) $(INCLUDE_TOP)/stx/goodies/petitparser/PPParser.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
   126 $(OUTDIR)Dart__Parser.$(O) Dart__Parser.$(H): Dart__Parser.st $(INCLUDE_TOP)/stx/goodies/petitparser/PPCompositeParser.$(H) $(INCLUDE_TOP)/stx/goodies/petitparser/PPDelegateParser.$(H) $(INCLUDE_TOP)/stx/goodies/petitparser/PPParser.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
   120 $(OUTDIR)Dart__ParserError.$(O) Dart__ParserError.$(H): Dart__ParserError.st $(INCLUDE_TOP)/stx/libbasic/Error.$(H) $(INCLUDE_TOP)/stx/libbasic/Exception.$(H) $(INCLUDE_TOP)/stx/libbasic/GenericException.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
   127 $(OUTDIR)Dart__ParserError.$(O) Dart__ParserError.$(H): Dart__ParserError.st $(INCLUDE_TOP)/stx/libbasic/Error.$(H) $(INCLUDE_TOP)/stx/libbasic/Exception.$(H) $(INCLUDE_TOP)/stx/libbasic/GenericException.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
   121 $(OUTDIR)Dart__ScannerBase.$(O) Dart__ScannerBase.$(H): Dart__ScannerBase.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
   128 $(OUTDIR)Dart__ScannerBase.$(O) Dart__ScannerBase.$(H): Dart__ScannerBase.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
   122 $(OUTDIR)Dart__ScannerTests.$(O) Dart__ScannerTests.$(H): Dart__ScannerTests.st $(INCLUDE_TOP)/stx/goodies/sunit/TestCase.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestAsserter.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
   129 $(OUTDIR)ctu_dart_compiler.$(O) ctu_dart_compiler.$(H): ctu_dart_compiler.st $(INCLUDE_TOP)/stx/libbasic/LibraryDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/ProjectDefinition.$(H) $(STCHDR)
   123 $(OUTDIR)ctu_dart_compiler.$(O) ctu_dart_compiler.$(H): ctu_dart_compiler.st $(INCLUDE_TOP)/stx/libbasic/LibraryDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/ProjectDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
       
   124 $(OUTDIR)Dart__Scanner.$(O) Dart__Scanner.$(H): Dart__Scanner.st $(INCLUDE_TOP)/ctu/dart/compiler/Dart__ScannerBase.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
   130 $(OUTDIR)Dart__Scanner.$(O) Dart__Scanner.$(H): Dart__Scanner.st $(INCLUDE_TOP)/ctu/dart/compiler/Dart__ScannerBase.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
   125 $(OUTDIR)Dart__ScannerError.$(O) Dart__ScannerError.$(H): Dart__ScannerError.st $(INCLUDE_TOP)/ctu/dart/compiler/Dart__ParserError.$(H) $(INCLUDE_TOP)/stx/libbasic/Error.$(H) $(INCLUDE_TOP)/stx/libbasic/Exception.$(H) $(INCLUDE_TOP)/stx/libbasic/GenericException.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
   131 $(OUTDIR)Dart__ScannerError.$(O) Dart__ScannerError.$(H): Dart__ScannerError.st $(INCLUDE_TOP)/ctu/dart/compiler/Dart__ParserError.$(H) $(INCLUDE_TOP)/stx/libbasic/Error.$(H) $(INCLUDE_TOP)/stx/libbasic/Exception.$(H) $(INCLUDE_TOP)/stx/libbasic/GenericException.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
   126 $(OUTDIR)Dart__SyntaxError.$(O) Dart__SyntaxError.$(H): Dart__SyntaxError.st $(INCLUDE_TOP)/ctu/dart/compiler/Dart__ParserError.$(H) $(INCLUDE_TOP)/stx/libbasic/Error.$(H) $(INCLUDE_TOP)/stx/libbasic/Exception.$(H) $(INCLUDE_TOP)/stx/libbasic/GenericException.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
   132 $(OUTDIR)Dart__SyntaxError.$(O) Dart__SyntaxError.$(H): Dart__SyntaxError.st $(INCLUDE_TOP)/ctu/dart/compiler/Dart__ParserError.$(H) $(INCLUDE_TOP)/stx/libbasic/Error.$(H) $(INCLUDE_TOP)/stx/libbasic/Exception.$(H) $(INCLUDE_TOP)/stx/libbasic/GenericException.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
   127 
   133 
   128 # ENDMAKEDEPEND --- do not remove this line
   134 # ENDMAKEDEPEND --- do not remove this line