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: tg_moz.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 #*************************************************************************
34 EXPORT_HEADER
=export_mozilla_header
37 .IF
"$(XPIDLSRCS)"!=""
38 XPIDL_TYPELIB_MODULE
=$(MISC
)/$(XPIDL_MODULE
).xpt
39 XPIDLHDR
:=$(XPIDLSRCS
:s
/.idl
/.h
/)
40 XPIDLXPT
:=$(XPIDLSRCS
:s
/.idl
/.xpt
/)
41 EXTRA_MOZ_TARGET
+= $(foreach,i
,$(XPIDLHDR
) $(INCCOM
)/$i)
42 EXTRA_MOZ_TARGET
+= $(foreach,i
,$(XPIDLXPT
) $(MISC
)/$i)
44 EXTRA_MOZ_TARGET
+= $(XPIDL_TYPELIB_MODULE
)
47 ALLMOZ
:=$(EXTRA_MOZ_TARGET
) $(DO_XPIDL
) $(GEN_PRCPUCFG
) $(EXPORT_HEADER
)
51 $(XPIDL
) -m header
-w
-I
$(SOLARIDLDIR
)/mozilla
-I
$(INCCOM
) -I .
-o
$(INCCOM
)/$* $<
54 $(XPIDL
) -m typelib
-w
-I
$(SOLARIDLDIR
)/mozilla
-I
$(INCCOM
) -I .
-o
$(MISC
)/$* $<
62 .IF
"$(OS)"=="SOLARIS"
70 .IF
"$(OS)"=="FREEBSD"
78 .IF
"$(GEN_PRCPUCFG)"!=""
79 $(GEN_PRCPUCFG
): $(PRJ
)/pr
/include/md
/$(CPUCFG
)
80 @
$(COPY
) $(PRJ
)/pr
/include/md
/$(CPUCFG
) $@
85 @
$(COPY
) $(EXPORTS
) $(INCCOM
)
88 .IF
"$(XPIDLSRCS)"!=""
89 $(XPIDL_TYPELIB_MODULE
): $(foreach,i
,$(XPIDLXPT
) $(MISC
)/$i)
90 $(XPIDL_LINK
) $(MISC
)/$(XPIDL_MODULE
).xpt
$^
91 @
-mkdir
$(BIN
)/components
92 @
$(COPY
) $@
$(BIN
)/components