xref: /aoo42x/main/vcl/workben/makefile.mk (revision 7871dc3e)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24PRJ=..
25
26PRJNAME=vcl
27TARGET=svdem
28LIBTARGET=NO
29TARGETTYPE=GUI
30
31ENABLE_EXCEPTIONS=TRUE
32
33my_components = i18npool i18nsearch
34
35# --- Settings -----------------------------------------------------
36
37.INCLUDE :	settings.mk
38
39# --- Files --------------------------------------------------------
40
41OBJFILES= \
42	$(OBJ)$/svdem.obj \
43	$(OBJ)$/vcldemo.obj \
44	$(OBJ)$/outdevgrind.obj
45
46# --- Targets ------------------------------------------------------
47
48# svdem
49
50APP1NOSAL=		TRUE
51APP1TARGET= 	$(TARGET)
52APP1OBJS= \
53	$(OBJ)$/svdem.obj
54
55APP1STDLIBS=	$(CPPULIB)			\
56				$(UNOTOOLSLIB)	\
57				$(CPPUHELPERLIB)	\
58				$(COMPHELPERLIB)	\
59				$(TOOLSLIB) 		\
60				$(SALLIB)			\
61				$(VOSLIB)			\
62				$(SOTLIB)			\
63				$(VCLLIB)
64
65# outdevgrind
66
67APP2TARGET= outdevgrind
68APP2OBJS=	\
69	$(OBJ)$/outdevgrind.obj
70
71APP2NOSAL=		TRUE
72APP2STDLIBS=$(TOOLSLIB) 		\
73			vclmain.lib \
74			$(COMPHELPERLIB)	\
75			$(CPPULIB)			\
76			$(CPPUHELPERLIB)	\
77			$(UCBHELPERLIB)		\
78			$(SALLIB)			\
79			$(VCLLIB)
80
81# vcldemo
82
83APP3NOSAL=TRUE
84APP3TARGET=vcldemo
85APP3OBJS= \
86	$(OBJ)$/vcldemo.obj
87
88APP3STDLIBS=	$(CPPULIB)			\
89				$(UNOTOOLSLIB)	\
90				$(CPPUHELPERLIB)	\
91				$(COMPHELPERLIB)	\
92				$(TOOLSLIB) 		\
93				$(SALLIB)			\
94				$(VOSLIB)			\
95				$(SOTLIB)			\
96				$(VCLLIB)
97
98
99# --- Targets ------------------------------------------------------
100.IF "$(GUIBASE)" == "unx"
101
102APP4NOSAL=              TRUE
103APP4TARGET=     svptest
104APP4OBJS=               $(OBJ)$/svptest.obj
105
106APP4STDLIBS=    $(CPPULIB)                      \
107                                $(CPPUHELPERLIB)        \
108                                $(COMPHELPERLIB)        \
109                                $(VCLLIB)                       \
110                                $(TOOLSLIB)             \
111                                $(SALLIB)                       \
112                                $(VOSLIB)                       \
113                                $(SOTLIB)                       \
114                                $(VCLLIB)
115
116APP5NOSAL=              TRUE
117APP5TARGET=     svpclient
118APP5OBJS=               $(OBJ)$/svpclient.obj
119
120APP5STDLIBS=    $(CPPULIB)                      \
121                                $(CPPUHELPERLIB)        \
122                                $(COMPHELPERLIB)        \
123                                $(UCBHELPERLIB)        \
124                                $(VCLLIB)                       \
125                                $(TOOLSLIB)             \
126                                $(SALLIB)                       \
127                                $(VOSLIB)                       \
128                                $(SOTLIB)                       \
129                                $(VCLLIB)
130
131.IF "$(OS)" == "SOLARIS"
132APP5STDLIBS+=-lsocket
133.ENDIF
134
135.ENDIF
136
137.INCLUDE :	target.mk
138
139ALLTAR : $(BIN)/applicat.rdb $(BIN)/types.rdb
140
141$(BIN)/applicat.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \
142        $(MISC)/applicat.input $(my_components:^"$(SOLARXMLDIR)/":+".component")
143    $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \
144        $(SOLARENV)/bin/packcomponents.xslt $(MISC)/applicat.input
145
146$(MISC)/applicat.input :
147    echo \
148        '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \
149        > $@
150
151$(BIN)/types.rdb : $(SOLARBINDIR)/types.rdb
152    $(COPY) $< $@
153