initial checkin
authorsr
Tue, 10 Oct 2017 14:43:57 +0200
changeset 35392a3d2a4f97f
parent 352 ddbcfacf68fb
child 354 0e40ddb14043
initial checkin
quickSelfTest/Make.proto
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/quickSelfTest/Make.proto	Tue Oct 10 14:43:57 2017 +0200
     1.3 @@ -0,0 +1,317 @@
     1.4 +# $Header$
     1.5 +#
     1.6 +# automagically generated from the projectDefinition: stx_goodies_builder_quickSelfTest.
     1.7 +#
     1.8 +# -------------- no need to change anything below ----------
     1.9 +#
    1.10 +# This makefile generates some standalone demo applications
    1.11 +#
    1.12 +#    make
    1.13 +#       generates quickSelfTest
    1.14 +#
    1.15 +
    1.16 +TOP=../../..
    1.17 +INCLUDE_TOP=$(TOP)/..
    1.18 +
    1.19 +# set to a dummy file name (like FORCE=@@@FORCE-BUILD@@@) to force the build of prereq packages
    1.20 +FORCE=
    1.21 +.PHONY: $(FORCE)
    1.22 +
    1.23 +PACKAGE=stx:goodies/builder/quickSelfTest
    1.24 +SUBDIRS=
    1.25 +SUPPRESS_LOCAL_ABBREVS="yes"
    1.26 +NOAUTOLOAD=1
    1.27 +NOSUBAUTOLOAD=1
    1.28 +
    1.29 +LOCALINCLUDES= -I$(INCLUDE_TOP)/stx/goodies/sunit -I$(INCLUDE_TOP)/stx/libbasic -I$(INCLUDE_TOP)/stx/libcomp
    1.30 +LOCALDEFINES=
    1.31 +GLOBALDEFINES=
    1.32 +MAIN_DEFINES=-DIGNORE_IMAGE -DNO_DISPLAY
    1.33 +
    1.34 +RCSSOURCES=Make.proto *.st
    1.35 +LINKSOURCES=Make.proto *.st
    1.36 +
    1.37 +DELIVERBINARIES=
    1.38 +
    1.39 +APPNAME=libstx_goodies_builder_quickSelfTest
    1.40 +LIBNAME=libstx_goodies_builder_quickSelfTest
    1.41 +STCLOCALOPT='-package=$(PACKAGE)' -I. -headerDir=. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) -headerDir=.  -varPrefix=$(LIBNAME)
    1.42 +
    1.43 +
    1.44 +# ********** OPTIONAL: MODIFY the next line ***
    1.45 +# additional C-libraries that should be pre-linked with the class-objects
    1.46 +LD_OBJ_LIBS=
    1.47 +LOCAL_SHARED_LIBS=
    1.48 +
    1.49 +
    1.50 +# ********** OPTIONAL: MODIFY the next line ***
    1.51 +# additional C targets or libraries should be added below
    1.52 +LOCAL_EXTRA_TARGETS=
    1.53 +
    1.54 +OBJS= $(COMMON_OBJS) $(UNIX_OBJS)
    1.55 +
    1.56 +
    1.57 +
    1.58 +
    1.59 +
    1.60 +LIBLIST = $(REQUIRED_LIBS)
    1.61 +
    1.62 +# required libs:
    1.63 +#
    1.64 +
    1.65 +REQUIRED_LIBS= libstx_libbasic \
    1.66 + libstx_libbasic2 \
    1.67 + libstx_libcomp \
    1.68 + libstx_libview \
    1.69 + libstx_libui \
    1.70 + libstx_libview2 \
    1.71 + libstx_goodies_sunit \
    1.72 +
    1.73 +
    1.74 +REQUIRED_LIBOBJS= ../../../libbasic/libstx_libbasic$(O_EXT) \
    1.75 + ../../../libbasic2/libstx_libbasic2$(O_EXT) \
    1.76 + ../../../libcomp/libstx_libcomp$(O_EXT) \
    1.77 + ../../../libview/libstx_libview$(O_EXT) \
    1.78 + ../../../libui/libstx_libui$(O_EXT) \
    1.79 + ../../../libview2/libstx_libview2$(O_EXT) \
    1.80 + ../../sunit/libstx_goodies_sunit$(O_EXT) \
    1.81 +
    1.82 +
    1.83 +REQUIRED_LINK_LIBOBJS= libstx_libbasic$(O_EXT) \
    1.84 + libstx_libbasic2$(O_EXT) \
    1.85 + libstx_libcomp$(O_EXT) \
    1.86 + libstx_libview$(O_EXT) \
    1.87 + libstx_libui$(O_EXT) \
    1.88 + libstx_libview2$(O_EXT) \
    1.89 + libstx_goodies_sunit$(O_EXT) \
    1.90 +
    1.91 +
    1.92 +REQUIRED_SUPPORT_DIRS=RESOURCEFILES
    1.93 +
    1.94 +SUBPROJECT_LIBS=
    1.95 +
    1.96 +
    1.97 +target: ALL
    1.98 +
    1.99 +all::   prereq ALL_NP
   1.100 +
   1.101 +# like ALL, but not prereqs
   1.102 +ALL_NP:: exe subProjects $(REQUIRED_SUPPORT_DIRS) $(SETUP_RULE)
   1.103 +
   1.104 +exe:    quickSelfTest registerApplication
   1.105 +
   1.106 +quickSelfTest: $(APP_DIRS_TO_MAKE) $(APP_LIBOBJS) $(REQUIRED_LIBOBJS) $(OBJS)
   1.107 +	$(MAKE) link_quickSelfTest
   1.108 +
   1.109 +
   1.110 +link_quickSelfTest:
   1.111 +	$(MAKE) NON_GUI_APPLICATION \
   1.112 +		    TARGET=quickSelfTest \
   1.113 +		    APPLICATION_CLASSES="$(COMMON_CLASSES) $(UNIX_CLASSES)" \
   1.114 +		    APPLICATION_OBJS="$(OBJS)" \
   1.115 +		    APPLICATION_LIBLIST="$(REQUIRED_LIBS)" \
   1.116 +		    APPLICATION_LIBOBJS="$(REQUIRED_LIBOBJS)" \
   1.117 +		    APPLICATION_LINK_LIBOBJS="$(REQUIRED_LINK_LIBOBJS)" \
   1.118 +		    STARTUP_CLASS="RunUnitTestsStart" \
   1.119 +		    STARTUP_SELECTOR="start" \
   1.120 +		    MAIN_DEFINES="-DIGNORE_IMAGE -DNO_DISPLAY"
   1.121 +
   1.122 +# build all mandatory prerequisite packages (containing superclasses) for this package
   1.123 +prereq:
   1.124 +	$(MAKE) FORCE=@@@FORCE-BUILD@@@ $(REQUIRED_LIBOBJS)
   1.125 +
   1.126 +subProjects:
   1.127 +	$(MAKE) FORCE=@@@FORCE-BUILD@@@ $(SUBPROJECT_LIBS)
   1.128 +
   1.129 +
   1.130 +#
   1.131 +# a self installable delivery
   1.132 +#
   1.133 +
   1.134 +#
   1.135 +# for linux, this uses autopackage
   1.136 +# (SETUP_RULE is set to setup_linux)
   1.137 +setup_linux:
   1.138 +	@if test -d autopackage; then \
   1.139 +	    makepackage; \
   1.140 +	else \
   1.141 +	    echo "Error: missing autopackage directory"; \
   1.142 +	    exit 1; \
   1.143 +	fi
   1.144 +        
   1.145 +# backward compatible fallback
   1.146 +setup::
   1.147 +	@if test -d autopackage; then \
   1.148 +	    makepackage; \
   1.149 +	else \
   1.150 +	    echo "Error: make setup not yet available in this unix"; \
   1.151 +	    exit 1; \
   1.152 +	fi
   1.153 +
   1.154 +
   1.155 +#
   1.156 +# for mac, a pkg is generated
   1.157 +# (SETUP_RULE is set to setup_macosx)
   1.158 +#
   1.159 +setup_macosx:   "Smalltalk_X_pkg"
   1.160 +	-rm "Smalltalk_X.pkg"
   1.161 +	pkgbuild --identifier "stx.goodies.builder.quickSelfTest" --version "7.1.0.0" --root Smalltalk_X_pkg "Smalltalk_X.pkg"
   1.162 +
   1.163 +app: "Smalltalk_X_pkg"
   1.164 +
   1.165 +"Smalltalk_X_pkg": $(SUBPROJECT_LIBS) $(REQUIRED_SUPPORT_DIRS) 
   1.166 +	-rm -rf "Smalltalk_X_pkg"
   1.167 +	-mkdir "Smalltalk_X_pkg"
   1.168 +	-mkdir "Smalltalk_X_pkg/opt"
   1.169 +	-mkdir "Smalltalk_X_pkg/opt/local"
   1.170 +	-mkdir "Smalltalk_X_pkg/opt/local/bin"
   1.171 +	cp "quickSelfTest" "Smalltalk_X_pkg/opt/local/bin/"
   1.172 +
   1.173 +
   1.174 +
   1.175 +SOURCEFILES: quickSelfTest_SOURCES \
   1.176 +	stx_SOURCES
   1.177 +
   1.178 +
   1.179 +
   1.180 +
   1.181 +RESOURCEFILES: quickSelfTest_RESOURCES quickSelfTest_BITMAPS  \
   1.182 +	stx_RESOURCES stx_STYLES stx_BITMAPS
   1.183 +
   1.184 +
   1.185 +quickSelfTest_RESOURCES: 
   1.186 +	mkdir -p resources/stx/goodies/builder/quickSelfTest
   1.187 +	-cp ../resources/*.rs ../resources/*.style resources/stx/goodies/builder/quickSelfTest/..
   1.188 +
   1.189 +quickSelfTest_BITMAPS: 
   1.190 +	mkdir -p resources/stx/goodies/builder/quickSelfTest/bitmaps
   1.191 +	-cp *.ico *.gif *.png resources/stx/goodies/builder/quickSelfTest/bitmaps
   1.192 +
   1.193 +
   1.194 +stx_RESOURCES: \
   1.195 +	libbasic_RESOURCES
   1.196 +
   1.197 +stx_STYLES: 
   1.198 +
   1.199 +stx_BITMAPS:
   1.200 +
   1.201 +libbasic_RESOURCES: 
   1.202 +	mkdir -p resources/stx/libbasic
   1.203 +	-cp $(TOP)/libbasic/resources/*.* resources/stx/libbasic
   1.204 +
   1.205 +
   1.206 +libstx_libbasic.so: ../../../libbasic/libstx_libbasic.so
   1.207 +	ln -sf ../../../libbasic/libstx_libbasic.so .
   1.208 +
   1.209 +../../../libbasic/libstx_libbasic.so: ../../../libbasic/makefile $(FORCE)
   1.210 +	@if [ -f "../../../libbasic/.NOSOURCE" ]; then \
   1.211 +	    echo "skip make in ../../../libbasic (no source)"; \
   1.212 +	else \
   1.213 +	    cd ../../../libbasic && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) "; \
   1.214 +	fi
   1.215 +
   1.216 +../../../libbasic/makefile: ../../../libbasic/Make.proto
   1.217 +	$(TOP)/rules/stmkmf --cd ../../../libbasic
   1.218 +
   1.219 +libstx_libbasic2.so: ../../../libbasic2/libstx_libbasic2.so
   1.220 +	ln -sf ../../../libbasic2/libstx_libbasic2.so .
   1.221 +
   1.222 +../../../libbasic2/libstx_libbasic2.so: ../../../libbasic2/makefile $(FORCE)
   1.223 +	@if [ -f "../../../libbasic2/.NOSOURCE" ]; then \
   1.224 +	    echo "skip make in ../../../libbasic2 (no source)"; \
   1.225 +	else \
   1.226 +	    cd ../../../libbasic2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) "; \
   1.227 +	fi
   1.228 +
   1.229 +../../../libbasic2/makefile: ../../../libbasic2/Make.proto
   1.230 +	$(TOP)/rules/stmkmf --cd ../../../libbasic2
   1.231 +
   1.232 +libstx_libcomp.so: ../../../libcomp/libstx_libcomp.so
   1.233 +	ln -sf ../../../libcomp/libstx_libcomp.so .
   1.234 +
   1.235 +../../../libcomp/libstx_libcomp.so: ../../../libcomp/makefile $(FORCE)
   1.236 +	@if [ -f "../../../libcomp/.NOSOURCE" ]; then \
   1.237 +	    echo "skip make in ../../../libcomp (no source)"; \
   1.238 +	else \
   1.239 +	    cd ../../../libcomp && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) "; \
   1.240 +	fi
   1.241 +
   1.242 +../../../libcomp/makefile: ../../../libcomp/Make.proto
   1.243 +	$(TOP)/rules/stmkmf --cd ../../../libcomp
   1.244 +
   1.245 +libstx_libview.so: ../../../libview/libstx_libview.so
   1.246 +	ln -sf ../../../libview/libstx_libview.so .
   1.247 +
   1.248 +../../../libview/libstx_libview.so: ../../../libview/makefile $(FORCE)
   1.249 +	@if [ -f "../../../libview/.NOSOURCE" ]; then \
   1.250 +	    echo "skip make in ../../../libview (no source)"; \
   1.251 +	else \
   1.252 +	    cd ../../../libview && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) "; \
   1.253 +	fi
   1.254 +
   1.255 +../../../libview/makefile: ../../../libview/Make.proto
   1.256 +	$(TOP)/rules/stmkmf --cd ../../../libview
   1.257 +
   1.258 +libstx_libui.so: ../../../libui/libstx_libui.so
   1.259 +	ln -sf ../../../libui/libstx_libui.so .
   1.260 +
   1.261 +../../../libui/libstx_libui.so: ../../../libui/makefile $(FORCE)
   1.262 +	@if [ -f "../../../libui/.NOSOURCE" ]; then \
   1.263 +	    echo "skip make in ../../../libui (no source)"; \
   1.264 +	else \
   1.265 +	    cd ../../../libui && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) "; \
   1.266 +	fi
   1.267 +
   1.268 +../../../libui/makefile: ../../../libui/Make.proto
   1.269 +	$(TOP)/rules/stmkmf --cd ../../../libui
   1.270 +
   1.271 +libstx_libview2.so: ../../../libview2/libstx_libview2.so
   1.272 +	ln -sf ../../../libview2/libstx_libview2.so .
   1.273 +
   1.274 +../../../libview2/libstx_libview2.so: ../../../libview2/makefile $(FORCE)
   1.275 +	@if [ -f "../../../libview2/.NOSOURCE" ]; then \
   1.276 +	    echo "skip make in ../../../libview2 (no source)"; \
   1.277 +	else \
   1.278 +	    cd ../../../libview2 && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) "; \
   1.279 +	fi
   1.280 +
   1.281 +../../../libview2/makefile: ../../../libview2/Make.proto
   1.282 +	$(TOP)/rules/stmkmf --cd ../../../libview2
   1.283 +
   1.284 +libstx_goodies_sunit.so: ../../sunit/libstx_goodies_sunit.so
   1.285 +	ln -sf ../../sunit/libstx_goodies_sunit.so .
   1.286 +
   1.287 +../../sunit/libstx_goodies_sunit.so: ../../sunit/makefile $(FORCE)
   1.288 +	@if [ -f "../../sunit/.NOSOURCE" ]; then \
   1.289 +	    echo "skip make in ../../sunit (no source)"; \
   1.290 +	else \
   1.291 +	    cd ../../sunit && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) "; \
   1.292 +	fi
   1.293 +
   1.294 +../../sunit/makefile: ../../sunit/Make.proto
   1.295 +	$(TOP)/rules/stmkmf --cd ../../sunit
   1.296 +
   1.297 +
   1.298 +
   1.299 +
   1.300 +
   1.301 +
   1.302 +
   1.303 +
   1.304 +
   1.305 +
   1.306 +
   1.307 +
   1.308 +
   1.309 +clean::
   1.310 +	-rm -f *.so quickSelfTest.$(O)
   1.311 +
   1.312 +clobber:: clean
   1.313 +	-rm -f quickSelfTest *.img *.sav
   1.314 +
   1.315 +# BEGINMAKEDEPEND --- do not remove this line; make depend needs it
   1.316 +$(OUTDIR)RunUnitTests.$(O) RunUnitTests.$(C) RunUnitTests.$(H): RunUnitTests.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(STCHDR)
   1.317 +$(OUTDIR)RunUnitTestsStart.$(O) RunUnitTestsStart.$(C) RunUnitTestsStart.$(H): RunUnitTestsStart.st $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/StandaloneStartup.$(H) $(STCHDR)
   1.318 +$(OUTDIR)stx_goodies_builder_quickSelfTest.$(O) stx_goodies_builder_quickSelfTest.$(C) stx_goodies_builder_quickSelfTest.$(H): stx_goodies_builder_quickSelfTest.st $(INCLUDE_TOP)/stx/libbasic/ApplicationDefinition.$(H) $(INCLUDE_TOP)/stx/libbasic/Object.$(H) $(INCLUDE_TOP)/stx/libbasic/ProjectDefinition.$(H) $(STCHDR)
   1.319 +
   1.320 +# ENDMAKEDEPEND --- do not remove this line