42 |
$(CC) -I$(srcdir) $(LDFLAGS) $(CFLAGS) stack.c -o stack |
$(CC) -I$(srcdir) $(LDFLAGS) $(CFLAGS) stack.c -o stack |
43 |
|
|
44 |
check: stack |
check: stack |
45 |
[ $(shell $(srcdir)/fib.st) = 6765 ] |
@echo Checking... |
46 |
|
@$(SHELL) -c 'a="`$(srcdir)/fib.st`"; set -x; [ "$$a" = 6765 ]' |
47 |
|
@$(SHELL) -c 'a="`$(srcdir)/fib2.st`"; set -x; [ "$$a" = 6765 ]' |
48 |
|
@$(SHELL) -c 'a="`echo '\''[ 1 2 ] a def; a rcl; a rcl; setcar; print;'\'' | ./stack | dd count=1 2>/dev/null`"; set -x; [ "$$a" = "[ #0# 2 ]" ]' |
49 |
|
@$(SHELL) -c 'a="`echo '\''[ 1 2 ] a def; a rcl; a rcl; setcdr; print;'\'' | ./stack | dd count=1 2>/dev/null`"; set -x; [ "$$a" = "[ 1 . #0# ]" ]' |
50 |
|
|
51 |
TAGS: $(shell find $(srcdir) -path $(srcdir)/CVS -prune -o -name "*.[ch]" -print) |
TAGS: $(shell find $(srcdir) -path $(srcdir)/CVS -prune -o -name "*.[ch]" -print) |
52 |
etags $^ |
etags $^ |
53 |
|
|
54 |
clean: |
clean: |
55 |
rm -f mtrace.log stack.bb stack.bbg stack.da stack.c.gcov stack TAGS |
rm -f gmon.out mtrace.log stack.bb stack.bbg stack.da stack.c.gcov stack TAGS |
56 |
|
|
57 |
mtrace: stack |
mtrace: stack |
58 |
MALLOC_TRACE=mtrace.log ./stack |
MALLOC_TRACE=mtrace.log ./stack |