test/Makefile

changeset 152
3238f65db163
parent 142
ee8cb27d8b8e
child 154
8346aebfbb7b
equal deleted inserted replaced
151:fc8d05972af7 152:3238f65db163
24 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 # POSSIBILITY OF SUCH DAMAGE. 26 # POSSIBILITY OF SUCH DAMAGE.
27 # 27 #
28 28
29 include ../unix.mk
29 include ../$(CONF).mk 30 include ../$(CONF).mk
30 31
31 SRC = main.c 32 SRC = main.c
32 SRC += list_tests.c 33 SRC += list_tests.c
33 SRC += mpool_tests.c 34 SRC += mpool_tests.c
36 SRC += string_tests.c 37 SRC += string_tests.c
37 SRC += logging_tests.c 38 SRC += logging_tests.c
38 SRC += buffer_tests.c 39 SRC += buffer_tests.c
39 SRC += utils_tests.c 40 SRC += utils_tests.c
40 41
41 OBJ = $(SRC:%.c=../build/%.$(OBJ_EXT)) 42 OBJ = $(SRC:%.c=../build/%$(OBJ_EXT))
42 43
43 all: ../build/test1 44 all: $(OBJ)
45 $(LD) $(LDFLAGS) $(LOFLAGS)../build/test$(APP_EXT) $(OBJ) \
46 ../build/libucx$(LIB_EXT)
44 47
45 ../build/test1: $(OBJ) 48 ../build/%$(OBJ_EXT): %.c | ../build
46 $(LD) $(LDFLAGS) $(LOFLAGS)../build/test$(APP_EXT) $(OBJ) \
47 ../build/libucx.$(LIB_EXT)
48
49 ../build/%.$(OBJ_EXT): %.c ../build
50 $(CC) $(CFLAGS) -I../ $(COFLAGS)$@ $< 49 $(CC) $(CFLAGS) -I../ $(COFLAGS)$@ $<
51 50
52 ../build: 51 ../build:
53 mkdir -p build 52 $(MKDIR) $(MKDIRFLAGS) build

mercurial