--- stack/Makefile 2002/03/07 03:28:29 1.5 +++ stack/Makefile 2002/03/10 13:26:44 1.10 @@ -27,10 +27,11 @@ .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 +all: stack TAGS stack: stack.c stack.h $(CC) -I$(srcdir) $(CFLAGS) $(LDFLAGS) stack.c -o $@ @@ -40,4 +41,7 @@ mtrace stack mtrace.log check: stack - [ $(shell ./fib.st) = 832040 ] + [ $(shell ./fib.st) = 6765 ] + +TAGS: $(shell find . -iname "*.[ch]" -print) + etags $^