xref: /aoo41x/main/cppu/util/makefile.mk (revision cdf0e10c)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27PRJ=..
28
29PRJNAME=cppu
30TARGET=cppu
31USE_DEFFILE=TRUE
32ENABLE_EXCEPTIONS=TRUE
33NO_BSYMBOLIC=TRUE
34
35.IF "$(OS)" != "WNT"
36UNIXVERSIONNAMES=UDK
37.ENDIF
38
39
40# --- Settings -----------------------------------------------------
41
42.INCLUDE :  settings.mk
43.INCLUDE : ../source/helper/purpenv/export.mk
44
45# --- Files --------------------------------------------------------
46
47SHL1LIBS= \
48	$(SLB)$/cppu_typelib.lib	\
49	$(SLB)$/cppu_uno.lib		\
50	$(SLB)$/cppu_threadpool.lib	\
51	$(SLB)$/cppu_cppu.lib
52
53.IF "$(GUI)" == "WNT" || "$(GUI)"=="OS2"
54SHL1TARGET=$(TARGET)$(UDK_MAJOR)
55.ELSE
56SHL1TARGET= uno_$(TARGET)
57.ENDIF
58
59SHL1STDLIBS = $(SALLIB)
60
61SHL1DEPN=
62SHL1IMPLIB=i$(TARGET)
63.IF "$(OS)"!="FREEBSD"
64SHL1DEF=$(MISC)$/$(SHL1TARGET).def
65.ENDIF
66
67SHL1VERSIONMAP=$(TARGET).map
68SHL1RPATH=URELIB
69
70DEF1NAME=$(SHL1TARGET)
71
72
73SHL2TARGET  := $(NAMEpurpenv_helper)
74DEF2NAME    := $(SHL2TARGET)
75.IF "$(GUI)$(COM)"=="WNTGCC"
76SHL2VERSIONMAP:=uno_purpenvhelper$(COMID).map
77.ELIF "$(GUI)"=="OS2"
78SHL2VERSIONMAP:=uno_purpenvhelperwntgcc.map
79.ELSE
80SHL2VERSIONMAP:=$(SHL2TARGET).map
81.ENDIF			# "$(GUI)$(COM)"=="WNTGCC"
82SHL2DEF     := $(MISC)$/$(SHL2TARGET).def
83SHL2IMPLIB  := i$(SHL2TARGET)
84SHL2STDLIBS := $(CPPULIB) $(SALLIB)
85SHL2RPATH   := URELIB
86SHL2OBJS    := \
87	$(SLO)$/helper_purpenv_Environment.obj 	\
88	$(SLO)$/helper_purpenv_Mapping.obj      \
89	$(SLO)$/helper_purpenv_Proxy.obj
90
91
92# --- Targets ------------------------------------------------------
93
94.PHONY: ALLTAR
95
96
97ALLTAR:   $(SHL2TARGETN)
98	$(MAKE) $(MAKECMDGOALS) -f extra.mk
99
100
101.INCLUDE :	target.mk
102
103
104$(SHL2TARGETN): $(SHL1TARGETN)
105
106