mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-26 23:31:55 -08:00
Use MPS_ARGS_BEGIN etc in the Scheme example and in the manual. Use MPS_BEGIN and MPS_END instead of BEGIN and END. The _FIELD macros don't need to be function-like macros. Restore TODO comments in mps.h. Scheme example compiles with -std=c89. Copied from Perforce Change: 181749 ServerID: perforce.ravenbrook.com
32 lines
667 B
Makefile
32 lines
667 B
Makefile
# example/scheme/Makefile -- Makefile for the MPS Scheme example
|
|
#
|
|
# $Id$
|
|
|
|
# -fno-inline-functions is a temporary workaround for job003359.
|
|
CFLAGS = @CFLAGS@ @CPPFLAGS@ @LDFLAGS@ -std=c89 -fno-inline-functions
|
|
|
|
MPS = ../../code
|
|
|
|
TARGETS = scheme-malloc scheme scheme-advanced
|
|
|
|
TESTS = r5rs mps
|
|
|
|
all: $(TARGETS)
|
|
|
|
$(TARGETS): %: %.c Makefile
|
|
$(CC) $(CFLAGS) -o $@ -I $(MPS) $< $(MPS)/mps.c
|
|
|
|
|
|
scheme-boehm: %: %.c Makefile
|
|
$(CC) $(CFLAGS) -o $@ $< -lgc
|
|
|
|
clean:
|
|
rm -f $(TARGETS) scheme-boehm
|
|
|
|
test: $(TARGETS)
|
|
@for TARGET in $(TARGETS); do \
|
|
for TEST in $(TESTS); do \
|
|
echo "$$TARGET $$TEST:"; \
|
|
./$$TARGET test-$$TEST.scm || exit; \
|
|
done \
|
|
done
|