update dev300-m58
[ooovba.git] / solenv / inc / tg_moz.mk
blobcce44f8c87711098b7ccf9c9e7b8a37a89e923f2
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: tg_moz.mk,v $
11 # $Revision: 1.8 $
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 #*************************************************************************
33 .IF "$(EXPORTS)"!=""
34 EXPORT_HEADER=export_mozilla_header
35 .ENDIF
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)
45 .ENDIF
47 ALLMOZ:=$(EXTRA_MOZ_TARGET) $(DO_XPIDL) $(GEN_PRCPUCFG) $(EXPORT_HEADER)
49 $(INCCOM)/%.h : %.idl
50 $(COPY) $< $(INCCOM)
51 $(XPIDL) -m header -w -I $(SOLARIDLDIR)/mozilla -I$(INCCOM) -I . -o $(INCCOM)/$* $<
53 $(MISC)/%.xpt : %.idl
54 $(XPIDL) -m typelib -w -I $(SOLARIDLDIR)/mozilla -I$(INCCOM) -I . -o $(MISC)/$* $<
56 .INCLUDE : target.mk
58 .IF "$(GUI)"=="WNT"
59 CPUCFG=_winnt.cfg
60 .ENDIF
62 .IF "$(OS)"=="SOLARIS"
63 CPUCFG=_solaris32.cfg
64 .ENDIF
66 .IF "$(OS)"=="LINUX"
67 CPUCFG=_linux.cfg
68 .ENDIF
70 .IF "$(OS)"=="FREEBSD"
71 CPUCFG=_freebsd.cfg
72 .ENDIF
74 .IF "$(OS)"=="NETBSD"
75 CPUCFG=_netbsd.cfg
76 .ENDIF
78 .IF "$(GEN_PRCPUCFG)"!=""
79 $(GEN_PRCPUCFG): $(PRJ)/pr/include/md/$(CPUCFG)
80 @$(COPY) $(PRJ)/pr/include/md/$(CPUCFG) $@
81 .ENDIF
83 .IF "$(EXPORTS)"!=""
84 $(EXPORT_HEADER):
85 @$(COPY) $(EXPORTS) $(INCCOM)
86 .ENDIF
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
93 .ENDIF