1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 07:11:34 -08:00
emacs/mps/example/scheme/Makefile.in
Gareth Rees 1cea0ed1f6 Prefer -pthread to -lpthread.
Copied from Perforce
 Change: 182550
 ServerID: perforce.ravenbrook.com
2013-06-05 17:46:51 +01:00

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=c99 -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