xref: /aoo41x/main/fpicker/util/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=fpicker
31TARGET=fpicker
32TARGET1=fps
33TARGET2=fop
34USE_LDUMP2=TRUE
35
36# --- Settings -----------------------------------------------------
37
38.INCLUDE :  settings.mk
39
40# --- fps dynlib ----------------------------------------------
41
42COMMON_LIBS=$(CPPULIB)\
43			$(CPPUHELPERLIB)\
44			$(COMPHELPERLIB)\
45			$(SALLIB)\
46			$(VCLLIB)\
47			$(TOOLSLIB)
48
49.IF "$(GUI)"=="WNT"
50
51SHL1TARGET=$(TARGET1)
52SHL1STDLIBS=		$(COMMON_LIBS) \
53			$(UWINAPILIB) \
54			$(ADVAPI32LIB) \
55			$(SHELL32LIB)\
56			$(OLE32LIB)\
57			$(GDI32LIB)\
58			$(OLEAUT32LIB)\
59			$(COMDLG32LIB)\
60			$(KERNEL32LIB)\
61			$(UUIDLIB)
62
63SHL1DEPN=
64SHL1IMPLIB=i$(SHL1TARGET)
65SHL1LIBS=$(SLB)$/fps.lib\
66		 $(SLB)$/utils.lib
67SHL1RES=$(RES)$/$(TARGET1).res
68SHL1DEF=$(MISC)$/$(SHL1TARGET).def
69
70DEF1NAME=$(SHL1TARGET)
71DEF1EXPORTFILE=	exports.dxp
72
73.ENDIF # "$(GUI)"=="WNT"
74
75# --- fop dynlib --------------------------------------------------
76
77.IF "$(GUI)"=="WNT"
78SHL2NOCHECK=TRUE
79SHL2TARGET=$(TARGET2)
80
81SHL2STDLIBS=		$(COMMON_LIBS) \
82			$(UWINAPILIB) \
83			$(ADVAPI32LIB) \
84			$(OLE32LIB)\
85			$(GDI32LIB)\
86			$(SHELL32LIB)\
87			$(OLEAUT32LIB)
88
89SHL2DEPN=
90SHL2IMPLIB=i$(SHL2TARGET)
91SHL2LIBS=$(SLB)$/fop.lib\
92		 $(SLB)$/utils.lib
93SHL2DEF=$(MISC)$/$(SHL2TARGET).def
94
95DEF2NAME=$(SHL2TARGET)
96DEF2EXPORTFILE=	exports.dxp
97
98.ENDIF          # "$(GUI)"=="WNT"
99
100
101.INCLUDE :  target.mk
102
103ALLTAR : $(MISC)/fop.component $(MISC)/fps.component
104
105$(MISC)/fop.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
106        fop.component
107    $(XSLTPROC) --nonet --stringparam uri \
108        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \
109        $(SOLARENV)/bin/createcomponent.xslt fop.component
110
111$(MISC)/fps.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
112        fps.component
113    $(XSLTPROC) --nonet --stringparam uri \
114        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
115        $(SOLARENV)/bin/createcomponent.xslt fps.component
116