terminals/tests/Make.proto
author joe
Fri, 15 Mar 2013 19:39:10 -0400
changeset 112 b6b3d8435bb7
parent 71 b5baf23694f3
child 122 3b4640056b6d
permissions -rw-r--r--
- Xtreams::FileReadingWritingTest class: Xtreams::FileReadingWritingTest added: #version_HG - stx_goodies_xtreams_terminals_tests class: stx_goodies_xtreams_terminals_tests changed: #classNamesAndAttributes - Xtreams::BlockClosureReadingWritingTest class: Xtreams::BlockClosureReadingWritingTest added: #version_HG - Xtreams::PipeReadingWritingTest class: Xtreams::PipeReadingWritingTest added: #version_HG - Xtreams::BufferReadingWritingTest class: Xtreams::BufferReadingWritingTest added: #version_HG - Xtreams::BlockClosureTest class: Xtreams::BlockClosureTest added: #version_HG - Xtreams::RingBufferReadingWritingTest class: Xtreams::RingBufferReadingWritingTest added: #version_HG - Xtreams::BufferedWriteStreamTest class: Xtreams::BufferedWriteStreamTest added: #version_HG - Xtreams::CollectionReadingWritingTest class: Xtreams::CollectionReadingWritingTest added: #version_HG - Xtreams::SocketReadingWritingTest class: Xtreams::SocketReadingWritingTest added: #version_HG - Xtreams::ElasticBufferReadingWritingTest class: Xtreams::ElasticBufferReadingWritingTest added: #version_HG

# $Header$
#
# DO NOT EDIT
# automagically generated from the projectDefinition: stx_goodies_xtreams_terminals_tests.
#
# Warning: once you modify this file, do not rerun
# stmkmp or projectDefinition-build again - otherwise, your changes are lost.
#
# The Makefile as generated by this Make.proto supports the following targets:
#    make         - compile all st-files to a classLib
#    make clean   - clean all temp files
#    make clobber - clean all
#
# This file contains definitions for Unix based platforms.
# It shares common definitions with the win32-make in Make.spec.

#
# position (of this package) in directory hierarchy:
# (must point to ST/X top directory, for tools and includes)
TOP=../../../..
INCLUDE_TOP=$(TOP)/..

# subdirectories where targets are to be made:
SUBDIRS=


# subdirectories where Makefiles are to be made:
# (only define if different from SUBDIRS)
# ALLSUBDIRS=

REQUIRED_SUPPORT_DIRS=

# if your embedded C code requires any system includes,
# add the path(es) here:,
# ********** OPTIONAL: MODIFY the next lines ***
# LOCALINCLUDES=-Ifoo -Ibar
LOCALINCLUDES= -I$(INCLUDE_TOP)/stx/libbasic -I$(INCLUDE_TOP)/stx/goodies/xtreams/core/tests -I$(INCLUDE_TOP)/stx/goodies/xtreams/core -I$(INCLUDE_TOP)/stx/libbasic2 -I$(INCLUDE_TOP)/stx/goodies/xtreams/support -I$(INCLUDE_TOP)/stx/goodies/sunit


# if you need any additional defines for embedded C code,
# add them here:,
# ********** OPTIONAL: MODIFY the next lines ***
# LOCALDEFINES=-Dfoo -Dbar -DDEBUG
LOCALDEFINES=

LIBNAME=libstx_goodies_xtreams_terminals_tests
STCLOCALOPT='-package=$(PACKAGE)' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) -headerDir=.  -varPrefix=$(LIBNAME)


# ********** OPTIONAL: MODIFY the next line ***
# additional C-libraries that should be pre-linked with the class-objects
LD_OBJ_LIBS=
LOCAL_SHARED_LIBS=


# ********** OPTIONAL: MODIFY the next line ***
# additional C targets or libraries should be added below
LOCAL_EXTRA_TARGETS=

OBJS= $(COMMON_OBJS) $(UNIX_OBJS)



all:: preMake classLibRule postMake

