update dev300-m58
[ooovba.git] / writerfilter / source / doctok / makefile.mk
blob15124d4f39d715337d055d475646f11922aaee9a
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.12 $
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=..$/..
33 PRJNAME=writerfilter
34 TARGET=doctok
35 #LIBTARGET=NO
36 ENABLE_EXCEPTIONS=TRUE
37 #USE_DEFFILE=TRUE
38 #EXTERNAL_WARNINGS_NOT_ERRORS=TRUE
39 # --- Settings -----------------------------------------------------
41 .INCLUDE : settings.mk
42 .INCLUDE : $(PRJ)$/inc$/writerfilter.mk
44 #CFLAGS+=-DISOLATION_AWARE_ENABLED -DWIN32_LEAN_AND_MEAN -DXML_UNICODE -D_NTSDK -DUNICODE -D_UNICODE -D_WIN32_WINNT=0x0501
45 #CFLAGS+=-wd4710 -wd4711 -wd4514 -wd4619 -wd4217 -wd4820
46 #CDEFS+=-DDEBUG_DOCTOK_DUMP
49 # --- Files --------------------------------------------------------
51 SLOFILES= \
52 $(SLO)$/WW8Annotation.obj \
53 $(SLO)$/WW8OutputWithDepth.obj \
54 $(SLO)$/WW8Text.obj \
55 $(SLO)$/DffImpl.obj \
56 $(SLO)$/Dff.obj \
57 $(SLO)$/WW8Picture.obj \
58 $(SLO)$/WW8Sttbf.obj \
59 $(SLO)$/WW8Table.obj \
60 $(SLO)$/WW8StyleSheet.obj \
61 $(SLO)$/WW8FontTable.obj \
62 $(SLO)$/WW8LFOTable.obj \
63 $(SLO)$/WW8ListTable.obj \
64 $(SLO)$/resources.obj \
65 $(SLO)$/doctokutil.obj \
66 $(SLO)$/WW8CpAndFc.obj \
67 $(SLO)$/WW8StructBase.obj \
68 $(SLO)$/WW8Clx.obj \
69 $(SLO)$/WW8FKPImpl.obj \
70 $(SLO)$/WW8BinTableImpl.obj \
71 $(SLO)$/WW8StreamImpl.obj \
72 $(SLO)$/WW8PropertySetImpl.obj \
73 $(SLO)$/WW8DocumentImpl.obj \
74 $(SLO)$/WW8PieceTableImpl.obj \
75 $(SLO)$/WW8ResourceModelImpl.obj
78 SHL1TARGET=$(TARGET)
80 .IF "$(GUI)"=="UNX" || "$(GUI)"=="MAC"
81 RESOURCEMODELLIB=-lresourcemodel
82 .ELIF "$(GUI)"=="OS2"
83 RESOURCEMODELLIB=$(LB)$/iresourcemodel.lib
84 .ELIF "$(GUI)"=="WNT"
85 .IF "$(COM)"=="GCC"
86 RESOURCEMODELLIB=-lresourcemodel
87 .ELSE
88 RESOURCEMODELLIB=$(LB)$/iresourcemodel.lib
89 .ENDIF
90 .ENDIF
93 SHL1STDLIBS=$(SALLIB)\
94 $(CPPULIB)\
95 $(CPPUHELPERLIB) \
96 $(RESOURCEMODELLIB)
97 SHL1IMPLIB=i$(SHL1TARGET)
98 SHL1USE_EXPORTS=name
100 SHL1OBJS=$(SLOFILES)
102 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
103 DEF1NAME=$(SHL1TARGET)
104 DEFLIB1NAME=$(TARGET)
106 # --- Targets ------------------------------------------------------
108 .INCLUDE : target.mk
110 DOCTOKHXXOUTDIR=$(INCCOM)/doctok
111 DOCTOKCXXOUTDIR=$(MISC)
112 DOCTOKHXXOUTDIRCREATED=$(DOCTOKHXXOUTDIR)/created
114 DOCTOKMODEL=resources.xmi
115 DOCTOKRESOURCESXSL=resources.xsl
116 DOCTOKRESOURCESIMPLXSL=resourcesimpl.xsl
117 DOCTOKRESOURCEIDSXSL=resourceids.xsl
118 DOCTOKSPRMIDSXSL=sprmids.xsl
119 DOCTOKRESOURCETOOLS=resourcetools.xsl
121 DOCTOKRESOURCEIDSHXX=$(DOCTOKHXXOUTDIR)$/resourceids.hxx
122 SPRMIDSHXX=$(DOCTOKHXXOUTDIR)$/sprmids.hxx
123 RESOURCESHXX=$(DOCTOKHXXOUTDIR)$/resources.hxx
124 RESOURCESCXX=$(DOCTOKCXXOUTDIR)$/resources.cxx
126 DOCTOKGENHEADERS=$(DOCTOKRESOURCEIDSHXX) $(SPRMIDSHXX) $(RESOURCESHXX)
127 DOCTOKGENFILES=$(DOCTOKGENHEADERS) $(RESOURCESCXX)
129 $(DOCTOKHXXOUTDIRCREATED):
130 $(MKDIRHIER) $(DOCTOKHXXOUTDIR)
131 $(TOUCH) $@
133 $(DOCTOKGENHEADERS): $(DOCTOKHXXOUTDIRCREATED)
135 $(RESOURCESHXX): $(DOCTOKRESOURCESXSL) $(DOCTOKMODEL)
136 $(XSLTPROC) $(DOCTOKRESOURCESXSL) $(DOCTOKMODEL) > $@
138 $(SPRMIDSHXX): $(DOCTOKSPRMIDSXSL) $(DOCTOKMODEL)
139 $(XSLTPROC) $(DOCTOKSPRMIDSXSL) $(DOCTOKMODEL) > $@
141 $(RESOURCESCXX): $(DOCTOKRESOURCESIMPLXSL) $(DOCTOKMODEL) $(DOCTOKRESOURCEIDSHXX) $(DOCTOKRESOURCETOOLS)
142 $(XSLTPROC) $(DOCTOKRESOURCESIMPLXSL) $(DOCTOKMODEL) > $@
144 $(DOCTOKRESOURCEIDSHXX): $(DOCTOKRESOURCEIDSXSL) $(DOCTOKMODEL)
145 $(XSLTPROC) $(DOCTOKRESOURCEIDSXSL) $(DOCTOKMODEL) > $@
147 $(SLOFILES) : $(DOCTOKGENHEADERS)
149 .PHONY: genmake genclean
151 genmake: $(DOCTOKGENFILES)
153 genclean:
154 rm -f $(DOCTOKGENFILES)
156 genheaders: $(DOCTOKGENHEADERS)