2006-05-31 01:20:18 +00:00
|
|
|
#! /usr/bin/make -f
|
2006-05-30 02:05:58 +00:00
|
|
|
|
2012-08-09 09:04:02 +00:00
|
|
|
EXES=allocator_test
|
|
|
|
OBJS=allocator.o
|
2006-05-30 02:05:58 +00:00
|
|
|
CC=gcc
|
2012-08-09 09:04:02 +00:00
|
|
|
CFLAGS=-g -O0 -I. -D TEST -D HAVE_XCACHE_TEST -Wall
|
2006-05-30 02:05:58 +00:00
|
|
|
TEST=valgrind
|
|
|
|
|
2012-08-09 09:04:02 +00:00
|
|
|
all: allocator
|
2006-05-30 02:05:58 +00:00
|
|
|
|
2012-08-09 09:04:02 +00:00
|
|
|
allocator_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
|
|
|
|
$(CC) $(CFLAGS) -o allocator_test xcache/xc_allocator.c xcache/xc_malloc.c xcache/xc_allocator_bestfit.c util/xc_trace.c
|
2006-05-30 02:05:58 +00:00
|
|
|
|
2012-08-09 09:04:02 +00:00
|
|
|
allocator: allocator_test
|
|
|
|
$(TEST) ./allocator_test
|
2006-05-30 02:05:58 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJS) $(EXES)
|