1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-20 19:42:53 -08:00
emacs/mps/example/scheme/Makefile.in
Helmut Eller 1507199e35 Support out-of-tree builds
* mps/example/scheme/Makefile.in (VPATH): Set VPATH.
* mps/Makefile.in (COMMON_OPTS): New.  Pass SRCDIR down to sub-make.
* mps/code/comm.gmk (VPATH): Set VPATH from SRCDIR parameter
* mps/configure.ac (AC_CONFIG_COMMANDS): Copy .gmk makefiles and some
other things to the biuld directory.
2025-09-22 16:56:02 +02:00

32 lines
606 B
Makefile

# example/scheme/Makefile -- Makefile for the MPS Scheme example
#
# $Id$
CFLAGS = @CFLAGS@ @CPPFLAGS@ @LDFLAGS@ -std=c99
MPS = @srcdir@/../../code
VPATH = @srcdir@
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