pre_objs::  




# Update SVN revision in package definition class
ifneq (,$(findstring .svn,$(wildcard .svn)))
.svnversion: *.st
	if [ -d .svn ]; then \
		rev=$(shell svnversion -n); \
		echo -n $$rev > .svnversion; \
	else \
		echo -n exported > .svnversion; \
	fi

stx_goodies_xtreams_terminals_tests.o: stx_goodies_xtreams_terminals_tests.st .svnversion
	@if [ -d .svn ]; then \
		rev2="$(shell printf "%-16s" $$(cat .svnversion))"; \
		echo "  [SV]  Expanding svnRevisionNo in $1.st"; \
		sed -e "s/\"\$$SVN\-Revision:\".*\"\$$\"/\"\$$SVN-Revision:\"\'$$rev2\'\"\$$\"/g" $< > .stx_goodies_xtreams_terminals_tests.svn.st; \
	fi
	$(MAKE) CC="$(CLASSLIB_CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" STC="$(STC)" STFILE=.stx_goodies_xtreams_terminals_tests.svn $(C_RULE);
	sed -i -e "s/\".stx_goodies_xtreams_terminals_tests.svn.st\");/\"\stx_goodies_xtreams_terminals_tests.st\");/g" .stx_goodies_xtreams_terminals_tests.svn.c
	$(MAKE) .stx_goodies_xtreams_terminals_tests.svn.$(O)
	@mv .stx_goodies_xtreams_terminals_tests.svn.$(O) stx_goodies_xtreams_terminals_tests.$(O)
endif



# Enforce recompilation of package definition class if Mercurial working
# copy state changes. Together with --guessVersion it ensures that package
# definition class always contains correct binary revision string.
ifneq (**NOHG**, $(shell hg root 2> /dev/null || echo -n '**NOHG**'))
stx_goodies_xtreams_terminals_tests.$(O): $(shell hg root)/.hg/dirstate
endif




# run default testsuite for this package
test: $(TOP)/goodies/builder/reports
	$(MAKE) -C $(TOP)/goodies/builder/reports
	$(TOP)/goodies/builder/reports/report-runner.sh -D . -r Builder::TestReport -p $(PACKAGE)



# add more install actions here
install::

# add more install actions for aux-files (resources) here
installAux::

# add more preMake actions here
preMake::

# add more postMake actions here
postMake:: cleanjunk

prereq: $(REQUIRED_SUPPORT_DIRS)
	cd ../../../../libbasic && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
	cd ../../../../libbasic2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
	cd ../../support && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
	cd ../../../../libview && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
	cd ../../core && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
	cd ../../../../libui && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
	cd ../../substreams && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
	cd ../../../../libview2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
	cd ../../../sunit && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
	cd ../../core/tests && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"



cleanjunk::
	-rm -f *.s *.s2

clean::
	-rm -f *.o *.H

clobber:: clean
	-rm -f *.so *.dll


