xref: /aoo41x/main/sal/test/makefile.mk (revision 7871dc3e)
1*7871dc3eSAndrew Rist#**************************************************************
2*7871dc3eSAndrew Rist#
3*7871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*7871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*7871dc3eSAndrew Rist#  distributed with this work for additional information
6*7871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*7871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*7871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
9*7871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10*7871dc3eSAndrew Rist#
11*7871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*7871dc3eSAndrew Rist#
13*7871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*7871dc3eSAndrew Rist#  software distributed under the License is distributed on an
15*7871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*7871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
17*7871dc3eSAndrew Rist#  specific language governing permissions and limitations
18*7871dc3eSAndrew Rist#  under the License.
19*7871dc3eSAndrew Rist#
20*7871dc3eSAndrew Rist#**************************************************************
21*7871dc3eSAndrew Rist
22*7871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ=..
25cdf0e10cSrcweir
26cdf0e10cSrcweirPRJNAME=sal
27cdf0e10cSrcweirTARGET=saltest
28cdf0e10cSrcweirTARGETTYPE=CUI
29cdf0e10cSrcweirLIBTARGET=NO
30cdf0e10cSrcweirUSE_LDUMP2=TRUE
31cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE
32cdf0e10cSrcweir#LDUMP2=LDUMP3
33cdf0e10cSrcweir
34cdf0e10cSrcweir
35cdf0e10cSrcweir# --- Settings -----------------------------------------------------
36cdf0e10cSrcweir.INCLUDE :  settings.mk
37cdf0e10cSrcweirCFLAGS+= $(LFS_CFLAGS)
38cdf0e10cSrcweirCXXFLAGS+= $(LFS_CFLAGS)
39cdf0e10cSrcweir# ------------------------------------------------------------------
40cdf0e10cSrcweir
41cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
42cdf0e10cSrcweirBOOTSTRAPSCRIPT=bootstrap.bat
43cdf0e10cSrcweirBOOTSTRAPINI=testbootstrap.ini
44cdf0e10cSrcweirMY_SCRIPTCAT=cat
45cdf0e10cSrcweir.ELSE
46cdf0e10cSrcweirBOOTSTRAPSCRIPT=bootstrap
47cdf0e10cSrcweirBOOTSTRAPINI=testbootstraprc
48cdf0e10cSrcweirMY_SCRIPTCAT=tr -d "\015" <
49cdf0e10cSrcweir.ENDIF
50cdf0e10cSrcweir
51cdf0e10cSrcweirAPP2OBJS = $(OBJ)$/testbootstrap.obj
52cdf0e10cSrcweir
53cdf0e10cSrcweirOBJFILES= \
54cdf0e10cSrcweir	$(APP2OBJS)
55cdf0e10cSrcweir
56cdf0e10cSrcweirAPP2TARGET = testbootstrap
57cdf0e10cSrcweirAPP2STDLIBS = $(SALLIB)
58cdf0e10cSrcweir
59cdf0e10cSrcweirAPP3OBJS = $(OBJ)$/test_salmain.obj
60cdf0e10cSrcweirAPP3TARGET = test_salmain
61cdf0e10cSrcweirAPP3STDLIBS = $(SALLIB)
62cdf0e10cSrcweir
63cdf0e10cSrcweirAPP4OBJS = $(OBJ)$/test_salmainwithargs.obj
64cdf0e10cSrcweirAPP4TARGET = test_salmainwithargs
65cdf0e10cSrcweirAPP4STDLIBS = $(SALLIB)
66cdf0e10cSrcweir
67cdf0e10cSrcweir
68cdf0e10cSrcweir# --- Targets ------------------------------------------------------
69cdf0e10cSrcweir.IF "$(depend)" == ""
70cdf0e10cSrcweirALL : ALLTAR \
71cdf0e10cSrcweir	  $(BIN)$/$(BOOTSTRAPSCRIPT) \
72cdf0e10cSrcweir	  $(BIN)$/$(BOOTSTRAPINI)    \
73cdf0e10cSrcweir	  $(BIN)$/bootstraptest.ini  \
74cdf0e10cSrcweir	  $(BIN)$/$(APP2TARGET).bin  \
75cdf0e10cSrcweir	  $(BIN)$/$(APP2TARGET).Bin  \
76cdf0e10cSrcweir	  $(BIN)$/$(APP2TARGET).Exe  \
77cdf0e10cSrcweir	  $(BIN)$/bootstrap.pl
78cdf0e10cSrcweir
79cdf0e10cSrcweir
80cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
81cdf0e10cSrcweirALL:  $(BIN)$/$(APP2TARGET).exe \
82cdf0e10cSrcweir	  $(BIN)$/inirc \
83cdf0e10cSrcweir	  $(BIN)$/defaultrc
84cdf0e10cSrcweir
85cdf0e10cSrcweir$(BIN)$/$(APP2TARGET).exe : $(APP2TARGETN)
86cdf0e10cSrcweir	cp $(APP2TARGETN) $@
87cdf0e10cSrcweir
88cdf0e10cSrcweir$(BIN)$/inirc:
89cdf0e10cSrcweir		echo "CUSTOMINIVALUE=auxaux"   > $@
90cdf0e10cSrcweir		echo "INHERITED_OVERWRITTEN_VALUE=inherited_overwritten_value" >> $@
91cdf0e10cSrcweir
92cdf0e10cSrcweir$(BIN)$/defaultrc:
93cdf0e10cSrcweir		echo "Default=defaultValue" > $@
94cdf0e10cSrcweir
95cdf0e10cSrcweir.ELSE
96cdf0e10cSrcweir
97cdf0e10cSrcweirALL:  $(BIN)$/ini.ini		\
98cdf0e10cSrcweir	  $(BIN)$/default.ini
99cdf0e10cSrcweir
100cdf0e10cSrcweir$(BIN)$/ini.ini:
101cdf0e10cSrcweir		echo CUSTOMINIVALUE=auxaux     > $@
102cdf0e10cSrcweir		echo INHERITED_OVERWRITTEN_VALUE=inherited_overwritten_value   >> $@
103cdf0e10cSrcweir
104cdf0e10cSrcweir
105cdf0e10cSrcweir$(BIN)$/default.ini:
106cdf0e10cSrcweir		echo Default=defaultValue > $@
107cdf0e10cSrcweir
108cdf0e10cSrcweir.ENDIF
109cdf0e10cSrcweir
110cdf0e10cSrcweir$(BIN)$/bootstrap.pl:
111cdf0e10cSrcweir	cp bootstrap.pl $@
112cdf0e10cSrcweir
113cdf0e10cSrcweir$(BIN)$/$(APP2TARGET).bin : $(APP2TARGETN)
114cdf0e10cSrcweir	cp $(APP2TARGETN) $@
115cdf0e10cSrcweir
116cdf0e10cSrcweir$(BIN)$/$(APP2TARGET).Bin : $(APP2TARGETN)
117cdf0e10cSrcweir	cp $(APP2TARGETN) $@
118cdf0e10cSrcweir
119cdf0e10cSrcweir$(BIN)$/$(APP2TARGET).Exe : $(APP2TARGETN)
120cdf0e10cSrcweir	cp $(APP2TARGETN) $@
121cdf0e10cSrcweir
122cdf0e10cSrcweir.ELSE
123cdf0e10cSrcweirALL: 	ALLDEP
124cdf0e10cSrcweir.ENDIF
125cdf0e10cSrcweir
126cdf0e10cSrcweir.INCLUDE :  target.mk
127cdf0e10cSrcweir
128cdf0e10cSrcweir
129cdf0e10cSrcweir$(BIN)$/$(BOOTSTRAPSCRIPT) : $(BOOTSTRAPSCRIPT)
130cdf0e10cSrcweir	$(MY_SCRIPTCAT) $(BOOTSTRAPSCRIPT) > $@
131cdf0e10cSrcweir.IF "$(GUI)"!="WNT"
132cdf0e10cSrcweir	chmod ug+x $@
133cdf0e10cSrcweir.ENDIF
134cdf0e10cSrcweir
135cdf0e10cSrcweir$(BIN)$/$(BOOTSTRAPINI) : $(APP2TARGET).ini
136cdf0e10cSrcweir	$(MY_SCRIPTCAT) $(APP2TARGET).ini > $@
137cdf0e10cSrcweir
138cdf0e10cSrcweir$(BIN)$/bootstraptest.ini : bootstraptest.ini
139cdf0e10cSrcweir	$(MY_SCRIPTCAT) bootstraptest.ini > $@
140cdf0e10cSrcweir
141cdf0e10cSrcweir
142cdf0e10cSrcweir# --- SO2-Filter-Datei ---
143cdf0e10cSrcweir$(MISC)$/tsl$(DLLPOSTFIX).flt:
144cdf0e10cSrcweir	@echo ------------------------------
145cdf0e10cSrcweir	@echo Making: $@
146cdf0e10cSrcweir	@echo WEP>$@
147cdf0e10cSrcweir	@echo LIBMAIN>>$@
148cdf0e10cSrcweir	@echo LibMain>>$@
149