xref: /aoo42x/main/salhelper/test/rtti/makefile.mk (revision 7871dc3e)
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=	salhelper
26TARGET=		rtti
27TARGET1=samplelibrtti
28LIBTARGET=NO
29TARGETTYPE=CUI
30
31
32ENABLE_EXCEPTIONS=TRUE
33
34USE_DEFFILE=	TRUE
35
36# --- Settings -----------------------------------------------------
37
38.INCLUDE :  settings.mk
39
40# --- Files --------------------------------------------------------
41
42#RTTI on
43.IF "$(OS)" == "WNT"
44CFLAGS+= -GR
45.ENDIF
46
47SLOFILES=	\
48		$(SLO)$/samplelibrtti.obj
49
50LIB1TARGET=$(SLB)$/$(TARGET1).lib
51LIB1OBJFILES= \
52		$(SLO)$/samplelibrtti.obj
53
54SHL1TARGET=	$(TARGET1)
55
56SHL1STDLIBS= \
57		$(CPPULIB)		\
58		$(CPPUHELPERLIB)	\
59		$(SALLIB)
60
61
62SHL1DEPN=
63SHL1IMPLIB=	i$(TARGET1)
64SHL1LIBS=	$(SLB)$/$(TARGET1).lib
65SHL1DEF=	$(MISC)$/$(SHL1TARGET).def
66DEF1EXPORTFILE=	exports.dxp
67
68DEF1NAME=	$(SHL1TARGET)
69
70.IF "$(OS)$(CPU)"=="SOLARISS"
71SHL1VERSIONMAP=	sols.map
72.ELIF "$(OS)$(CPU)"=="LINUXI"
73SHL1VERSIONMAP= lngi.map
74.ELIF "$(OS)$(CPU)$(COMNAME)" == "GCCFREEBSDIgcc2"
75SHL1VERSIONMAP= gcc2_freebsd_intel.map
76.ELIF "$(OS)$(CPU)$(COMNAME)" == "GCCFREEBSDIgcc3"
77SHL1VERSIONMAP= gcc3_freebsd_intel.map
78.ENDIF
79
80
81# ------------------------------------------------------------------
82
83APP1NOSAL=TRUE
84
85APP1TARGET=	$(TARGET)
86
87APP1OBJS=	$(OBJ)$/rttitest.obj
88
89APP1STDLIBS= \
90	$(SALLIB) \
91	$(CPPUHELPERLIB) \
92	$(CPPULIB)
93
94.IF "$(OS)" == "WNT"
95APP1STDLIBS+=	$(LB)$/isamplelibrtti.lib
96.ELSE
97APP1STDLIBS+=	-lsamplelibrtti
98.ENDIF
99
100# --- Targets ------------------------------------------------------
101
102.INCLUDE :	target.mk
103
104