merge the formfield patch from ooo-build
[ooovba.git] / sfx2 / source / dialog / makefile.mk
blob230bbe432aea468a1882e94f8a99c00c9c7e4ed6
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.43 $
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 #*************************************************************************
31 PRJ=..$/..
33 PRJNAME=sfx2
34 TARGET=dialog
36 # --- Settings -----------------------------------------------------------
38 .INCLUDE : settings.mk
39 .INCLUDE : $(PRJ)$/util$/makefile.pmk
41 # --- Files --------------------------------------------------------------
43 EXCEPTIONSFILES=\
44 $(SLO)$/filedlghelper.obj \
45 $(SLO)$/filtergrouping.obj \
46 $(SLO)$/itemconnect.obj \
47 $(SLO)$/mailmodel.obj \
48 $(SLO)$/partwnd.obj \
49 $(SLO)$/recfloat.obj \
50 $(SLO)$/templdlg.obj \
51 $(SLO)$/dinfdlg.obj \
52 $(SLO)$/dockwin.obj
54 SLOFILES =\
55 $(EXCEPTIONSFILES) \
56 $(SLO)$/about.obj \
57 $(SLO)$/alienwarn.obj \
58 $(SLO)$/basedlgs.obj \
59 $(SLO)$/dinfedt.obj \
60 $(SLO)$/intro.obj \
61 $(SLO)$/mgetempl.obj \
62 $(SLO)$/navigat.obj \
63 $(SLO)$/newstyle.obj \
64 $(SLO)$/passwd.obj \
65 $(SLO)$/printopt.obj \
66 $(SLO)$/sfxdlg.obj \
67 $(SLO)$/sfxurl.obj \
68 $(SLO)$/splitwin.obj \
69 $(SLO)$/srchdlg.obj \
70 $(SLO)$/styfitem.obj \
71 $(SLO)$/styledlg.obj \
72 $(SLO)$/tabdlg.obj \
73 $(SLO)$/tplcitem.obj \
74 $(SLO)$/tplpitem.obj \
75 $(SLO)$/versdlg.obj
77 SRS1NAME=$(TARGET)
78 SRC1FILES =\
79 recfloat.src \
80 alienwarn.src \
81 dialog.src \
82 dinfdlg.src \
83 dinfedt.src \
84 filedlghelper.src \
85 mailwindow.src \
86 mgetempl.src \
87 newstyle.src \
88 passwd.src \
89 templdlg.src \
90 versdlg.src \
91 printopt.src \
92 srchdlg.src
94 .IF "$(BUILD_VER_STRING)"!=""
95 .IF "$(GUI)"=="UNX"
96 CFLAGS+=-DBUILD_VER_STRING='"$(BUILD_VER_STRING)"'
97 .ELSE # "$(GUI)"=="UNX"
98 CFLAGS+=-DBUILD_VER_STRING="$(subst,",\" "$(BUILD_VER_STRING)")"
99 .ENDIF # "$(GUI)"=="UNX"
100 .ENDIF
102 # --- Targets -------------------------------------------------------
104 .INCLUDE : target.mk
106 $(INCCOM)$/cuilib.hxx: makefile.mk
107 .IF "$(GUI)"=="UNX"
108 $(RM) $@
109 echo \#define DLL_NAME \"libcui$(DLLPOSTFIX)$(DLLPOST)\" >$@
110 .ELSE
111 echo $(EMQ)#define DLL_NAME $(EMQ)"cui$(DLLPOSTFIX)$(DLLPOST)$(EMQ)" >$@
112 .ENDIF
114 $(SLO)$/sfxdlg.obj : $(INCCOM)$/cuilib.hxx
116 $(SLO)$/about.obj : $(INCCOM)$/aboutbmpnames.hxx
118 .INCLUDE .IGNORE : $(MISC)$/about_bmp_names.mk
120 .IF "$(ABOUT_BITMAPS:f)"!="$(LASTTIME_ABOUT_BITMAPS)"
121 DO_PHONY=.PHONY
122 .ENDIF # "$(ABOUT_BITMAPS:f)"!="$(LASTTIME_ABOUT_BITMAPS)"
124 $(INCCOM)$/aboutbmpnames.hxx $(DO_PHONY):
125 echo const char ABOUT_BITMAP_STRINGLIST[]=$(EMQ)"$(ABOUT_BITMAPS:f:t",")$(EMQ)"$(EMQ); > $@
126 echo LASTTIME_ABOUT_BITMAPS=$(ABOUT_BITMAPS:f) > $(MISC)$/about_bmp_names.mk