ucx/Makefile

Thu, 08 Sep 2016 15:12:56 +0200

author
Mike Becker <universe@uap-core.de>
date
Thu, 08 Sep 2016 15:12:56 +0200
changeset 225
a1a068c2c4ef
parent 192
1e51558b9d09
child 246
21bb9849a765
permissions
-rw-r--r--

updates documenting comments

olaf@0 1 #
olaf@0 2 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
olaf@0 3 #
universe@225 4 # Copyright 2016 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
olaf@0 31 # list of source files
universe@94 32 SRC = utils.c
universe@122 33 SRC += list.c
universe@54 34 SRC += map.c
universe@192 35 SRC += avl.c
olaf@108 36 SRC += properties.c
universe@54 37 SRC += mempool.c
universe@54 38 SRC += string.c
universe@54 39 SRC += test.c
universe@54 40 SRC += allocator.c
universe@54 41 SRC += logging.c
universe@60 42 SRC += buffer.c
universe@182 43 SRC += stack.c
olaf@0 44
universe@155 45 OBJ = $(SRC:%.c=../build/release/ucx/%$(OBJ_EXT))
universe@155 46 OBJ_D = $(SRC:%.c=../build/debug/ucx/%$(OBJ_EXT))
olaf@0 47
universe@156 48 all: ../build/release/ucx \
universe@156 49 ../build/release/libucx$(LIB_EXT) ../build/release/libucx$(SO_EXT)
universe@156 50 debug: ../build/debug/ucx \
universe@156 51 ../build/debug/libucx$(LIB_EXT) ../build/debug/libucx$(SO_EXT)
olaf@0 52
universe@155 53 ../build/release/libucx$(LIB_EXT): $(OBJ)
universe@156 54 $(AR) $(ARFLAGS) ../build/release/libucx$(LIB_EXT) $(OBJ)
universe@156 55
universe@156 56 ../build/release/libucx$(SO_EXT): $(OBJ)
universe@156 57 $(LD) $(SOLDFLAGS) -o ../build/release/libucx$(SO_EXT) $(OBJ)
olaf@0 58
universe@155 59 ../build/release/ucx/%$(OBJ_EXT): %.c
universe@156 60 $(CC) $(CFLAGS) -o $@ -c $<
olaf@0 61
universe@155 62 ../build/release/ucx:
universe@155 63 $(MKDIR) $(MKDIRFLAGS) ../build/release/ucx
universe@155 64
universe@155 65 ../build/debug/libucx$(LIB_EXT): $(OBJ_D)
universe@156 66 $(AR) $(ARFLAGS) ../build/debug/libucx$(LIB_EXT) $(OBJ_D)
universe@156 67
universe@156 68 ../build/debug/libucx$(SO_EXT): $(OBJ_D)
universe@156 69 $(LD) $(SOLDFLAGS) -o ../build/debug/libucx$(SO_EXT) $(OBJ_D)
universe@155 70
universe@155 71 ../build/debug/ucx/%$(OBJ_EXT): %.c
universe@156 72 $(CC) $(CFLAGS_D) -o $@ -c $<
universe@155 73
universe@155 74 ../build/debug/ucx:
universe@155 75 $(MKDIR) $(MKDIRFLAGS) ../build/debug/ucx

mercurial