test/Makefile

Mon, 28 Jul 2014 14:36:25 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 28 Jul 2014 14:36:25 +0200
changeset 185
a48428642b4e
parent 177
11ad03783baf
child 192
1e51558b9d09
permissions
-rw-r--r--

added stack implementation + added g++ config and added some fixes for C++

olaf@0 1 #
olaf@0 2 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
olaf@0 3 #
universe@177 4 # Copyright 2014 Olaf Wintermann. All rights reserved.
olaf@0 5 #
olaf@0 6 # Redistribution and use in source and binary forms, with or without
olaf@0 7 # modification, are permitted provided that the following conditions are met:
olaf@0 8 #
olaf@0 9 # 1. Redistributions of source code must retain the above copyright
olaf@0 10 # notice, this list of conditions and the following disclaimer.
olaf@0 11 #
olaf@0 12 # 2. Redistributions in binary form must reproduce the above copyright
olaf@0 13 # notice, this list of conditions and the following disclaimer in the
olaf@0 14 # documentation and/or other materials provided with the distribution.
olaf@0 15 #
olaf@0 16 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
olaf@0 17 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
olaf@0 18 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
olaf@0 19 # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
olaf@0 20 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
olaf@0 21 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
olaf@0 22 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
olaf@0 23 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
olaf@0 24 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
olaf@0 25 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
olaf@0 26 # POSSIBILITY OF SUCH DAMAGE.
olaf@0 27 #
olaf@0 28
olaf@0 29 include ../$(CONF).mk
olaf@0 30
universe@54 31 SRC = main.c
universe@164 32 SRC += allocator_tests.c
universe@122 33 SRC += list_tests.c
universe@54 34 SRC += mpool_tests.c
universe@185 35 SRC += stack_tests.c
universe@54 36 SRC += map_tests.c
olaf@108 37 SRC += prop_tests.c
universe@54 38 SRC += string_tests.c
universe@54 39 SRC += logging_tests.c
universe@60 40 SRC += buffer_tests.c
olaf@142 41 SRC += utils_tests.c
olaf@0 42
universe@155 43 OBJ = $(SRC:%.c=../build/release/test/%$(OBJ_EXT))
universe@155 44 OBJ_D = $(SRC:%.c=../build/debug/test/%$(OBJ_EXT))
olaf@0 45
universe@155 46 all: ../build/release/test ../build/release/test/ucxtest$(APP_EXT)
universe@155 47 debug: ../build/debug/test ../build/debug/test/ucxtest$(APP_EXT)
olaf@154 48
universe@155 49 ../build/release/test/ucxtest$(APP_EXT): $(OBJ)
universe@156 50 $(LD) $(LDFLAGS) -o ../build/release/test/ucxtest$(APP_EXT) \
universe@155 51 $(OBJ) ../build/release/libucx$(LIB_EXT)
olaf@0 52
universe@155 53 ../build/release/test/%$(OBJ_EXT): %.c
universe@156 54 $(CC) $(CFLAGS) -I../ -o $@ -c $<
olaf@0 55
universe@155 56 ../build/release/test:
universe@155 57 $(MKDIR) $(MKDIRFLAGS) ../build/release/test
universe@155 58
universe@155 59 ../build/debug/test/ucxtest$(APP_EXT): $(OBJ_D)
universe@156 60 $(LD) $(LDFLAGS) -o ../build/debug/test/ucxtest$(APP_EXT) \
universe@155 61 $(OBJ_D) ../build/debug/libucx$(LIB_EXT)
universe@155 62
universe@155 63 ../build/debug/test/%$(OBJ_EXT): %.c
universe@156 64 $(CC) $(CFLAGS_D) -I../ -o $@ -c $<
universe@155 65
universe@155 66 ../build/debug/test:
universe@155 67 $(MKDIR) $(MKDIRFLAGS) ../build/debug/test

mercurial