xref: /aoo41x/main/extensions/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=extensions
31TARGET=workben
32LIBTARGET=NO
33
34TESTAPP=testpgp
35#TESTAPP=testcomponent
36#TESTAPP=pythontest
37#TESTAPP=pythonautotest
38#TESTAPP=testresource
39#TESTAPP=testframecontrol
40
41.IF "$(TESTAPP)" == "testresource" || "$(TESTAPP)" == "testframecontrol"
42TARGETTYPE=GUI
43.ELSE
44TARGETTYPE=CUI
45.ENDIF
46
47JVM_TARGET=jvmtest
48
49ENABLE_EXCEPTIONS=TRUE
50
51# --- Settings -----------------------------------------------------
52
53.INCLUDE :  settings.mk
54
55UNOUCROUT=$(OUT)$/inc$/$(PRJNAME)$/$(TARGET)
56INCPRE+=$(UNOUCROUT)
57
58# --- Files --------------------------------------------------------
59
60#
61# testpgp.
62#
63.IF "$(TESTAPP)" == "testpgp"
64
65UNOTYPES= \
66	com.sun.star.lang.XMultiServiceFactory \
67	com.sun.star.io.XInputStream \
68	com.sun.star.io.XOutputStream \
69	com.sun.star.pgp.RecipientsEvent \
70	com.sun.star.pgp.SignatureEvent \
71	com.sun.star.pgp.XPGPDecoder \
72	com.sun.star.pgp.XPGPDecoderListener \
73	com.sun.star.pgp.XPGPEncoder \
74	com.sun.star.pgp.XPGPPreferences \
75	com.sun.star.uno.TypeClass \
76	com.sun.star.uno.XInterface \
77	com.sun.star.uno.XWeak
78
79OBJFILES=	$(OBJ)$/testpgp.obj
80
81APP1TARGET=	testpgp
82APP1OBJS=	$(OBJFILES)
83APP1STDLIBS= \
84			$(CPPUHELPERLIB)\
85			$(CPPULIB)		\
86			$(VOSLIB)		\
87			$(SALLIB)
88
89.ENDIF # testpgp
90
91#
92# std testcomponent
93#
94.IF "$(TESTAPP)" == "testcomponent"
95
96OBJFILES=	$(OBJ)$/testcomponent.obj
97
98APP2TARGET = testcomponent
99APP2OBJS   = $(OBJ)$/testcomponent.obj
100APP2STDLIBS = \
101              $(VOSLIB) \
102              $(TOOLSLIB)	\
103              $(SALLIB)
104
105.ENDIF # testcomponent
106
107#
108# test python.
109#
110.IF "$(TESTAPP)" == "phytontest"
111
112OBJFILES=	$(OBJ)$/pythontest.obj
113
114#APP4TARGET=	pythontest
115#APP4OBJS=	$(OBJ)$/pythontest.obj
116#APP4STDLIBS=$(TOOLSLIB)		\
117#			$(VOSLIB)
118
119.ENDIF # phytontest
120
121#
122# python auto test
123#
124.IF "$(TESTAPP)" == "phytonautotest"
125
126OBJFILES=	$(OBJ)$/pythonautotest.obj
127
128#APP5TARGET= pythonautotest
129#APP5OBJS = $(OBJ)$/pythonautotest.obj
130#APP5STDLIBS=$(TOOLSLIB)		\
131#			$(VOSLIB)
132
133.ENDIF # phytonautotest
134
135#
136# testresource.
137#
138.IF "$(TESTAPP)" == "testresource"
139
140OBJFILES=	$(OBJ)$/testresource.obj
141
142SRS2NAME =		testresource
143SRC2FILES=		testresource.src
144RESLIB2SRSFILES= $(SRS)$/testresource.srs
145RESLIB2NAME=	testresource
146
147APP2TARGET=	testresource
148APP2OBJS=	$(OBJ)$/testresource.obj
149APP2STDLIBS=$(TOOLSLIB)		\
150			$(VCLLIB)		\
151			$(SALLIB)
152
153.ENDIF # testresource
154
155#
156# testframecontrol.
157#
158.IF "$(TESTAPP)" == "testframecontrol"
159
160OBJFILES=	$(OBJ)$/testframecontrol.obj
161
162APP3TARGET=	testframecontrol
163APP3OBJS=	$(OBJ)$/testframecontrol.obj
164APP3STDLIBS=$(TOOLSLIB)		\
165			$(VOSLIB)		\
166			$(SVTOOLLIB)	\
167			$(VCLLIB)
168
169.ENDIF # testframecontrol
170
171# --- Targets ------------------------------------------------------
172
173.INCLUDE :  target.mk
174
175