Makefile 564 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
all: compile

9 10
# RPySOM-no-jit
compile: RPySOM-jit
Stefan Marr's avatar
Stefan Marr committed
11 12

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

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

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

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