xref: /aoo42x/main/cppu/util/makefile.mk (revision a4523a2b)
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
23PRJ=..
24
25PRJNAME=cppu
26TARGET=cppu
27USE_DEFFILE=TRUE
28ENABLE_EXCEPTIONS=TRUE
29NO_BSYMBOLIC=TRUE
30
31.IF "$(OS)" != "WNT" && "$(OS)" != "OS2" && "$(OS)" != "MACOSX"
32UNIXVERSIONNAMES=UDK
33.ENDIF
34
35
36# --- Settings -----------------------------------------------------
37
38.INCLUDE :  settings.mk
39.INCLUDE : ../source/helper/purpenv/export.mk
40
41# --- Files --------------------------------------------------------
42
43SHL1LIBS= \
44	$(SLB)$/cppu_typelib.lib	\
45	$(SLB)$/cppu_uno.lib		\
46	$(SLB)$/cppu_threadpool.lib	\
47	$(SLB)$/cppu_cppu.lib
48
49.IF "$(GUI)" == "WNT" || "$(GUI)"=="OS2"
50SHL1TARGET=$(TARGET)$(UDK_MAJOR)
51.ELSE
52SHL1TARGET= uno_$(TARGET)
53.ENDIF
54
55SHL1STDLIBS = $(SALLIB)
56
57SHL1DEPN=
58SHL1IMPLIB=i$(TARGET)
59.IF "$(OS)"!="FREEBSD"
60SHL1DEF=$(MISC)$/$(SHL1TARGET).def
61.ENDIF
62
63SHL1VERSIONMAP=$(TARGET).map
64SHL1RPATH=URELIB
65
66DEF1NAME=$(SHL1TARGET)
67
68
69SHL2TARGET  := $(NAMEpurpenv_helper)
70DEF2NAME    := $(SHL2TARGET)
71.IF "$(GUI)$(COM)"=="WNTGCC"
72SHL2VERSIONMAP:=uno_purpenvhelper$(COMID).map
73.ELIF "$(GUI)$(COM)"=="WNTMSC"
74SHL2VERSIONMAP:=$(SHL2TARGET)$(CPU).map
75.ELIF "$(GUI)"=="OS2"
76SHL2VERSIONMAP:=uno_purpenvhelperwntgcc.map
77.ELSE
78SHL2VERSIONMAP:=$(SHL2TARGET).map
79.ENDIF			# "$(GUI)$(COM)"=="WNTGCC"
80SHL2DEF     := $(MISC)$/$(SHL2TARGET).def
81SHL2IMPLIB  := i$(SHL2TARGET)
82SHL2STDLIBS := $(CPPULIB) $(SALLIB)
83SHL2RPATH   := URELIB
84SHL2OBJS    := \
85	$(SLO)$/helper_purpenv_Environment.obj 	\
86	$(SLO)$/helper_purpenv_Mapping.obj      \
87	$(SLO)$/helper_purpenv_Proxy.obj
88
89
90# --- Targets ------------------------------------------------------
91
92.PHONY: ALLTAR
93
94
95ALLTAR:   $(SHL2TARGETN)
96	$(MAKE) $(MAKECMDGOALS) -f extra.mk
97
98
99.INCLUDE :	target.mk
100
101
102$(SHL2TARGETN): $(SHL1TARGETN)
103
104