|
Last change
on this file since 604 was
604,
checked in by moo, 4 years ago
|
|
set svn:eol-style to native
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
|
File size:
271 bytes
|
| Line | |
|---|
| 1 | #! /usr/bin/make -f |
|---|
| 2 | |
|---|
| 3 | EXES=mem_test |
|---|
| 4 | OBJS=mem.o |
|---|
| 5 | CC=gcc |
|---|
| 6 | CFLAGS=-g -O0 -D TEST -Wall |
|---|
| 7 | TEST=valgrind |
|---|
| 8 | |
|---|
| 9 | all: mem |
|---|
| 10 | |
|---|
| 11 | mem_test: mem.c |
|---|
| 12 | $(CC) $(CFLAGS) -o mem_test mem.c |
|---|
| 13 | |
|---|
| 14 | mem: mem_test |
|---|
| 15 | $(TEST) ./mem_test |
|---|
| 16 | |
|---|
| 17 | clean: |
|---|
| 18 | rm -f $(OBJS) $(EXES) |
|---|
| 19 | |
|---|
| 20 | leakcheck: |
|---|
| 21 | valgrind php -c test.ini test.ini |
|---|
Note: See
TracBrowser
for help on using the repository browser.