/[cvs]/stack/Makefile
ViewVC logotype

Diff of /stack/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by teddy, Sun Mar 10 07:55:13 2002 UTC revision 1.10 by teddy, Sun Mar 10 13:26:44 2002 UTC
# Line 27  SHELL = /bin/sh Line 27  SHELL = /bin/sh
27  .SUFFIXES: .c .o  .SUFFIXES: .c .o
28  ##  ##
29    
30  CFLAGS=-Wall -g  #CFLAGS=-Wall -g -O0 -pg -fprofile-arcs -ftest-coverage
31    CFLAGS=-Wall -g -O0
32  LDFLAGS=-ldl -lmcheck -Xlinker --export-dynamic  LDFLAGS=-ldl -lmcheck -Xlinker --export-dynamic
33    
34  all: stack TAGS  all: stack TAGS
35    
36  stack: stack.c stack.h  stack: stack.c stack.h
37          $(CC) -I$(srcdir) $(CFLAGS) $(LDFLAGS) -pg stack.c -o $@          $(CC) -I$(srcdir) $(CFLAGS) $(LDFLAGS) stack.c -o $@
38    
39  mtrace: stack  mtrace: stack
40          MALLOC_TRACE=mtrace.log ./stack          MALLOC_TRACE=mtrace.log ./stack
41          mtrace stack mtrace.log          mtrace stack mtrace.log
42    
43  check:  stack  check:  stack
44          [ $(shell ./fib.st) = 832040 ]          [ $(shell ./fib.st) = 6765 ]
45    
46  TAGS: $(shell find . -iname "*.[ch]" -print)  TAGS: $(shell find . -iname "*.[ch]" -print)
47          etags $^          etags $^

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.10

root@recompile.se
ViewVC Help
Powered by ViewVC 1.1.26