update dev300-m58
[ooovba.git] / sfx2 / util / makefile.mk
blob5ee6e64daca01a2c3b94ed6714b9b15d27a8b041
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.54 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ=..
34 ENABLE_EXCEPTIONS=TRUE
35 PRJNAME=sfx2
36 TARGET=sfx
37 #sfx.hid generieren
38 GEN_HID=TRUE
39 GEN_HID_OTHER=TRUE
40 USE_DEFFILE=TRUE
42 # --- Settings -----------------------------------------------------
44 .INCLUDE : settings.mk
45 .INCLUDE : $(PRJ)$/util$/makefile.pmk
47 # --- Allgemein ----------------------------------------------------
49 LIB1TARGET= $(SLB)$/$(TARGET).lib
50 LIB1FILES= $(SLB)$/appl.lib \
51 $(SLB)$/explorer.lib \
52 $(SLB)$/doc.lib \
53 $(SLB)$/view.lib \
54 $(SLB)$/control.lib \
55 $(SLB)$/notify.lib \
56 $(SLB)$/menu.lib \
57 $(SLB)$/inet.lib \
58 $(SLB)$/toolbox.lib \
59 $(SLB)$/statbar.lib \
60 $(SLB)$/dialog.lib \
61 $(SLB)$/bastyp.lib \
62 $(SLB)$/config.lib
64 .IF "$(ENABLE_LAYOUT)" == "TRUE"
65 LIB1FILES += $(SLB)$/layout.lib
66 .ENDIF # ENABLE_LAYOUT == TRUE
68 HELPIDFILES=\
69 ..\inc\sfx2\sfxsids.hrc \
70 ..\source\inc\helpid.hrc
72 .IF "$(GUI)"!="UNX"
73 LIB2TARGET= $(LB)$/$(TARGET).lib
74 LIB2FILES= $(LB)$/isfx.lib
75 LIB2DEPN=$(SHL1TARGETN)
76 .ENDIF
78 SHL1TARGET= sfx$(DLLPOSTFIX)
79 SHL1IMPLIB= isfx
80 SHL1USE_EXPORTS=name
82 SHL1STDLIBS+=\
83 $(FWELIB) \
84 $(BASICLIB) \
85 $(SVTOOLLIB) \
86 $(TKLIB) \
87 $(VCLLIB) \
88 $(SVLLIB) \
89 $(SOTLIB) \
90 $(UNOTOOLSLIB) \
91 $(TOOLSLIB) \
92 $(I18NISOLANGLIB) \
93 $(SAXLIB) \
94 $(SYSSHELLLIB) \
95 $(COMPHELPERLIB) \
96 $(UCBHELPERLIB) \
97 $(CPPUHELPERLIB) \
98 $(CPPULIB) \
99 $(VOSLIB) \
100 $(SALLIB) \
101 $(SJLIB) \
102 $(LIBXML2LIB) \
105 .IF "$(GUI)"=="WNT"
107 SHL1STDLIBS+=\
108 $(UWINAPILIB) \
109 $(ADVAPI32LIB) \
110 $(SHELL32LIB) \
111 $(GDI32LIB) \
112 $(OLE32LIB) \
113 $(UUIDLIB)
114 .ELSE # WNT
115 .IF "$(OS)" == "MACOSX"
116 SHL1STDLIBS+= -framework Cocoa
117 .ENDIF # MACOSX
118 .ENDIF # WNT
121 SHL1DEPN += $(shell @$(FIND) $(SLO) -type f -name "*.OBJ" -print)
123 SHL1LIBS= $(LIB1TARGET)
125 #SHL1OBJS= $(SLO)$/sfxdll.obj
127 SHL1DEF= $(MISC)$/$(SHL1TARGET).def
129 DEF1NAME =$(SHL1TARGET)
130 DEFLIB1NAME =sfx
131 DEF1DES =Sfx
133 SFXSRSLIST=\
134 $(SRS)$/appl.srs \
135 $(SRS)$/sfx.srs \
136 $(SRS)$/doc.srs \
137 $(SRS)$/view.srs \
138 $(SRS)$/menu.srs \
139 $(SRS)$/dialog.srs \
140 $(SRS)$/bastyp.srs
142 RESLIB1NAME=$(TARGET)
143 RESLIB1IMAGES=$(PRJ)$/res
144 RESLIB1SRSFILES=$(SFXSRSLIST)
146 # gtk quick-starter
147 .IF "$(GUI)"=="UNX"
148 .IF "$(ENABLE_SYSTRAY_GTK)"=="TRUE"
149 PKGCONFIG_MODULES=gtk+-2.0
150 .INCLUDE: pkg_config.mk
151 CFLAGS+=$(PKGCONFIG_CFLAGS)
153 SHL3TARGET=qstart_gtk$(DLLPOSTFIX)
154 SHL3LIBS=$(SLB)$/quickstart.lib
155 SHL3DEPN=$(SHL1IMPLIBN) $(SHL1TARGETN)
156 # libs for gtk plugin
157 SHL3STDLIBS=$(SHL1STDLIBS) $(SFX2LIB) $(EGGTRAYLIB)
158 SHL3STDLIBS+=$(PKGCONFIG_LIBS:s/ -lpangoxft-1.0//)
159 # hack for faked SO environment
160 .IF "$(PKGCONFIG_ROOT)"!=""
161 SHL3SONAME+=-z nodefs
162 SHL3NOCHECK=TRUE
163 .ENDIF # "$(PKGCONFIG_ROOT)"!=""
164 .ENDIF # "$(ENABLE_SYSTRAY_GTK)"=="TRUE"
165 .ENDIF # "$(GUI)"=="UNX"
167 # --- Targets ------------------------------------------------------
170 .INCLUDE : target.mk