merged tag ooo/DEV300_m102
[LibreOffice.git] / cppu / util / makefile.mk
blob2e52c28b5193c201f1ff44c9d368764b67ca5847
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
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.
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).
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.
26 #*************************************************************************
27 PRJ=..
29 PRJNAME=cppu
30 TARGET=cppu
31 USE_DEFFILE=TRUE
32 ENABLE_EXCEPTIONS=TRUE
33 NO_BSYMBOLIC=TRUE
35 .IF "$(OS)" != "WNT"
36 UNIXVERSIONNAMES=UDK
37 .ENDIF
40 # --- Settings -----------------------------------------------------
42 .INCLUDE : settings.mk
43 .INCLUDE : ../source/helper/purpenv/export.mk
45 # --- Files --------------------------------------------------------
47 SHL1LIBS= \
48 $(SLB)$/cppu_typelib.lib \
49 $(SLB)$/cppu_uno.lib \
50 $(SLB)$/cppu_threadpool.lib \
51 $(SLB)$/cppu_cppu.lib
53 .IF "$(GUI)" == "WNT" || "$(GUI)"=="OS2"
54 SHL1TARGET=$(TARGET)$(UDK_MAJOR)
55 .ELSE
56 SHL1TARGET= uno_$(TARGET)
57 .ENDIF
59 SHL1STDLIBS = $(SALLIB)
61 SHL1DEPN=
62 SHL1IMPLIB=i$(TARGET)
63 .IF "$(OS)"!="FREEBSD"
64 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
65 .ENDIF
67 SHL1VERSIONMAP=$(TARGET).map
68 SHL1RPATH=URELIB
70 DEF1NAME=$(SHL1TARGET)
73 SHL2TARGET := $(NAMEpurpenv_helper)
74 DEF2NAME := $(SHL2TARGET)
75 .IF "$(GUI)$(COM)"=="WNTGCC"
76 SHL2VERSIONMAP:=uno_purpenvhelper$(COMID).map
77 .ELIF "$(GUI)"=="OS2"
78 SHL2VERSIONMAP:=uno_purpenvhelperwntgcc.map
79 .ELSE
80 SHL2VERSIONMAP:=$(SHL2TARGET).map
81 .ENDIF # "$(GUI)$(COM)"=="WNTGCC"
82 SHL2DEF := $(MISC)$/$(SHL2TARGET).def
83 SHL2IMPLIB := i$(SHL2TARGET)
84 SHL2STDLIBS := $(CPPULIB) $(SALLIB)
85 SHL2RPATH := URELIB
86 SHL2OBJS := \
87 $(SLO)$/helper_purpenv_Environment.obj \
88 $(SLO)$/helper_purpenv_Mapping.obj \
89 $(SLO)$/helper_purpenv_Proxy.obj
92 # --- Targets ------------------------------------------------------
94 .PHONY: ALLTAR
97 ALLTAR: $(SHL2TARGETN)
98 $(MAKE) $(MAKECMDGOALS) -f extra.mk
101 .INCLUDE : target.mk
104 $(SHL2TARGETN): $(SHL1TARGETN)