0
|
1 |
# $Header: /cvs/stx/stx/goodies/sunit/Make.proto,v 1.1 2000-10-25 15:51:38 cg Exp $
|
|
2 |
#
|
|
3 |
# --- Make.proto created by stmkmp at Wed Oct 25 17:22:24 CEST 2000
|
|
4 |
#
|
|
5 |
# Warning: once you modify this file, do not rerun
|
|
6 |
# stmkmp again - otherwise, your changes are lost.
|
|
7 |
#
|
|
8 |
# The Makefile as generated by this Make.proto supports the following targets:
|
|
9 |
# make - compile all st-files to a classLib
|
|
10 |
# make install - install the classLib in /opt/smalltalk/...
|
|
11 |
# make clean - clean all temp files
|
|
12 |
# make clobber - clean all
|
|
13 |
|
|
14 |
# module and directory-in-module;
|
|
15 |
# these should correspond to the directory hierarchy
|
|
16 |
# location (otherwise, ST/X will have a hard time to
|
|
17 |
# find out the packages location from its packageID)
|
|
18 |
MODULE=stx
|
|
19 |
MODULE_DIR=goodies/sunit
|
|
20 |
|
|
21 |
# default installation directory:
|
|
22 |
# (overwrite with 'make INSTALLTOP_DIR=... install')
|
|
23 |
# the INSTALLBASE is imported from configurations... and usually
|
|
24 |
# defaults to something like /opt/smalltalk.
|
|
25 |
# (overwrite with 'make INSTALLBASE=... install')
|
|
26 |
INSTALLTOP_DIR=$(INSTALLBASE)/packages/$(MODULE)/$(MODULE_DIR)
|
|
27 |
INSTALLLIB_DIR=$(INSTALLTOP_DIR)
|
|
28 |
INSTALLBIN_DIR=$(INSTALLTOP_DIR)
|
|
29 |
|
|
30 |
|
|
31 |
#
|
|
32 |
# position (of this package) in directory hierarchy:
|
|
33 |
# (must point to ST/X top directory, for tools and includes)
|
|
34 |
TOP=../..
|
|
35 |
|
|
36 |
# subdirectories where targets are to be made:
|
|
37 |
SUBDIRS=
|
|
38 |
|
|
39 |
# subdirectories where Makefiles are to be made:
|
|
40 |
# (only define if different from SUBDIRS)
|
|
41 |
# ALLSUBDIRS=
|
|
42 |
|
|
43 |
|
|
44 |
# the name of your classLibrary:
|
|
45 |
# ********** REQUIRED: CHECK the next line ***
|
|
46 |
LIBNAME=sunit
|
|
47 |
|
|
48 |
|
|
49 |
# the next define suppresses installation of
|
|
50 |
# the classes as autoloaded (i.e. not added to abbrev.stc).
|
|
51 |
SUPPRESS_LOCAL_ABBREVS=1
|
|
52 |
|
|
53 |
|
|
54 |
# the package is stored as an ID in classes and methods
|
|
55 |
# to identify code belonging to this project.
|
|
56 |
# It also specifies the position in the source repository
|
|
57 |
# and directory tree, when packages are loaded by packageID.
|
|
58 |
# ********** REQUIRED: CHECK the next line ***
|
|
59 |
PACKAGE=$(MODULE):$(MODULE_DIR)
|
|
60 |
|
|
61 |
|
|
62 |
# Argument(s) to the stc compiler.
|
|
63 |
# -H. : create header files locally
|
|
64 |
# (if removed, they will be created as common
|
|
65 |
# -Pxxx : defines the package
|
|
66 |
# -Zxxx : a prefix for variables within the classLib
|
|
67 |
# -Dxxx : defines passed to to CC for inline C-code
|
|
68 |
# -Ixxx : include path passed to CC for inline C-code
|
|
69 |
# +optspace : optimized for space
|
|
70 |
# +optspace2 : optimized more for space
|
|
71 |
# +optspace3 : optimized even more for space
|
|
72 |
# +optinline : generate inline code for some ST constructs
|
|
73 |
# +inlineNew : additionally inline new
|
|
74 |
# +inlineMath : additionally inline some floatPnt math stuff
|
|
75 |
#
|
|
76 |
# ********** OPTIONAL: MODIFY the next line(s) ***
|
|
77 |
# STCLOCALOPTIMIZATIONS=+optinline +inlineNew
|
|
78 |
# STCLOCALOPTIMIZATIONS=+optspace3
|
|
79 |
STCLOCALOPTIMIZATIONS=+optspace3
|
|
80 |
|
|
81 |
|
|
82 |
# Argument(s) to the stc compiler.
|
|
83 |
# -warn : no warnings
|
|
84 |
# -warnNonStandard : no warnings about ST/X extensions
|
|
85 |
# -warnEOLComments : no warnings about EOL comment extension
|
|
86 |
# -warnPrivacy : no warnings about privateClass extension
|
|
87 |
#
|
|
88 |
# ********** OPTIONAL: MODIFY the next line(s) ***
|
|
89 |
# STCWARNINGS=-warn
|
|
90 |
# STCWARNINGS=-warnNonStandard
|
|
91 |
# STCWARNINGS=-warnEOLComments
|
|
92 |
STCWARNINGS=
|
|
93 |
|
|
94 |
|
|
95 |
# if your embedded C code requires any system includes,
|
|
96 |
# add the path(es) here:,
|
|
97 |
# ********** OPTIONAL: MODIFY the next lines ***
|
|
98 |
# LOCALINCLUDES=-Ifoo -Ibar
|
|
99 |
LOCALINCLUDES=
|
|
100 |
|
|
101 |
|
|
102 |
# if you need any additional defines for embedded C code,
|
|
103 |
# add them here:,
|
|
104 |
# ********** OPTIONAL: MODIFY the next lines ***
|
|
105 |
# LOCALDEFINES=-Dfoo -Dbar -DDEBUG
|
|
106 |
LOCALDEFINES=
|
|
107 |
|
|
108 |
|
|
109 |
#
|
|
110 |
# The next 2 defines should be left as-is
|
|
111 |
# for a class-library package, you can uncomment the following:
|
|
112 |
# (it does not hurt much, if you leave it as is - but you may NOT
|
|
113 |
# uncomment it if object files are to be loaded individually later).
|
|
114 |
# INITCODESEPFLAG=$(SEPINITCODE)
|
|
115 |
#
|
|
116 |
# the following MAY ONLY be uncommented for classes/classLibs,
|
|
117 |
# which are ALWAYS statically included in the executable.
|
|
118 |
# (i.e. not for those which are subject to dynamic loading).
|
|
119 |
# COMMONSYMFLAG=$(COMMONSYMBOLS)
|
|
120 |
#
|
|
121 |
STCLOCALOPT=-I. $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALINCLUDES) $(LOCALDEFINES) -H. '-P$(PACKAGE)' '-Z$(LIBNAME)' $(COMMONSYMFLAG) $(INITCODESEPFLAG)
|
|
122 |
|
|
123 |
|
|
124 |
# ********** OPTIONAL: MODIFY the next line ***
|
|
125 |
# additional C-libraries that should be pre-linked with the class-objects
|
|
126 |
LD_OBJ_LIBS=
|
|
127 |
|
|
128 |
# ********** OPTIONAL: MODIFY the next line ***
|
|
129 |
# additional C targets or libraries should be added below
|
|
130 |
LOCAL_EXTRA_TARGETS=
|
|
131 |
|
|
132 |
# if you use RCS, there are rules in the Makefile for ci/co
|
|
133 |
RCSSOURCES=*.st Make.proto
|
|
134 |
|
|
135 |
all:: preMake classLibRule postMake
|
|
136 |
|
|
137 |
OBJS= \
|
|
138 |
TestCase.$(O) \
|
|
139 |
ExampleSetTest.$(O) \
|
|
140 |
SUnitDelay.$(O) \
|
|
141 |
SUnitNameResolver.$(O) \
|
|
142 |
SUnitTest.$(O) \
|
|
143 |
TestFailure.$(O) \
|
|
144 |
TestResult.$(O) \
|
|
145 |
TestRunner.$(O) \
|
|
146 |
TestSuite.$(O) \
|
|
147 |
TestSuitesHierarchyScriptTest.$(O) \
|
|
148 |
TestSuitesCompoundScriptTest.$(O) \
|
|
149 |
TestSuitesScriptTest.$(O) \
|
|
150 |
TestSuitesScripter.$(O) \
|
|
151 |
extensions.$(O)
|
|
152 |
|
|
153 |
# add more install actions here
|
|
154 |
install::
|
|
155 |
|
|
156 |
# add more install actions for aux-files (resources) here
|
|
157 |
installAux::
|
|
158 |
|
|
159 |
# add more preMake actions here
|
|
160 |
preMake::
|
|
161 |
|
|
162 |
# add more postMake actions here
|
|
163 |
postMake:: cleanjunk
|
|
164 |
|
|
165 |
cleanjunk::
|
|
166 |
|
|
167 |
clean::
|
|
168 |
-rm -f *.o *.H
|
|
169 |
|
|
170 |
clobber::
|
|
171 |
-rm -f *.so *.dll
|
|
172 |
|
|
173 |
$(INSTALLBASE)::
|
|
174 |
@test -d $@ || mkdir $@
|
|
175 |
|
|
176 |
$(INSTALLBASE)/packages:: $(INSTALLBASE)
|
|
177 |
@test -d $@ || mkdir $@
|
|
178 |
|
|
179 |
$(INSTALLBASE)/packages/$(MODULE):: $(INSTALLBASE)/packages
|
|
180 |
@test -d $@ || mkdir $@
|
|
181 |
|
|
182 |
$(INSTALLBASE)/packages/$(MODULE)/goodies:: $(INSTALLBASE)/packages/$(MODULE)
|
|
183 |
@test -d $@ || mkdir $@
|
|
184 |
|
|
185 |
$(INSTALLBASE)/packages/$(MODULE)/goodies/sunit:: $(INSTALLBASE)/packages/$(MODULE)/goodies
|
|
186 |
@test -d $@ || mkdir $@
|
|
187 |
|
|
188 |
$(INSTALLBASE)/packages/$(MODULE)/$(MODULE_DIR):: $(INSTALLBASE)/packages/$(MODULE)
|
|
189 |
@test -d $@ || mkdir $@
|
|
190 |
|
|
191 |
# if other things are to be compiled,
|
|
192 |
# add target definitions here,
|
|
193 |
# and list them in LOCAL_EXTRA_TARGETS above.
|
|
194 |
# (care for make syntax - TABS are required in the actions)
|
|
195 |
# foo: foo.o
|
|
196 |
# $(CC) -o foo foo.o
|
|
197 |
# 'make depend' will add dependency info between
|
|
198 |
# BEGIN...END below
|
|
199 |
#
|
|
200 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it
|
|
201 |
# ENDMAKEDEPEND --- do not remove this line
|