Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Blomdell
LabComm
Commits
ddb23f18
Commit
ddb23f18
authored
May 05, 2015
by
Sven Gestegård Robertz
Browse files
hacked Makefiles to make them work on macos X
parent
962a854e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
ddb23f18
...
...
@@ -2,19 +2,29 @@ SUBDIRS=compiler lib test examples packaging
export
LABCOMM_JAR
=
$(
shell
pwd
)
/compiler/labcomm2014_compiler.jar
export
LABCOMM
=
java
-jar
$(LABCOMM_JAR)
UNAME_S
=
$(
shell
uname
-s
)
.PHONY
:
all
all
:
$(SUBDIRS:%=all-%)
.PHONY
:
all-%
all-%
:
ifeq
($(UNAME_S),Darwin)
DYLD_LIBRARY_PATH
=
`
pwd
`
/lib/c
$(MAKE)
-C
$*
else
LD_LIBRARY_PATH
=
`
pwd
`
/lib/c
$(MAKE)
-C
$*
endif
.PHONY
:
test
test
:
$(SUBDIRS:%=test-%)
.PHONY
:
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
endif
.PHONY
:
clean
clean
:
$(SUBDIRS:%=clean-%)
...
...
test/Makefile
View file @
ddb23f18
TESTS
=
basic simple nested ref
LABCOMM_JAR
=
../compiler/labcomm2014_compiler.jar
LABCOMM
=
java
-jar
$(LABCOMM_JAR)
MONO_PATH
=
$(
shell
realpath
../lib/csharp
)
PYTHONPATH
=
$(
shell
realpath
../lib/python
)
MONO_PATH
=
$(
shell
pwd
)
/
../lib/csharp
PYTHONPATH
=
$(
shell
pwd
)
/
../lib/python
include
../lib/c/os_compat.mk
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment