source: trunk/devel/test.mak

Last change on this file was 1551, checked in by moo, 2 weeks ago

merge stack/vector to 1 impl, avoid possible memory leak using malloc

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 643 bytes
Line 
1#! /usr/bin/make -f
2
3CC=gcc
4LDFLAGS=
5CFLAGS=-g -O0 -I. -D TEST -D HAVE_XCACHE_TEST -Wall
6TEST=valgrind
7
8all: allocator vector
9
10allocator_test: xcache/xc_allocator.h xcache/xc_allocator.c xcache/xc_malloc.c xcache/xc_allocator_bestfit.c util/xc_trace.c util/xc_trace.h
11    $(CC) $(LDFLAGS) $(CFLAGS) -o allocator_test xcache/xc_allocator.c xcache/xc_malloc.c xcache/xc_allocator_bestfit.c util/xc_trace.c
12   
13allocator: allocator_test
14    $(TEST) ./allocator_test
15
16vector_test: util/xc_vector_test.c
17    $(CC) $(LDFLAGS) $(CFLAGS) -o vector_test util/xc_vector_test.c
18   
19vector: vector_test
20    $(TEST) ./vector_test
21
22clean:
23    rm -f allocator_test vector_test
Note: See TracBrowser for help on using the repository browser.