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 #*************************************************************************
34 TARGET
=pythonloader.uno
35 ENABLE_EXCEPTIONS
=TRUE
37 # --- Settings -----------------------------------------------------
39 .INCLUDE
: settings.mk
40 .IF
"$(L10N_framework)"==""
43 #-------------------------------------------------------------------
45 .IF
"$(OS)$(CPU)$(COMEX)" == "SOLARISS4"
46 # no -Bdirect for SunWS CC
47 DIRECT
= $(LINKFLAGSDEFS
)
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)"!=""
57 .INCLUDE
: pyversion.mk
59 CFLAGS
+=-I
$(SOLARINCDIR
)$/python
71 SHL1VERSIONMAP
=$(SOLARENV
)$/src
$/component.map
73 SHL1IMPLIB
= i
$(TARGET
)
74 SHL1LIBS
= $(SLB
)$/$(TARGET
).lib
75 SHL1DEF
= $(MISC
)$/$(SHL1TARGET
).def
77 DEF1NAME
= $(SHL1TARGET
)
78 SLOFILES
= $(SLO
)$/pyuno_loader.obj
99 # --- Targets ------------------------------------------------------
102 $(DLLDEST
)$/pythonloader.py \
103 $(DLLDEST
)$/pyuno_services.rdb
104 .ENDIF
# L10N_framework
107 .IF
"$(L10N_framework)"==""
108 $(DLLDEST
)$/%.py
: %.py
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