Makefile 561 Bytes
Newer Older
Stefan Marr's avatar
Stefan Marr committed
1 2
#!/usr/bin/env make -f

3 4 5 6
PYPY_DIR ?= pypy
RPYTHON  ?= $(PYPY_DIR)/rpython/bin/rpython


Stefan Marr's avatar
Stefan Marr committed
7 8 9 10 11
all: compile

compile: RPySOM-no-jit RPySOM-jit

RPySOM-no-jit:
12
	PYTHONPATH=$(PYTHONPATH):$(PYPY_DIR) $(RPYTHON) --batch src/targetsomstandalone.py
Stefan Marr's avatar
Stefan Marr committed
13 14

RPySOM-jit:	
15
	PYTHONPATH=$(PYTHONPATH):$(PYPY_DIR) $(RPYTHON) --batch -Ojit src/targetsomstandalone.py
Stefan Marr's avatar
Stefan Marr committed
16 17

test: compile
18
	PYTHONPATH=$(PYTHONPATH):$(PYPY_DIR) nosetests
Stefan Marr's avatar
Stefan Marr committed
19 20 21 22 23 24
	./RPySOM-no-jit -cp Smalltalk TestSuite/TestHarness.som
	./RPySOM-jit    -cp Smalltalk TestSuite/TestHarness.som

clean:
	@-rm RPySOM-no-jit
	@-rm RPySOM-jit