xref: /aoo42x/main/sal/qa/osl/module/makefile.mk (revision 85328e2a)
17871dc3eSAndrew Rist#**************************************************************
27871dc3eSAndrew Rist#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
107871dc3eSAndrew Rist#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
127871dc3eSAndrew Rist#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
197871dc3eSAndrew Rist#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ=..$/..$/..
25cdf0e10cSrcweir
26cdf0e10cSrcweirPRJNAME=sal
27cdf0e10cSrcweirTARGET=qa_module
28cdf0e10cSrcweir
29cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE
30cdf0e10cSrcweir
31cdf0e10cSrcweir# --- Settings -----------------------------------------------------
32cdf0e10cSrcweir
33cdf0e10cSrcweir.INCLUDE :  settings.mk
34cdf0e10cSrcweir
35*85328e2aSDamjan Jovanovic.IF "$(ENABLE_UNIT_TESTS)" != "YES"
36*85328e2aSDamjan Jovanovicall:
37*85328e2aSDamjan Jovanovic	@echo unit tests are disabled. Nothing to do.
38*85328e2aSDamjan Jovanovic
39*85328e2aSDamjan Jovanovic.ELSE
40*85328e2aSDamjan Jovanovic
41cdf0e10cSrcweirCFLAGS+= $(LFS_CFLAGS)
42cdf0e10cSrcweirCXXFLAGS+= $(LFS_CFLAGS)
43cdf0e10cSrcweir
44cdf0e10cSrcweir# BEGIN ----------------------------------------------------------------
45cdf0e10cSrcweir
46cdf0e10cSrcweir# --- test dll ------------------------------------------------------
47cdf0e10cSrcweirSHL1TARGET     = Module_DLL
48cdf0e10cSrcweirSHL1OBJS       = $(SLO)$/osl_Module_DLL.obj
49cdf0e10cSrcweirSHL1STDLIBS    = $(SALLIB)
50cdf0e10cSrcweirSHL1IMPLIB     = i$(SHL1TARGET)
51cdf0e10cSrcweirSHL1DEF        = $(MISC)$/$(SHL1TARGET).def
52cdf0e10cSrcweirDEF1NAME       = $(SHL1TARGET)
53cdf0e10cSrcweirSHL1VERSIONMAP = export_dll.map
54cdf0e10cSrcweir
55cdf0e10cSrcweir
56cdf0e10cSrcweir# --- main l ------------------------------------------------------
57*85328e2aSDamjan JovanovicAPP2OBJS=  $(SLO)$/osl_Module.obj
58*85328e2aSDamjan JovanovicAPP2TARGET= osl_Module
59*85328e2aSDamjan JovanovicAPP2STDLIBS= $(SALLIB) $(GTESTLIB) $(TESTSHL2LIB)
60cdf0e10cSrcweir
61cdf0e10cSrcweir.IF "$(GUI)" == "WNT"
62*85328e2aSDamjan JovanovicAPP2STDLIBS+=i$(SHL1TARGET).lib
63cdf0e10cSrcweir.ENDIF
64cdf0e10cSrcweir.IF "$(GUI)" == "UNX"
65*85328e2aSDamjan JovanovicAPP2STDLIBS+=-l$(SHL1TARGET)
66cdf0e10cSrcweir.ENDIF
67cdf0e10cSrcweir
68*85328e2aSDamjan JovanovicAPP2DEPN= $(SHL1OBJS)
69*85328e2aSDamjan JovanovicAPP2TEST = enabled
70*85328e2aSDamjan Jovanovic#SHL2IMPLIB= i$(SHL2TARGET)
71*85328e2aSDamjan Jovanovic#SHL2DEF=    $(MISC)$/$(SHL2TARGET).def
72cdf0e10cSrcweir
73*85328e2aSDamjan Jovanovic#DEF2NAME    =$(SHL2TARGET)
74*85328e2aSDamjan Jovanovic#SHL2VERSIONMAP= $(PRJ)$/qa$/export.map
75cdf0e10cSrcweir# END ------------------------------------------------------------------
76cdf0e10cSrcweir
77cdf0e10cSrcweir# --- Targets ------------------------------------------------------
78cdf0e10cSrcweir
79cdf0e10cSrcweir.INCLUDE :  target.mk
80cdf0e10cSrcweir
81*85328e2aSDamjan Jovanovic.ENDIF # "$(ENABLE_UNIT_TESTS)" != "YES"