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 23 24PRJ := .. 25PRJNAME := cppu 26TARGET := qa 27 28ENABLE_EXCEPTIONS := TRUE 29 30.INCLUDE: settings.mk 31 32CFLAGSCXX += $(CPPUNIT_CFLAGS) 33 34DLLPRE = # no leading "lib" on .so files 35 36INCPRE += $(MISC)$/$(TARGET)$/inc 37 38SHL1TARGET = $(TARGET)_any 39SHL1OBJS = $(SLO)$/test_any.obj 40SHL1STDLIBS = $(CPPULIB) $(CPPUNITLIB) $(TESTSHL2LIB) $(SALLIB) 41SHL1VERSIONMAP = version.map 42SHL1IMPLIB = i$(SHL1TARGET) 43DEF1NAME = $(SHL1TARGET) 44 45SHL2TARGET = $(TARGET)_unotype 46SHL2OBJS = $(SLO)$/test_unotype.obj 47SHL2STDLIBS = $(CPPULIB) $(CPPUNITLIB) $(TESTSHL2LIB) $(SALLIB) 48SHL2VERSIONMAP = version.map 49SHL2IMPLIB = i$(SHL2TARGET) 50DEF2NAME = $(SHL2TARGET) 51 52SHL3TARGET = $(TARGET)_reference 53SHL3OBJS = $(SLO)$/test_reference.obj 54SHL3STDLIBS = $(CPPULIB) $(CPPUNITLIB) $(TESTSHL2LIB) $(SALLIB) 55SHL3VERSIONMAP = version.map 56SHL3IMPLIB = i$(SHL3TARGET) 57DEF3NAME = $(SHL3TARGET) 58 59SHL4TARGET = $(TARGET)_recursion 60SHL4OBJS = $(SLO)$/test_recursion.obj 61SHL4STDLIBS = $(CPPULIB) $(CPPUNITLIB) $(TESTSHL2LIB) $(SALLIB) 62SHL4VERSIONMAP = version.map 63SHL4IMPLIB = i$(SHL4TARGET) 64DEF4NAME = $(SHL4TARGET) 65 66SLOFILES = $(SHL1OBJS) $(SHL2OBJS) $(SHL3OBJS) $(SHL4OBJS) 67 68.INCLUDE: target.mk 69 70ALLTAR: test 71 72$(SHL1OBJS): $(MISC)$/$(TARGET).cppumaker.flag 73 74$(MISC)$/$(TARGET).cppumaker.flag: $(MISC)$/$(TARGET).rdb 75 - $(MKDIRHIER) $(MISC)$/$(TARGET)$/inc 76 $(CPPUMAKER) -O$(MISC)$/$(TARGET)$/inc -BUCR -C $< \ 77 $(SOLARBINDIR)$/udkapi.rdb 78 $(TOUCH) $@ 79 80$(MISC)$/$(TARGET).rdb: $(MISC)$/$(TARGET)$/types.urd 81 - rm $@ 82 $(REGMERGE) $@ /UCR $< 83 84$(MISC)$/$(TARGET)$/types.urd: types.idl 85 - $(MKDIR) $(MISC)$/$(TARGET) 86 $(IDLC) -O$(MISC)$/$(TARGET) -I$(SOLARIDLDIR) -cid -we $< 87 88test .PHONY: $(SHL1TARGETN) $(SHL2TARGETN) $(SHL3TARGETN) $(SHL4TARGETN) 89 $(TESTSHL2) $(SHL1TARGETN) 90 $(TESTSHL2) $(SHL2TARGETN) 91 $(TESTSHL2) $(SHL3TARGETN) 92 $(TESTSHL2) $(SHL4TARGETN) 93