xref: /trunk/main/vcl/workben/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=vcl
31TARGET=svdem
32LIBTARGET=NO
33TARGETTYPE=GUI
34
35ENABLE_EXCEPTIONS=TRUE
36
37my_components = i18npool i18nsearch
38
39# --- Settings -----------------------------------------------------
40
41.INCLUDE :	settings.mk
42
43# --- Files --------------------------------------------------------
44
45OBJFILES= \
46	$(OBJ)$/svdem.obj \
47	$(OBJ)$/vcldemo.obj \
48	$(OBJ)$/outdevgrind.obj
49
50# --- Targets ------------------------------------------------------
51
52# svdem
53
54APP1NOSAL=		TRUE
55APP1TARGET= 	$(TARGET)
56APP1OBJS= \
57	$(OBJ)$/svdem.obj
58
59APP1STDLIBS=	$(CPPULIB)			\
60				$(UNOTOOLSLIB)	\
61				$(CPPUHELPERLIB)	\
62				$(COMPHELPERLIB)	\
63				$(TOOLSLIB) 		\
64				$(SALLIB)			\
65				$(VOSLIB)			\
66				$(SOTLIB)			\
67				$(VCLLIB)
68
69# outdevgrind
70
71APP2TARGET= outdevgrind
72APP2OBJS=	\
73	$(OBJ)$/outdevgrind.obj $(OBJ)$/salmain.obj
74
75APP2NOSAL=		TRUE
76APP2STDLIBS=$(TOOLSLIB) 		\
77			$(COMPHELPERLIB)	\
78			$(CPPULIB)			\
79			$(CPPUHELPERLIB)	\
80			$(UCBHELPERLIB)		\
81			$(SALLIB)			\
82			$(VCLLIB)
83
84# vcldemo
85
86APP3NOSAL=TRUE
87APP3TARGET=vcldemo
88APP3OBJS= \
89	$(OBJ)$/vcldemo.obj
90
91APP3STDLIBS=	$(CPPULIB)			\
92				$(UNOTOOLSLIB)	\
93				$(CPPUHELPERLIB)	\
94				$(COMPHELPERLIB)	\
95				$(TOOLSLIB) 		\
96				$(SALLIB)			\
97				$(VOSLIB)			\
98				$(SOTLIB)			\
99				$(VCLLIB)
100
101
102# --- Targets ------------------------------------------------------
103.IF "$(GUIBASE)" == "unx"
104
105APP4NOSAL=              TRUE
106APP4TARGET=     svptest
107APP4OBJS=               $(OBJ)$/svptest.obj
108
109APP4STDLIBS=    $(CPPULIB)                      \
110                                $(CPPUHELPERLIB)        \
111                                $(COMPHELPERLIB)        \
112                                $(VCLLIB)                       \
113                                $(TOOLSLIB)             \
114                                $(SALLIB)                       \
115                                $(VOSLIB)                       \
116                                $(SOTLIB)                       \
117                                $(VCLLIB)
118
119APP5NOSAL=              TRUE
120APP5TARGET=     svpclient
121APP5OBJS=               $(OBJ)$/svpclient.obj
122
123APP5STDLIBS=    $(CPPULIB)                      \
124                                $(CPPUHELPERLIB)        \
125                                $(COMPHELPERLIB)        \
126                                $(UCBHELPERLIB)        \
127                                $(VCLLIB)                       \
128                                $(TOOLSLIB)             \
129                                $(SALLIB)                       \
130                                $(VOSLIB)                       \
131                                $(SOTLIB)                       \
132                                $(VCLLIB)
133
134.IF "$(OS)" == "SOLARIS"
135APP5STDLIBS+=-lsocket
136.ENDIF
137
138.ENDIF
139
140.INCLUDE :	target.mk
141
142ALLTAR : $(BIN)/applicat.rdb $(BIN)/types.rdb
143
144$(BIN)/applicat.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \
145        $(MISC)/applicat.input $(my_components:^"$(SOLARXMLDIR)/":+".component")
146    $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \
147        $(SOLARENV)/bin/packcomponents.xslt $(MISC)/applicat.input
148
149$(MISC)/applicat.input :
150    echo \
151        '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \
152        > $@
153
154$(BIN)/types.rdb : $(SOLARBINDIR)/types.rdb
155    $(COPY) $< $@
156