Bump for 3.6-28
[LibreOffice.git] / sal / test / makefile.mk
blob1f4b339a169260776945963ed9a8b96316342c35
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
11 # OpenOffice.org is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License version 3
13 # only, as published by the Free Software Foundation.
15 # OpenOffice.org is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License version 3 for more details
19 # (a copy is included in the LICENSE file that accompanied this code).
21 # You should have received a copy of the GNU Lesser General Public License
22 # version 3 along with OpenOffice.org. If not, see
23 # <http://www.openoffice.org/license.html>
24 # for a copy of the LGPLv3 License.
26 #*************************************************************************
28 PRJ=..
30 PRJNAME=sal
31 TARGET=saltest
32 TARGETTYPE=CUI
33 LIBTARGET=NO
34 USE_LDUMP2=TRUE
35 ENABLE_EXCEPTIONS=TRUE
37 # --- Settings -----------------------------------------------------
39 .INCLUDE : settings.mk
40 CFLAGS+= $(LFS_CFLAGS)
41 CXXFLAGS+= $(LFS_CFLAGS)
43 # ------------------------------------------------------------------
45 .IF "$(GUI)"=="WNT"
46 BOOTSTRAPSCRIPT=bootstrap.bat
47 BOOTSTRAPINI=testbootstrap.ini
48 MY_SCRIPTCAT=cat
49 .ELSE
50 BOOTSTRAPSCRIPT=bootstrap
51 BOOTSTRAPINI=testbootstraprc
52 MY_SCRIPTCAT=tr -d "\015" <
53 .ENDIF
55 APP2OBJS = $(OBJ)$/testbootstrap.obj
57 OBJFILES= \
58 $(APP2OBJS)
60 APP2TARGET = testbootstrap
61 APP2STDLIBS = $(SALLIB)
63 APP3OBJS = $(OBJ)$/test_salmain.obj
64 APP3TARGET = test_salmain
65 APP3STDLIBS = $(SALLIB)
67 APP4OBJS = $(OBJ)$/test_salmainwithargs.obj
68 APP4TARGET = test_salmainwithargs
69 APP4STDLIBS = $(SALLIB)
72 # --- Targets ------------------------------------------------------
74 .IF "$(depend)" == ""
75 ALL : ALLTAR \
76 $(BIN)$/$(BOOTSTRAPSCRIPT) \
77 $(BIN)$/$(BOOTSTRAPINI) \
78 $(BIN)$/bootstraptest.ini \
79 $(BIN)$/$(APP2TARGET).bin \
80 $(BIN)$/$(APP2TARGET).Bin \
81 $(BIN)$/$(APP2TARGET).Exe \
82 $(BIN)$/bootstrap.pl
85 .IF "$(GUI)"=="UNX"
86 ALL: $(BIN)$/$(APP2TARGET).exe \
87 $(BIN)$/inirc \
88 $(BIN)$/defaultrc
90 $(BIN)$/$(APP2TARGET).exe : $(APP2TARGETN)
91 cp $(APP2TARGETN) $@
93 $(BIN)$/inirc:
94 echo "CUSTOMINIVALUE=auxaux" > $@
95 echo "INHERITED_OVERWRITTEN_VALUE=inherited_overwritten_value" >> $@
97 $(BIN)$/defaultrc:
98 echo "Default=defaultValue" > $@
100 .ELSE
102 ALL: $(BIN)$/ini.ini \
103 $(BIN)$/default.ini
105 $(BIN)$/ini.ini:
106 echo CUSTOMINIVALUE=auxaux > $@
107 echo INHERITED_OVERWRITTEN_VALUE=inherited_overwritten_value >> $@
110 $(BIN)$/default.ini:
111 echo Default=defaultValue > $@
113 .ENDIF
115 $(BIN)$/bootstrap.pl:
116 cp bootstrap.pl $@
118 $(BIN)$/$(APP2TARGET).bin : $(APP2TARGETN)
119 cp $(APP2TARGETN) $@
121 $(BIN)$/$(APP2TARGET).Bin : $(APP2TARGETN)
122 cp $(APP2TARGETN) $@
124 $(BIN)$/$(APP2TARGET).Exe : $(APP2TARGETN)
125 cp $(APP2TARGETN) $@
127 .ELSE
128 ALL: ALLDEP
129 .ENDIF
131 .INCLUDE : target.mk
134 $(BIN)$/$(BOOTSTRAPSCRIPT) : $(BOOTSTRAPSCRIPT)
135 $(MY_SCRIPTCAT) $(BOOTSTRAPSCRIPT) > $@
136 .IF "$(GUI)"!="WNT"
137 chmod ug+x $@
138 .ENDIF
140 $(BIN)$/$(BOOTSTRAPINI) : $(APP2TARGET).ini
141 $(MY_SCRIPTCAT) $(APP2TARGET).ini > $@
143 $(BIN)$/bootstraptest.ini : bootstraptest.ini
144 $(MY_SCRIPTCAT) bootstraptest.ini > $@
147 # --- SO2-Filter-Datei ---
149 $(MISC)$/tsl$(DLLPOSTFIX).flt:
150 @echo ------------------------------
151 @echo Making: $@
152 @echo WEP>$@
153 @echo LIBMAIN>>$@
154 @echo LibMain>>$@