1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23LINKFLAGSDEFS=""
24
25PRJ=..$/..
26
27PRJNAME=cppuhelper
28TARGET=defbootstrap
29ENABLE_EXCEPTIONS=TRUE
30
31# --- Settings -----------------------------------------------------
32
33.INCLUDE :  settings.mk
34
35PERLINST1:=$(shell @+$(PERL) -V:installarchlib)
36PERLINST2:=$(subst,installarchlib=, $(PERLINST1))
37PERLINST3:=$(PERLINST2:s/'//)
38PERLINST :=$(PERLINST3:s/;//)
39
40PERLLIBS:=$(PERLINST)$/CORE
41PERLINCS:=$(PERLINST)$/CORE
42
43CFLAGS += -I$(PERLINCS)
44
45.IF "$(GUI)"=="WNT"
46PERLLIB=perl58.lib
47
48LIB!:=$(LIB);$(PERLLIBS)
49.EXPORT : LIB
50
51.ENDIF
52
53# --- Files --------------------------------------------------------
54
55#CFLAGS +=   -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC -I/develop6/update/dev/solenv/unxlngi3/lib/perl5/5.6.0/i686-linux/CORE/
56#CFLAGS += -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -KPIC -I/develop6/update/dev/solenv/unxsols2/lib/perl5/5.6.0/sun4-solaris/CORE
57
58SLOFILES= $(SLO)$/defbootstrap_lib.obj
59
60SHL1TARGET=$(TARGET)
61
62SHL1STDLIBS= \
63		$(PERLLIB)			\
64		$(CPPUHELPERLIB)	\
65		$(CPPULIB)			\
66		$(SALLIB)
67
68SHL1DEPN=
69SHL1IMPLIB=i$(TARGET)
70SHL1LIBS=$(SLB)$/$(TARGET).lib
71SHL1DEF=$(MISC)$/$(SHL1TARGET).def
72
73DEF1NAME=$(SHL1TARGET)
74SHL1VERSIONMAP=defbootstrap.map
75
76
77.IF "$(GUI)"=="WNT"
78UNODLL=$(DLLDEST)$/UNO.dll
79.ELSE
80UNODLL=$(DLLDEST)$/UNO.so
81.ENDIF
82
83# --- Targets ------------------------------------------------------
84
85.IF "$(depend)" == ""
86ALL: \
87	ALLTAR				\
88	$(UNODLL)			\
89	$(BIN)$/UNO.pm
90.ENDIF
91
92$(BIN)$/UNO.pm: UNO.pm
93	cp UNO.pm $@
94
95$(UNODLL): $(SHL1TARGETN)
96	cp $(SHL1TARGETN) $@
97
98.INCLUDE :	target.mk
99
100