# BEGINMAKEDEPEND --- do not remove this line; make depend needs it
$(OUTDIR)Xtreams__BlockClosureReadingWritingTest.$(O) Xtreams__BlockClosureReadingWritingTest.$(H): Xtreams__BlockClosureReadingWritingTest.st $(INCLUDE_TOP)/stx/goodies/xtreams/core/tests/Xtreams__FiniteReadingWritingTests.$(H) $(INCLUDE_TOP)/stx/goodies/xtreams/core/tests/Xtreams__ReadingWritingTest.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestCase.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestAsserter.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)Xtreams__BlockClosureTest.$(O) Xtreams__BlockClosureTest.$(H): Xtreams__BlockClosureTest.st $(INCLUDE_TOP)/stx/goodies/sunit/TestCase.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestAsserter.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)Xtreams__BufferReadingWritingTest.$(O) Xtreams__BufferReadingWritingTest.$(H): Xtreams__BufferReadingWritingTest.st $(INCLUDE_TOP)/stx/goodies/xtreams/core/tests/Xtreams__FiniteReadingWritingTests.$(H) $(INCLUDE_TOP)/stx/goodies/xtreams/core/tests/Xtreams__ReadingWritingTest.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestCase.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestAsserter.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)Xtreams__BufferedWriteStreamTest.$(O) Xtreams__BufferedWriteStreamTest.$(H): Xtreams__BufferedWriteStreamTest.st $(INCLUDE_TOP)/stx/goodies/sunit/TestCase.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestAsserter.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)Xtreams__CollectionReadingWritingTest.$(O) Xtreams__CollectionReadingWritingTest.$(H): Xtreams__CollectionReadingWritingTest.st $(INCLUDE_TOP)/stx/goodies/xtreams/core/tests/Xtreams__FiniteReadingWritingTests.$(H) $(INCLUDE_TOP)/stx/goodies/xtreams/core/tests/Xtreams__ReadingWritingTest.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestCase.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestAsserter.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)Xtreams__ElasticBufferReadingWritingTest.$(O) Xtreams__ElasticBufferReadingWritingTest.$(H): Xtreams__ElasticBufferReadingWritingTest.st $(INCLUDE_TOP)/stx/goodies/xtreams/core/tests/Xtreams__FiniteReadingWritingTests.$(H) $(INCLUDE_TOP)/stx/goodies/xtreams/core/tests/Xtreams__ReadingWritingTest.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestCase.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestAsserter.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)Xtreams__FileReadingWritingTest.$(O) Xtreams__FileReadingWritingTest.$(H): Xtreams__FileReadingWritingTest.st $(INCLUDE_TOP)/stx/goodies/xtreams/support/XtreamsPool.$(H) $(INCLUDE_TOP)/stx/goodies/xtreams/core/tests/Xtreams__FiniteReadingWritingTests.$(H) $(INCLUDE_TOP)/stx/goodies/xtreams/core/tests/Xtreams__ReadingWritingTest.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestCase.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestAsserter.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)Xtreams__PipeReadingWritingTest.$(O) Xtreams__PipeReadingWritingTest.$(H): Xtreams__PipeReadingWritingTest.st $(INCLUDE_TOP)/stx/goodies/xtreams/support/XtreamsPool.$(H) $(INCLUDE_TOP)/stx/goodies/xtreams/core/tests/Xtreams__FiniteReadingWritingTests.$(H) $(INCLUDE_TOP)/stx/goodies/xtreams/core/tests/Xtreams__ReadingWritingTest.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestCase.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestAsserter.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)Xtreams__RingBufferReadingWritingTest.$(O) Xtreams__RingBufferReadingWritingTest.$(H): Xtreams__RingBufferReadingWritingTest.st $(INCLUDE_TOP)/stx/goodies/xtreams/core/tests/Xtreams__FiniteReadingWritingTests.$(H) $(INCLUDE_TOP)/stx/goodies/xtreams/core/tests/Xtreams__ReadingWritingTest.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestCase.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestAsserter.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)Xtreams__SocketReadingWritingTest.$(O) Xtreams__SocketReadingWritingTest.$(H): Xtreams__SocketReadingWritingTest.st $(INCLUDE_TOP)/stx/goodies/xtreams/support/XtreamsPool.$(H) $(INCLUDE_TOP)/stx/goodies/xtreams/core/tests/Xtreams__FiniteReadingWritingTests.$(H) $(INCLUDE_TOP)/stx/goodies/xtreams/core/tests/Xtreams__ReadingWritingTest.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestCase.$(H) $(INCLUDE_TOP)/stx/goodies/sunit/TestAsserter.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
$(OUTDIR)stx_goodies_xtreams_terminals_tests.$(O) stx_goodies_xtreams_terminals_tests.$(H): stx_goodies_xtreams_terminals_tests.st $(INCLUDE_TOP)/stx/libbasic/LibraryDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/ProjectDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)

# ENDMAKEDEPEND --- do not remove this line