jan@57: # $Header$ jan@57: # jan@57: # DO NOT EDIT sv@121: # automagically generated from the projectDefinition: stx_goodies_builder_reports. jan@57: # jan@57: # Warning: once you modify this file, do not rerun jan@57: # stmkmp or projectDefinition-build again - otherwise, your changes are lost. jan@57: # jan@57: # The Makefile as generated by this Make.proto supports the following targets: jan@57: # make - compile all st-files to a classLib jan@57: # make clean - clean all temp files jan@57: # make clobber - clean all jan@57: # jan@57: # This file contains definitions for Unix based platforms. jan@57: # It shares common definitions with the win32-make in Make.spec. jan@57: jan@57: # jan@57: # position (of this package) in directory hierarchy: jan@57: # (must point to ST/X top directory, for tools and includes) jan@57: TOP=../../.. jan@57: INCLUDE_TOP=$(TOP)/.. jan@57: jan@57: # subdirectories where targets are to be made: jan@57: SUBDIRS= jan@57: jan@57: jan@57: # subdirectories where Makefiles are to be made: jan@57: # (only define if different from SUBDIRS) jan@57: # ALLSUBDIRS= jan@57: jan@57: REQUIRED_SUPPORT_DIRS= jan@57: jan@57: # if your embedded C code requires any system includes, jan@57: # add the path(es) here:, jan@57: # ********** OPTIONAL: MODIFY the next lines *** jan@57: # LOCALINCLUDES=-Ifoo -Ibar jan@285: LOCALINCLUDES= -I$(INCLUDE_TOP)/stx/goodies/refactoryBrowser/browser -I$(INCLUDE_TOP)/stx/goodies/refactoryBrowser/helpers -I$(INCLUDE_TOP)/stx/goodies/refactoryBrowser/lint -I$(INCLUDE_TOP)/stx/goodies/sunit -I$(INCLUDE_TOP)/stx/libbasic -I$(INCLUDE_TOP)/stx/libcomp jan@57: jan@57: jan@57: # if you need any additional defines for embedded C code, jan@57: # add them here:, jan@57: # ********** OPTIONAL: MODIFY the next lines *** jan@57: # LOCALDEFINES=-Dfoo -Dbar -DDEBUG jan@57: LOCALDEFINES= jan@57: jan@57: LIBNAME=libstx_goodies_builder_reports jan@57: STCLOCALOPT='-package=$(PACKAGE)' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) -headerDir=. -varPrefix=$(LIBNAME) jan@57: jan@57: jan@57: # ********** OPTIONAL: MODIFY the next line *** jan@57: # additional C-libraries that should be pre-linked with the class-objects jan@57: LD_OBJ_LIBS= jan@57: LOCAL_SHARED_LIBS= jan@57: jan@57: jan@57: # ********** OPTIONAL: MODIFY the next line *** jan@57: # additional C targets or libraries should be added below jan@57: LOCAL_EXTRA_TARGETS= jan@57: jan@57: OBJS= $(COMMON_OBJS) $(UNIX_OBJS) jan@57: jan@57: jan@57: jan@57: all:: preMake classLibRule postMake jan@57: jan@133: pre_objs:: jan@133: jan@57: jan@57: jan@57: jan@133: # Update SVN revision in package definition class jan@133: ifneq (,$(findstring .svn,$(wildcard .svn))) jan@133: .svnversion: *.st jan@133: if [ -d .svn ]; then \ jan@133: rev=$(shell svnversion -n); \ jan@133: echo -n $$rev > .svnversion; \ jan@133: else \ jan@133: echo -n exported > .svnversion; \ jan@133: fi jan@133: jan@133: stx_goodies_builder_reports.o: stx_goodies_builder_reports.st .svnversion jan@133: @if [ -d .svn ]; then \ jan@133: rev2="$(shell printf "%-16s" $$(cat .svnversion))"; \ jan@133: echo " [SV] Expanding svnRevisionNo in $1.st"; \ jan@133: sed -e "s/\"\$$SVN\-Revision:\".*\"\$$\"/\"\$$SVN-Revision:\"\'$$rev2\'\"\$$\"/g" $< > .stx_goodies_builder_reports.svn.st; \ jan@57: fi jan@133: $(MAKE) CC="$(CLASSLIB_CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" STC="$(STC)" STFILE=.stx_goodies_builder_reports.svn $(C_RULE); jan@133: sed -i -e "s/\".stx_goodies_builder_reports.svn.st\");/\"\stx_goodies_builder_reports.st\");/g" .stx_goodies_builder_reports.svn.c jan@133: $(MAKE) .stx_goodies_builder_reports.svn.$(O) jan@133: @mv .stx_goodies_builder_reports.svn.$(O) stx_goodies_builder_reports.$(O) jan@133: endif jan@133: jan@133: jan@57: jan@57: jan@57: jan@57: jan@133: # run default testsuite for this package jan@133: test: $(TOP)/goodies/builder/reports jan@258: $(MAKE) -C $(TOP)/goodies/builder/reports -f Makefile.init jan@133: $(TOP)/goodies/builder/reports/report-runner.sh -D . -r Builder::TestReport -p $(PACKAGE) jan@133: jan@133: jan@133: jan@57: # add more install actions here jan@57: install:: jan@57: jan@57: # add more install actions for aux-files (resources) here jan@57: installAux:: jan@57: jan@57: # add more preMake actions here jan@57: preMake:: jan@57: jan@57: # add more postMake actions here jan@57: postMake:: cleanjunk jan@57: jan@133: # build all mandatory prerequisite packages (containing superclasses) for this package jan@133: prereq: jan@57: cd ../../../libbasic && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" jan@133: cd ../../../libbasic2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" jan@258: cd ../../../libbasic3 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" jan@57: cd ../../../libview && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" jan@57: cd ../../../libview2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" jan@57: cd ../../sunit && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)" jan@57: jan@57: jan@57: jan@133: # build all packages containing referenced classes for this package jan@277: # they are not needed to compile the package (but later, to load it) jan@133: references: jan@133: jan@133: jan@57: cleanjunk:: jan@57: -rm -f *.s *.s2 jan@57: jan@57: clean:: jan@57: -rm -f *.o *.H jan@57: jan@57: clobber:: clean jan@57: -rm -f *.so *.dll jan@57: jan@57: jan@57: # BEGINMAKEDEPEND --- do not remove this line; make depend needs it jan@57: $(OUTDIR)Builder__Report.$(O) Builder__Report.$(H): Builder__Report.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) jan@57: $(OUTDIR)Builder__ReportFormat.$(O) Builder__ReportFormat.$(H): Builder__ReportFormat.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) jan@258: $(OUTDIR)Builder__ReportRunner.$(O) Builder__ReportRunner.$(H): Builder__ReportRunner.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/StandaloneStartup.$(H) $(STCHDR) jan@170: $(OUTDIR)Builder__ReportSourceInfo.$(O) Builder__ReportSourceInfo.$(H): Builder__ReportSourceInfo.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/Stream.$(H) $(STCHDR) jan@258: $(OUTDIR)stx_goodies_builder_reports.$(O) stx_goodies_builder_reports.$(H): stx_goodies_builder_reports.st $(INCLUDE_TOP)/stx/libbasic/LibraryDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/ProjectDefinition.$(H) $(STCHDR) jan@57: $(OUTDIR)Builder__ChangeReport.$(O) Builder__ChangeReport.$(H): Builder__ChangeReport.st $(INCLUDE_TOP)/stx/goodies/builder/reports/Builder__Report.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) jan@170: $(OUTDIR)Builder__CoverageReport.$(O) Builder__CoverageReport.$(H): Builder__CoverageReport.st $(INCLUDE_TOP)/stx/goodies/builder/reports/Builder__Report.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) jan@196: $(OUTDIR)Builder__CoverageReportFormat.$(O) Builder__CoverageReportFormat.$(H): Builder__CoverageReportFormat.st $(INCLUDE_TOP)/stx/goodies/builder/reports/Builder__ReportFormat.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libcomp/Parser.$(H) $(INCLUDE_TOP)/stx/libcomp/Scanner.$(H) $(STCHDR) jan@170: $(OUTDIR)Builder__LintReport.$(O) Builder__LintReport.$(H): Builder__LintReport.st $(INCLUDE_TOP)/stx/goodies/builder/reports/Builder__Report.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) jan@57: $(OUTDIR)Builder__LintReportFormat.$(O) Builder__LintReportFormat.$(H): Builder__LintReportFormat.st $(INCLUDE_TOP)/stx/goodies/builder/reports/Builder__ReportFormat.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) jan@206: $(OUTDIR)Builder__ReportClassSourceInfo.$(O) Builder__ReportClassSourceInfo.$(H): Builder__ReportClassSourceInfo.st $(INCLUDE_TOP)/stx/goodies/builder/reports/Builder__ReportSourceInfo.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) jan@206: $(OUTDIR)Builder__ReportExtensionsSourceInfo.$(O) Builder__ReportExtensionsSourceInfo.$(H): Builder__ReportExtensionsSourceInfo.st $(INCLUDE_TOP)/stx/goodies/builder/reports/Builder__ReportSourceInfo.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) jan@258: $(OUTDIR)Builder__TestReport.$(O) Builder__TestReport.$(H): Builder__TestReport.st $(INCLUDE_TOP)/stx/goodies/builder/reports/Builder__Report.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestResult.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) jan@57: $(OUTDIR)Builder__TestReportFormat.$(O) Builder__TestReportFormat.$(H): Builder__TestReportFormat.st $(INCLUDE_TOP)/stx/goodies/builder/reports/Builder__ReportFormat.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) jan@258: $(OUTDIR)extensions.$(O): extensions.st $(INCLUDE_TOP)/stx/goodies/sunit/TestAsserter.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestCase.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR) jan@57: jan@57: # ENDMAKEDEPEND --- do not remove this line jan@57: