merge the formfield patch from ooo-build
[ooovba.git] / pyuno / source / loader / makefile.mk
blob6e4f96ed70148b11e1ef3e235332474f652d111c
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.17 $
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=pyuno
34 TARGET=pythonloader.uno
35 ENABLE_EXCEPTIONS=TRUE
37 # --- Settings -----------------------------------------------------
39 .INCLUDE : settings.mk
40 .IF "$(L10N_framework)"==""
41 DLLPRE =
43 #-------------------------------------------------------------------
45 .IF "$(OS)$(CPU)$(COMEX)" == "SOLARISS4"
46 # no -Bdirect for SunWS CC
47 DIRECT = $(LINKFLAGSDEFS)
48 .ENDIF
50 .IF "$(SYSTEM_PYTHON)" == "YES"
51 PYTHONLIB=$(PYTHON_LIBS)
52 CFLAGS+=$(PYTHON_CFLAGS)
53 .IF "$(EXTRA_CFLAGS)"!=""
54 PYTHONLIB+=-framework Python
55 .ENDIF # "$(EXTRA_CFLAGS)"!=""
56 .ELSE
57 .INCLUDE : pyversion.mk
59 CFLAGS+=-I$(SOLARINCDIR)$/python
60 .ENDIF
62 SHL1TARGET= $(TARGET)
64 SHL1STDLIBS= \
65 $(CPPULIB) \
66 $(CPPUHELPERLIB) \
67 $(SALLIB) \
68 $(PYUNOLIB) \
69 $(PYTHONLIB)
71 SHL1VERSIONMAP=$(SOLARENV)$/src$/component.map
72 SHL1DEPN=
73 SHL1IMPLIB= i$(TARGET)
74 SHL1LIBS= $(SLB)$/$(TARGET).lib
75 SHL1DEF= $(MISC)$/$(SHL1TARGET).def
77 DEF1NAME= $(SHL1TARGET)
78 SLOFILES= $(SLO)$/pyuno_loader.obj
80 #COMPONENTS= \
81 # tcv \
82 # inv \
83 # corefl \
84 # insp \
85 # invadp \
86 # proxyfac \
87 # pythonloader.uno \
90 COMPONENTS= \
91 stocservices.uno \
92 invocation.uno \
93 introspection.uno \
94 invocadapt.uno \
95 proxyfac.uno \
96 reflection.uno \
97 .$/pythonloader.uno
99 # --- Targets ------------------------------------------------------
101 ALL : ALLTAR \
102 $(DLLDEST)$/pythonloader.py \
103 $(DLLDEST)$/pyuno_services.rdb
104 .ENDIF # L10N_framework
106 .INCLUDE : target.mk
107 .IF "$(L10N_framework)"==""
108 $(DLLDEST)$/%.py: %.py
109 cp $? $@
111 $(DLLDEST)$/pyuno_services.rdb : makefile.mk $(DLLDEST)$/$(DLLPRE)$(TARGET)$(DLLPOST)
112 -rm -f $@ $(DLLDEST)$/pyuno_services.tmp $(DLLDEST)$/pyuno_services.rdb
113 cd $(DLLDEST) && $(REGCOMP) -register -r pyuno_services.tmp -wop $(foreach,i,$(COMPONENTS) -c $(i))
114 cd $(DLLDEST) && mv pyuno_services.tmp pyuno_services.rdb
115 .ENDIF # L10N_framework