merge the formfield patch from ooo-build
[ooovba.git] / sd / source / ui / app / makefile.mk
blob82a6177a9e95ea732e797a4ad41a23404b7340e2
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.19 $
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 PROJECTPCH=sd
35 PROJECTPCHSOURCE=$(PRJ)$/util$/sd
36 PRJNAME=sd
37 TARGET=app
39 AUTOSEG=true
41 # --- Settings -----------------------------------------------------
43 .INCLUDE : settings.mk
44 .INCLUDE : $(PRJ)$/util$/makefile.pmk
46 NO_HID_FILES=app.src
47 .EXPORT : NO_HID_FILES
49 # --- Files --------------------------------------------------------
51 SRS1NAME=$(TARGET)
52 SRC1FILES = \
53 app.src \
54 toolbox.src \
55 strings.src \
56 res_bmp.src \
57 tbx_ww.src \
58 popup.src \
59 sdstring.src
61 #OBJFILES = \
62 # $(OBJ)$/sdlib.obj \
63 # $(OBJ)$/sdresid.obj \
65 SLOFILES = \
66 $(SLO)$/sdmod.obj \
67 $(SLO)$/sdmod1.obj \
68 $(SLO)$/sdmod2.obj \
69 $(SLO)$/sddll.obj \
70 $(SLO)$/sddll1.obj \
71 $(SLO)$/sddll2.obj \
72 $(SLO)$/tbxww.obj \
73 $(SLO)$/optsitem.obj \
74 $(SLO)$/sdresid.obj \
75 $(SLO)$/sdpopup.obj \
76 $(SLO)$/sdxfer.obj \
77 $(SLO)$/tmplctrl.obj
79 EXCEPTIONSFILES= \
80 $(SLO)$/sdxfer.obj \
81 $(SLO)$/sdmod1.obj \
82 $(SLO)$/tmplctrl.obj
84 .IF "$(GUI)" == "WNT"
86 NOOPTFILES=\
87 $(SLO)$/optsitem.obj
89 .ENDIF
91 # --- Tagets -------------------------------------------------------
93 all: \
94 $(INCCOM)$/sddll0.hxx \
95 ALLTAR
97 $(INCCOM)$/sddll0.hxx: makefile.mk
98 @echo $@
99 .IF "$(GUI)"=="UNX"
100 echo \#define DLL_NAME \"libsd$(DLLPOSTFIX)$(DLLPOST)\" >$@
101 .ELSE # "$(GUI)"=="UNX"
102 .IF "$(USE_SHELL)"!="4nt"
103 echo \#define DLL_NAME \"sd$(DLLPOSTFIX).DLL\" >$@
104 .ELSE # "$(USE_SHELL)"!="4nt"
105 echo #define DLL_NAME "sd$(DLLPOSTFIX).DLL" >$@
106 .ENDIF # "$(USE_SHELL)"!="4nt"
107 .ENDIF # "$(GUI)"=="UNX"
109 LOCALIZE_ME = tbxids_tmpl.src menuids2_tmpl.src menu_tmpl.src menuids_tmpl.src menuids4_tmpl.src popup2_tmpl.src toolbox2_tmpl.src menuportal_tmpl.src menuids3_tmpl.src
112 .INCLUDE : target.mk
114 $(SRS)$/app.srs: $(SOLARINCDIR)$/svx$/globlmn.hrc
117 $(SRS)$/$(SRS1NAME).srs : $(LOCALIZE_ME_DEST)