makefile.mk (7871dc3e) makefile.mk (4ad76906)
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

--- 15 unchanged lines hidden (view full) ---

24PRJ := ..
25PRJNAME := cppu
26TARGET := qa
27
28ENABLE_EXCEPTIONS := TRUE
29
30.INCLUDE: settings.mk
31
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

--- 15 unchanged lines hidden (view full) ---

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