xref: /trunk/main/cppu/qa/makefile.mk (revision 31bbceb0f9d64c0c2c3b22a794a1666c1f33396e)
17871dc3eSAndrew Rist#**************************************************************
2cdf0e10cSrcweir#
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
10cdf0e10cSrcweir#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir#
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.
19cdf0e10cSrcweir#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ := ..
25cdf0e10cSrcweirPRJNAME := cppu
26cdf0e10cSrcweirTARGET := qa
27cdf0e10cSrcweir
28cdf0e10cSrcweirENABLE_EXCEPTIONS := TRUE
29cdf0e10cSrcweir
30cdf0e10cSrcweir.INCLUDE: settings.mk
31cdf0e10cSrcweir
324ad76906SDamjan Jovanovic.IF "$(ENABLE_UNIT_TESTS)" != "YES"
334ad76906SDamjan Jovanovicall:
344ad76906SDamjan Jovanovic    @echo unit tests are disabled. Nothing to do.
35cdf0e10cSrcweir
364ad76906SDamjan Jovanovic.ELSE
374ad76906SDamjan Jovanovic
38cdf0e10cSrcweir
39cdf0e10cSrcweirINCPRE += $(MISC)$/$(TARGET)$/inc
40cdf0e10cSrcweir
414ad76906SDamjan JovanovicAPP1TARGET = $(TARGET)_any
424ad76906SDamjan JovanovicAPP1OBJS = $(SLO)$/test_any.obj $(SLO)$/main.obj
434ad76906SDamjan JovanovicAPP1STDLIBS = $(CPPULIB) $(GTESTLIB) $(TESTSHL2LIB) $(SALLIB)
444ad76906SDamjan JovanovicAPP1RPATH = NONE
454ad76906SDamjan JovanovicAPP1TEST = enabled
46cdf0e10cSrcweir
474ad76906SDamjan JovanovicAPP2TARGET = $(TARGET)_unotype
484ad76906SDamjan JovanovicAPP2OBJS = $(SLO)$/test_unotype.obj $(SLO)$/main.obj
494ad76906SDamjan JovanovicAPP2STDLIBS = $(CPPULIB) $(GTESTLIB) $(TESTSHL2LIB) $(SALLIB)
504ad76906SDamjan JovanovicAPP2RPATH = NONE
514ad76906SDamjan JovanovicAPP2TEST = enabled
52cdf0e10cSrcweir
534ad76906SDamjan JovanovicAPP3TARGET = $(TARGET)_reference
544ad76906SDamjan JovanovicAPP3OBJS = $(SLO)$/test_reference.obj $(SLO)$/main.obj
554ad76906SDamjan JovanovicAPP3STDLIBS = $(CPPULIB) $(GTESTLIB) $(TESTSHL2LIB) $(SALLIB)
564ad76906SDamjan JovanovicAPP3RPATH = NONE
574ad76906SDamjan JovanovicAPP3TEST = enabled
58cdf0e10cSrcweir
594ad76906SDamjan JovanovicAPP4TARGET = $(TARGET)_recursion
604ad76906SDamjan JovanovicAPP4OBJS = $(SLO)$/test_recursion.obj $(SLO)$/main.obj
614ad76906SDamjan JovanovicAPP4STDLIBS = $(CPPULIB) $(GTESTLIB) $(TESTSHL2LIB) $(SALLIB)
624ad76906SDamjan JovanovicAPP4RPATH = NONE
634ad76906SDamjan JovanovicAPP4TEST = enabled
64cdf0e10cSrcweir
65cdf0e10cSrcweir.INCLUDE: target.mk
66cdf0e10cSrcweir
674ad76906SDamjan Jovanovic$(APP1OBJS): $(MISC)$/$(TARGET).cppumaker.flag
68*384460b6SDamjan Jovanovic$(APP2OBJS): $(MISC)$/$(TARGET).cppumaker.flag
69*384460b6SDamjan Jovanovic$(APP3OBJS): $(MISC)$/$(TARGET).cppumaker.flag
70*384460b6SDamjan Jovanovic$(APP4OBJS): $(MISC)$/$(TARGET).cppumaker.flag
71cdf0e10cSrcweir
72cdf0e10cSrcweir$(MISC)$/$(TARGET).cppumaker.flag: $(MISC)$/$(TARGET).rdb
73cdf0e10cSrcweir    - $(MKDIRHIER) $(MISC)$/$(TARGET)$/inc
74cdf0e10cSrcweir    $(CPPUMAKER) -O$(MISC)$/$(TARGET)$/inc -BUCR -C $< \
75cdf0e10cSrcweir        $(SOLARBINDIR)$/udkapi.rdb
76cdf0e10cSrcweir    $(TOUCH) $@
77cdf0e10cSrcweir
78cdf0e10cSrcweir$(MISC)$/$(TARGET).rdb: $(MISC)$/$(TARGET)$/types.urd
79cdf0e10cSrcweir    - rm $@
80cdf0e10cSrcweir    $(REGMERGE) $@ /UCR $<
81cdf0e10cSrcweir
82cdf0e10cSrcweir$(MISC)$/$(TARGET)$/types.urd: types.idl
83cdf0e10cSrcweir    - $(MKDIR) $(MISC)$/$(TARGET)
84cdf0e10cSrcweir    $(IDLC) -O$(MISC)$/$(TARGET) -I$(SOLARIDLDIR) -cid -we $<
85cdf0e10cSrcweir
864ad76906SDamjan Jovanovic.ENDIF # "$(ENABLE_UNIT_TESTS)" != "YES"
87