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