source: trunk/test.mak @ 49

Last change on this file since 49 was 49, checked in by moo, 8 years ago

big diff yet small change: fix ran into outside of shared memory. and commit the test that figure it out.
valgrind rocks even for our code for shared memory.

  • Property svn:executable set to *
File size: 223 bytes
Line 
1#!/usr/bin/make -f
2
3EXES=mem_test
4OBJS=mem.o
5CC=gcc
6CFLAGS=-g -O0 -D TEST -Wall
7TEST=valgrind
8
9all: mem
10
11mem_test: mem.c
12    $(CC) $(CFLAGS) -o mem_test mem.c
13   
14mem: mem_test
15    $(TEST) ./mem_test
16
17clean:
18    rm -f $(OBJS) $(EXES)
Note: See TracBrowser for help on using the repository browser.