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 $
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 # ***********************************************************************/
36 ENABLE_EXCEPTIONS
=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 --------------------------------------------------------
52 $(SLO
)$/WW8Annotation.obj \
53 $(SLO
)$/WW8OutputWithDepth.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 \
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
80 .IF
"$(GUI)"=="UNX" ||
"$(GUI)"=="MAC"
81 RESOURCEMODELLIB
=-lresourcemodel
83 RESOURCEMODELLIB
=$(LB
)$/iresourcemodel.lib
86 RESOURCEMODELLIB
=-lresourcemodel
88 RESOURCEMODELLIB
=$(LB
)$/iresourcemodel.lib
93 SHL1STDLIBS
=$(SALLIB
)\
97 SHL1IMPLIB
=i
$(SHL1TARGET
)
102 SHL1DEF
=$(MISC
)$/$(SHL1TARGET
).def
103 DEF1NAME
=$(SHL1TARGET
)
104 DEFLIB1NAME
=$(TARGET
)
106 # --- Targets ------------------------------------------------------
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
)
133 $(DOCTOKGENHEADERS
): $(DOCTOKHXXOUTDIRCREATED
)
135 $(RESOURCESHXX
): $(DOCTOKRESOURCESXSL
) $(DOCTOKMODEL
)
136 @echo
"Making: " $(@
:f
)
137 $(COMMAND_ECHO
)$(XSLTPROC
) $(DOCTOKRESOURCESXSL
) $(DOCTOKMODEL
) > $@
139 $(SPRMIDSHXX
): $(DOCTOKSPRMIDSXSL
) $(DOCTOKMODEL
)
140 @echo
"Making: " $(@
:f
)
141 $(COMMAND_ECHO
)$(XSLTPROC
) $(DOCTOKSPRMIDSXSL
) $(DOCTOKMODEL
) > $@
143 $(RESOURCESCXX
): $(DOCTOKRESOURCESIMPLXSL
) $(DOCTOKMODEL
) $(DOCTOKRESOURCEIDSHXX
) $(DOCTOKRESOURCETOOLS
)
144 @echo
"Making: " $(@
:f
)
145 $(COMMAND_ECHO
)$(XSLTPROC
) $(DOCTOKRESOURCESIMPLXSL
) $(DOCTOKMODEL
) > $@
147 $(DOCTOKRESOURCEIDSHXX
): $(DOCTOKRESOURCEIDSXSL
) $(DOCTOKMODEL
)
148 @echo
"Making: " $(@
:f
)
149 $(COMMAND_ECHO
)$(XSLTPROC
) $(DOCTOKRESOURCEIDSXSL
) $(DOCTOKMODEL
) > $@
151 $(SLOFILES
) : $(DOCTOKGENHEADERS
)
153 .PHONY
: genmake genclean
155 genmake
: $(DOCTOKGENFILES
)
158 rm -f
$(DOCTOKGENFILES
)
160 genheaders
: $(DOCTOKGENHEADERS
)