--- stack/Makefile 2002/03/10 07:55:13 1.7 +++ stack/Makefile 2002/03/10 13:26:44 1.10 @@ -27,20 +27,21 @@ .SUFFIXES: .c .o ## -CFLAGS=-Wall -g +#CFLAGS=-Wall -g -O0 -pg -fprofile-arcs -ftest-coverage +CFLAGS=-Wall -g -O0 LDFLAGS=-ldl -lmcheck -Xlinker --export-dynamic all: stack TAGS stack: stack.c stack.h - $(CC) -I$(srcdir) $(CFLAGS) $(LDFLAGS) -pg stack.c -o $@ + $(CC) -I$(srcdir) $(CFLAGS) $(LDFLAGS) stack.c -o $@ mtrace: stack MALLOC_TRACE=mtrace.log ./stack mtrace stack mtrace.log check: stack - [ $(shell ./fib.st) = 832040 ] + [ $(shell ./fib.st) = 6765 ] TAGS: $(shell find . -iname "*.[ch]" -print) etags $^