xref: /aoo41x/main/sal/test/makefile.mk (revision cdf0e10c)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
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.
14#
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).
20#
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.
25#
26#*************************************************************************
27
28PRJ=..
29
30PRJNAME=sal
31TARGET=saltest
32TARGETTYPE=CUI
33LIBTARGET=NO
34USE_LDUMP2=TRUE
35ENABLE_EXCEPTIONS=TRUE
36#LDUMP2=LDUMP3
37
38
39# --- Settings -----------------------------------------------------
40.INCLUDE :  settings.mk
41CFLAGS+= $(LFS_CFLAGS)
42CXXFLAGS+= $(LFS_CFLAGS)
43# ------------------------------------------------------------------
44
45.IF "$(GUI)"=="WNT"
46BOOTSTRAPSCRIPT=bootstrap.bat
47BOOTSTRAPINI=testbootstrap.ini
48MY_SCRIPTCAT=cat
49.ELSE
50BOOTSTRAPSCRIPT=bootstrap
51BOOTSTRAPINI=testbootstraprc
52MY_SCRIPTCAT=tr -d "\015" <
53.ENDIF
54
55APP2OBJS = $(OBJ)$/testbootstrap.obj
56
57OBJFILES= \
58	$(APP2OBJS)
59
60APP2TARGET = testbootstrap
61APP2STDLIBS = $(SALLIB)
62
63APP3OBJS = $(OBJ)$/test_salmain.obj
64APP3TARGET = test_salmain
65APP3STDLIBS = $(SALLIB)
66
67APP4OBJS = $(OBJ)$/test_salmainwithargs.obj
68APP4TARGET = test_salmainwithargs
69APP4STDLIBS = $(SALLIB)
70
71
72# --- Targets ------------------------------------------------------
73.IF "$(depend)" == ""
74ALL : ALLTAR \
75	  $(BIN)$/$(BOOTSTRAPSCRIPT) \
76	  $(BIN)$/$(BOOTSTRAPINI)    \
77	  $(BIN)$/bootstraptest.ini  \
78	  $(BIN)$/$(APP2TARGET).bin  \
79	  $(BIN)$/$(APP2TARGET).Bin  \
80	  $(BIN)$/$(APP2TARGET).Exe  \
81	  $(BIN)$/bootstrap.pl
82
83
84.IF "$(GUI)"=="UNX"
85ALL:  $(BIN)$/$(APP2TARGET).exe \
86	  $(BIN)$/inirc \
87	  $(BIN)$/defaultrc
88
89$(BIN)$/$(APP2TARGET).exe : $(APP2TARGETN)
90	cp $(APP2TARGETN) $@
91
92$(BIN)$/inirc:
93		echo "CUSTOMINIVALUE=auxaux"   > $@
94		echo "INHERITED_OVERWRITTEN_VALUE=inherited_overwritten_value" >> $@
95
96$(BIN)$/defaultrc:
97		echo "Default=defaultValue" > $@
98
99.ELSE
100
101ALL:  $(BIN)$/ini.ini		\
102	  $(BIN)$/default.ini
103
104$(BIN)$/ini.ini:
105		echo CUSTOMINIVALUE=auxaux     > $@
106		echo INHERITED_OVERWRITTEN_VALUE=inherited_overwritten_value   >> $@
107
108
109$(BIN)$/default.ini:
110		echo Default=defaultValue > $@
111
112.ENDIF
113
114$(BIN)$/bootstrap.pl:
115	cp bootstrap.pl $@
116
117$(BIN)$/$(APP2TARGET).bin : $(APP2TARGETN)
118	cp $(APP2TARGETN) $@
119
120$(BIN)$/$(APP2TARGET).Bin : $(APP2TARGETN)
121	cp $(APP2TARGETN) $@
122
123$(BIN)$/$(APP2TARGET).Exe : $(APP2TARGETN)
124	cp $(APP2TARGETN) $@
125
126.ELSE
127ALL: 	ALLDEP
128.ENDIF
129
130.INCLUDE :  target.mk
131
132
133$(BIN)$/$(BOOTSTRAPSCRIPT) : $(BOOTSTRAPSCRIPT)
134	$(MY_SCRIPTCAT) $(BOOTSTRAPSCRIPT) > $@
135.IF "$(GUI)"!="WNT"
136	chmod ug+x $@
137.ENDIF
138
139$(BIN)$/$(BOOTSTRAPINI) : $(APP2TARGET).ini
140	$(MY_SCRIPTCAT) $(APP2TARGET).ini > $@
141
142$(BIN)$/bootstraptest.ini : bootstraptest.ini
143	$(MY_SCRIPTCAT) bootstraptest.ini > $@
144
145
146# --- SO2-Filter-Datei ---
147$(MISC)$/tsl$(DLLPOSTFIX).flt:
148	@echo ------------------------------
149	@echo Making: $@
150	@echo WEP>$@
151	@echo LIBMAIN>>$@
152	@echo LibMain>>$@
153