merge the formfield patch from ooo-build
[ooovba.git] / sal / test / makefile.mk
blob00c2d056a44c9b6d35baaa702901582d51798c08
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.21 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ=..
34 PRJNAME=sal
35 TARGET=saltest
36 TARGETTYPE=CUI
37 LIBTARGET=NO
38 USE_LDUMP2=TRUE
39 ENABLE_EXCEPTIONS=TRUE
40 #LDUMP2=LDUMP3
43 # --- Settings -----------------------------------------------------
44 .INCLUDE : settings.mk
45 CFLAGS+= $(LFS_CFLAGS)
46 CXXFLAGS+= $(LFS_CFLAGS)
47 # ------------------------------------------------------------------
49 .IF "$(GUI)"=="WNT"
50 BOOTSTRAPSCRIPT=bootstrap.bat
51 BOOTSTRAPINI=testbootstrap.ini
52 MY_SCRIPTCAT=cat
53 .ELSE
54 BOOTSTRAPSCRIPT=bootstrap
55 BOOTSTRAPINI=testbootstraprc
56 MY_SCRIPTCAT=tr -d "\015" <
57 .ENDIF
59 APP2OBJS = $(OBJ)$/testbootstrap.obj
61 OBJFILES= \
62 $(APP2OBJS)
64 APP2TARGET = testbootstrap
65 APP2STDLIBS = $(SALLIB)
67 APP3OBJS = $(OBJ)$/test_salmain.obj
68 APP3TARGET = test_salmain
69 APP3STDLIBS = $(SALLIB)
71 APP4OBJS = $(OBJ)$/test_salmainwithargs.obj
72 APP4TARGET = test_salmainwithargs
73 APP4STDLIBS = $(SALLIB)
76 # --- Targets ------------------------------------------------------
77 .IF "$(depend)" == ""
78 ALL : ALLTAR \
79 $(BIN)$/$(BOOTSTRAPSCRIPT) \
80 $(BIN)$/$(BOOTSTRAPINI) \
81 $(BIN)$/bootstraptest.ini \
82 $(BIN)$/$(APP2TARGET).bin \
83 $(BIN)$/$(APP2TARGET).Bin \
84 $(BIN)$/$(APP2TARGET).Exe \
85 $(BIN)$/bootstrap.pl
88 .IF "$(GUI)"=="UNX"
89 ALL: $(BIN)$/$(APP2TARGET).exe \
90 $(BIN)$/inirc \
91 $(BIN)$/defaultrc
93 $(BIN)$/$(APP2TARGET).exe : $(APP2TARGETN)
94 cp $(APP2TARGETN) $@
96 $(BIN)$/inirc:
97 echo "CUSTOMINIVALUE=auxaux" > $@
98 echo "INHERITED_OVERWRITTEN_VALUE=inherited_overwritten_value" >> $@
100 $(BIN)$/defaultrc:
101 echo "Default=defaultValue" > $@
103 .ELSE
105 ALL: $(BIN)$/ini.ini \
106 $(BIN)$/default.ini
108 $(BIN)$/ini.ini:
109 echo CUSTOMINIVALUE=auxaux > $@
110 echo INHERITED_OVERWRITTEN_VALUE=inherited_overwritten_value >> $@
113 $(BIN)$/default.ini:
114 echo Default=defaultValue > $@
116 .ENDIF
118 $(BIN)$/bootstrap.pl:
119 cp bootstrap.pl $@
121 $(BIN)$/$(APP2TARGET).bin : $(APP2TARGETN)
122 cp $(APP2TARGETN) $@
124 $(BIN)$/$(APP2TARGET).Bin : $(APP2TARGETN)
125 cp $(APP2TARGETN) $@
127 $(BIN)$/$(APP2TARGET).Exe : $(APP2TARGETN)
128 cp $(APP2TARGETN) $@
130 .ELSE
131 ALL: ALLDEP
132 .ENDIF
134 .INCLUDE : target.mk
137 $(BIN)$/$(BOOTSTRAPSCRIPT) : $(BOOTSTRAPSCRIPT)
138 $(MY_SCRIPTCAT) $(BOOTSTRAPSCRIPT) > $@
139 .IF "$(GUI)"!="WNT"
140 chmod ug+x $@
141 .ENDIF
143 $(BIN)$/$(BOOTSTRAPINI) : $(APP2TARGET).ini
144 $(MY_SCRIPTCAT) $(APP2TARGET).ini > $@
146 $(BIN)$/bootstraptest.ini : bootstraptest.ini
147 $(MY_SCRIPTCAT) bootstraptest.ini > $@
150 # --- SO2-Filter-Datei ---
151 $(MISC)$/tsl$(DLLPOSTFIX).flt:
152 @echo ------------------------------
153 @echo Making: $@
154 @echo WEP>$@
155 @echo LIBMAIN>>$@
156 @echo LibMain>>$@