--- stack/Makefile 2002/03/10 06:00:01 1.6 +++ stack/Makefile 2002/03/10 08:48:56 1.9 @@ -27,20 +27,20 @@ .SUFFIXES: .c .o ## -CFLAGS=-Wall -g +CFLAGS=-Wall -g -O0 LDFLAGS=-ldl -lmcheck -Xlinker --export-dynamic all: stack TAGS stack: stack.c stack.h - $(CC) -I$(srcdir) $(CFLAGS) $(LDFLAGS) stack.c -o $@ + $(CC) -I$(srcdir) $(CFLAGS) $(LDFLAGS) -pg stack.c -o $@ mtrace: stack MALLOC_TRACE=mtrace.log ./stack mtrace stack mtrace.log check: stack - [ $(shell ./fib.st) = 832040 ] + [ $(shell ./fib.st) = 610 ] TAGS: $(shell find . -iname "*.[ch]" -print) etags $^