Fix typo pointer name
[LibreOffice.git] / sal / test / makefile.mk
blob25aa5dd5fa175613c75ffd4fdab8cd720637b07b
2 # This file is part of the LibreOffice project.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 # This file incorporates work covered by the following license notice:
10 # Licensed to the Apache Software Foundation (ASF) under one or more
11 # contributor license agreements. See the NOTICE file distributed
12 # with this work for additional information regarding copyright
13 # ownership. The ASF licenses this file to you under the Apache
14 # License, Version 2.0 (the "License"); you may not use this file
15 # except in compliance with the License. You may obtain a copy of
16 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 PRJ=..
21 PRJNAME=sal
22 TARGET=saltest
23 TARGETTYPE=CUI
24 LIBTARGET=NO
25 USE_LDUMP2=TRUE
26 ENABLE_EXCEPTIONS=TRUE
28 # --- Settings -----------------------------------------------------
30 .INCLUDE : settings.mk
31 CFLAGS+= $(LFS_CFLAGS)
32 CXXFLAGS+= $(LFS_CFLAGS)
34 # ------------------------------------------------------------------
36 .IF "$(OS)"=="WNT"
37 BOOTSTRAPSCRIPT=bootstrap.bat
38 BOOTSTRAPINI=testbootstrap.ini
39 MY_SCRIPTCAT=cat
40 .ELSE
41 BOOTSTRAPSCRIPT=bootstrap
42 BOOTSTRAPINI=testbootstraprc
43 MY_SCRIPTCAT=tr -d "\015" <
44 .ENDIF
46 APP2OBJS = $(OBJ)$/testbootstrap.obj
48 OBJFILES= \
49 $(APP2OBJS)
51 APP2TARGET = testbootstrap
52 APP2STDLIBS = $(SALLIB)
54 APP3OBJS = $(OBJ)$/test_salmain.obj
55 APP3TARGET = test_salmain
56 APP3STDLIBS = $(SALLIB)
58 APP4OBJS = $(OBJ)$/test_salmainwithargs.obj
59 APP4TARGET = test_salmainwithargs
60 APP4STDLIBS = $(SALLIB)
63 # --- Targets ------------------------------------------------------
65 .IF "$(depend)" == ""
66 ALL : ALLTAR \
67 $(BIN)$/$(BOOTSTRAPSCRIPT) \
68 $(BIN)$/$(BOOTSTRAPINI) \
69 $(BIN)$/bootstraptest.ini \
70 $(BIN)$/$(APP2TARGET).bin \
71 $(BIN)$/$(APP2TARGET).Bin \
72 $(BIN)$/$(APP2TARGET).Exe \
73 $(BIN)$/bootstrap.pl
76 .IF "$(OS)"!="WNT"
77 ALL: $(BIN)$/$(APP2TARGET).exe \
78 $(BIN)$/inirc \
79 $(BIN)$/defaultrc
81 $(BIN)$/$(APP2TARGET).exe : $(APP2TARGETN)
82 cp $(APP2TARGETN) $@
84 $(BIN)$/inirc:
85 echo "CUSTOMINIVALUE=auxaux" > $@
86 echo "INHERITED_OVERWRITTEN_VALUE=inherited_overwritten_value" >> $@
88 $(BIN)$/defaultrc:
89 echo "Default=defaultValue" > $@
91 .ELSE
93 ALL: $(BIN)$/ini.ini \
94 $(BIN)$/default.ini
96 $(BIN)$/ini.ini:
97 echo CUSTOMINIVALUE=auxaux > $@
98 echo INHERITED_OVERWRITTEN_VALUE=inherited_overwritten_value >> $@
101 $(BIN)$/default.ini:
102 echo Default=defaultValue > $@
104 .ENDIF
106 $(BIN)$/bootstrap.pl:
107 cp bootstrap.pl $@
109 $(BIN)$/$(APP2TARGET).bin : $(APP2TARGETN)
110 cp $(APP2TARGETN) $@
112 $(BIN)$/$(APP2TARGET).Bin : $(APP2TARGETN)
113 cp $(APP2TARGETN) $@
115 $(BIN)$/$(APP2TARGET).Exe : $(APP2TARGETN)
116 cp $(APP2TARGETN) $@
118 .ELSE
119 ALL: ALLDEP
120 .ENDIF
122 .INCLUDE : target.mk
125 $(BIN)$/$(BOOTSTRAPSCRIPT) : $(BOOTSTRAPSCRIPT)
126 $(MY_SCRIPTCAT) $(BOOTSTRAPSCRIPT) > $@
127 .IF "$(OS)"!="WNT"
128 chmod ug+x $@
129 .ENDIF
131 $(BIN)$/$(BOOTSTRAPINI) : $(APP2TARGET).ini
132 $(MY_SCRIPTCAT) $(APP2TARGET).ini > $@
134 $(BIN)$/bootstraptest.ini : bootstraptest.ini
135 $(MY_SCRIPTCAT) bootstraptest.ini > $@
138 # --- SO2-Filter-Datei ---
140 $(MISC)$/tsl$(DLLPOSTFIX).flt:
141 @echo ------------------------------
142 @echo Making: $@
143 @echo WEP>$@
144 @echo LIBMAIN>>$@
145 @echo LibMain>>$@