merge the formfield patch from ooo-build
[ooovba.git] / sfx2 / source / appl / makefile.mk
blob48d1258e28383e126ed83b83d2730f0dc43c935b
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.56 $
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 PRJNAME=sfx2
35 TARGET=appl
36 ENABLE_EXCEPTIONS=TRUE
37 LIBTARGET=NO
39 # --- Settings -----------------------------------------------------
41 .INCLUDE : settings.mk
42 .INCLUDE : $(PRJ)$/util$/makefile.pmk
44 # w.g. compilerbugs
45 .IF "$(GUI)"=="WNT"
46 .IF "$(COM)"!="GCC"
47 CFLAGS+=-Od
48 CFLAGS+=-DENABLE_QUICKSTART_APPLET
49 .ENDIF
50 .ENDIF
52 .IF "$(GUIBASE)"=="aqua"
53 CFLAGS+=-DENABLE_QUICKSTART_APPLET
54 .ENDIF
56 .IF "$(GUI)"=="UNX"
57 CDEFS+=-DDLL_NAME=libsfx$(DLLPOSTFIX)$(DLLPOST)
58 .IF "$(ENABLE_SYSTRAY_GTK)"=="TRUE"
59 PKGCONFIG_MODULES=gtk+-2.0
60 .INCLUDE: pkg_config.mk
61 CFLAGS+=$(PKGCONFIG_CFLAGS)
62 CFLAGS+=-DENABLE_QUICKSTART_APPLET
63 CDEFS+=-DPLUGIN_NAME=libqstart_gtk$(DLLPOSTFIX)$(DLLPOST)
64 .ENDIF # "$(ENABLE_SYSTRAY_GTK)"=="TRUE"
65 .ELSE
66 CDEFS+=-DDLL_NAME=sfx$(DLLPOSTFIX)$(DLLPOST)
67 .ENDIF
69 # --- Files --------------------------------------------------------
71 SRS1NAME=appl
72 SRC1FILES = \
73 app.src newhelp.src dde.src
75 SRS2NAME=sfx
76 SRC2FILES = \
77 sfx.src
79 SFX_OBJECTS = \
80 $(SLO)$/app.obj \
81 $(SLO)$/appbas.obj \
82 $(SLO)$/appcfg.obj \
83 $(SLO)$/appchild.obj \
84 $(SLO)$/appdata.obj \
85 $(SLO)$/appdde.obj \
86 $(SLO)$/appinit.obj \
87 $(SLO)$/appmain.obj \
88 $(SLO)$/appmisc.obj \
89 $(SLO)$/appopen.obj \
90 $(SLO)$/appquit.obj \
91 $(SLO)$/appreg.obj \
92 $(SLO)$/appserv.obj \
93 $(SLO)$/appuno.obj \
94 $(SLO)$/appbaslib.obj \
95 $(SLO)$/childwin.obj \
96 $(SLO)$/helpdispatch.obj \
97 $(SLO)$/helpinterceptor.obj \
98 $(SLO)$/imagemgr.obj\
99 $(SLO)$/imestatuswindow.obj \
100 $(SLO)$/impldde.obj \
101 $(SLO)$/linkmgr2.obj \
102 $(SLO)$/linksrc.obj \
103 $(SLO)$/lnkbase2.obj \
104 $(SLO)$/module.obj \
105 $(SLO)$/newhelp.obj \
106 $(SLO)$/sfxdll.obj \
107 $(SLO)$/sfxhelp.obj \
108 $(SLO)$/sfxpicklist.obj \
109 $(SLO)$/shutdownicon.obj \
110 $(SLO)$/shutdowniconw32.obj \
111 $(SLO)$/workwin.obj \
112 $(SLO)$/xpackcreator.obj \
113 $(SLO)$/fwkhelper.obj
115 .IF "$(GUI)"=="OS2"
116 SFX_OBJECTS += $(SLO)$/shutdowniconOs2.obj
117 .ENDIF
119 .IF "$(GUIBASE)"=="aqua"
120 SFX_OBJECTS += $(SLO)$/shutdowniconaqua.obj
121 .ENDIF
123 SLOFILES = $(SFX_OBJECTS)
124 LIB1TARGET= $(SLB)$/$(TARGET).lib
125 LIB1OBJFILES= $(SFX_OBJECTS)
127 .IF "$(ENABLE_SYSTRAY_GTK)"=="TRUE"
128 QUICKSTART_OBJECTS = $(SLO)$/shutdowniconunx.obj
129 SLOFILES += $(QUICKSTART_OBJECTS)
131 LIB2TARGET= $(SLB)$/quickstart.lib
132 LIB2OBJFILES= $(QUICKSTART_OBJECTS)
133 .ENDIF
135 .IF "$(GUI)"=="OS2"
136 SLOFILES += $(SLO)$/shutdowniconOs2.obj
137 .ENDIF
139 EXCEPTIONSFILES=\
140 $(SLO)$/imagemgr.obj \
141 $(SLO)$/appopen.obj \
142 $(SLO)$/appmain.obj \
143 $(SLO)$/appmisc.obj \
144 $(SLO)$/appinit.obj \
145 $(SLO)$/appcfg.obj \
146 $(SLO)$/helpinterceptor.obj \
147 $(SLO)$/newhelp.obj \
148 $(SLO)$/sfxhelp.obj \
149 $(SLO)$/shutdownicon.obj \
150 $(SLO)$/shutdowniconw32.obj \
151 $(SLO)$/sfxpicklist.obj \
152 $(SLO)$/helpdispatch.obj \
153 $(SLO)$/xpackcreator.obj
156 # --- Targets -------------------------------------------------------
158 .INCLUDE : target.mk