# sc_vm2/ m_C := vm2.c m_TARGET := sc_vm2 m_DEPS := sc ex leaf m_LDFLAGS := -lpthread # Boot file comes from VM1 SC_VM2 := $(m_NAME)/sc_vm2 SC_VM2_BOOT := $(SRCDIR)/sc_vm1/boot.scm # The test is run in the source directory to have easy access to .scm # files from the console. (Since this rule depends on m_NAME # it's stored in a variable.) SC_VM2_TEST_CMD := \ cd $(SRCDIR)/$(m_NAME); \ gdb -x $(SRCDIR)/bin/run.gdb \ --args $(BUILDDIR)/$(SC_VM2) \ --boot $(SC_VM2_BOOT) \ --eval '(begin (load "vm1vm2.scm") (repl))' .PHONY: sc_vm2_test sv_vm2_all: $(SC_VM2) sc_vm2_test: $(SC_VM2) $(SC_VM2_TEST_CMD)