Commit ddb23f18 authored by Sven Gestegård Robertz's avatar Sven Gestegård Robertz
Browse files

hacked Makefiles to make them work on macos X

parent 962a854e
...@@ -2,19 +2,29 @@ SUBDIRS=compiler lib test examples packaging ...@@ -2,19 +2,29 @@ SUBDIRS=compiler lib test examples packaging
export LABCOMM_JAR=$(shell pwd)/compiler/labcomm2014_compiler.jar export LABCOMM_JAR=$(shell pwd)/compiler/labcomm2014_compiler.jar
export LABCOMM=java -jar $(LABCOMM_JAR) export LABCOMM=java -jar $(LABCOMM_JAR)
UNAME_S=$(shell uname -s)
.PHONY: all .PHONY: all
all: $(SUBDIRS:%=all-%) all: $(SUBDIRS:%=all-%)
.PHONY: all-% .PHONY: all-%
all-%: all-%:
ifeq ($(UNAME_S),Darwin)
DYLD_LIBRARY_PATH=`pwd`/lib/c $(MAKE) -C $*
else
LD_LIBRARY_PATH=`pwd`/lib/c $(MAKE) -C $* LD_LIBRARY_PATH=`pwd`/lib/c $(MAKE) -C $*
endif
.PHONY: test .PHONY: test
test: $(SUBDIRS:%=test-%) test: $(SUBDIRS:%=test-%)
.PHONY: test-% .PHONY: test-%
test-%: test-%:
ifeq ($(UNAME_S),Darwin)
DYLD_LIBRARY_PATH=`pwd`/lib/c $(MAKE) -C $* test
else
LD_LIBRARY_PATH=`pwd`/lib/c $(MAKE) -C $* test LD_LIBRARY_PATH=`pwd`/lib/c $(MAKE) -C $* test
endif
.PHONY: clean .PHONY: clean
clean: $(SUBDIRS:%=clean-%) clean: $(SUBDIRS:%=clean-%)
......
TESTS=basic simple nested ref TESTS=basic simple nested ref
LABCOMM_JAR=../compiler/labcomm2014_compiler.jar LABCOMM_JAR=../compiler/labcomm2014_compiler.jar
LABCOMM=java -jar $(LABCOMM_JAR) LABCOMM=java -jar $(LABCOMM_JAR)
MONO_PATH=$(shell realpath ../lib/csharp) MONO_PATH=$(shell pwd)/../lib/csharp
PYTHONPATH=$(shell realpath ../lib/python) PYTHONPATH=$(shell pwd)/../lib/python
include ../lib/c/os_compat.mk include ../lib/c/os_compat.mk
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment