OLD | NEW |
1 # Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 # Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE.md file. | 3 # BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 .PHONY: all test clean | 5 .PHONY: all test clean |
6 | 6 |
7 UNAME := $(shell uname) | 7 UNAME := $(shell uname) |
8 | 8 |
9 ifeq ($(UNAME), Linux) | 9 ifeq ($(UNAME), Linux) |
10 PLATFORM_INCLUDES=-I${JAVA_HOME}/include/linux | 10 PLATFORM_INCLUDES=-I${JAVA_HOME}/include/linux |
11 PLATFORM_LIB_SUFFIX=so | 11 PLATFORM_LIB_SUFFIX=so |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 ${FLETCH_BUILD_DIR}/fletch export ${THIS_DIR}$< to ${THIS_DIR}$@ | 62 ${FLETCH_BUILD_DIR}/fletch export ${THIS_DIR}$< to ${THIS_DIR}$@ |
63 | 63 |
64 test: all | 64 test: all |
65 LD_LIBRARY_PATH=jni \ | 65 LD_LIBRARY_PATH=jni \ |
66 $(JAVA) -Djava.library.path=jni -enableassertions -classpath \ | 66 $(JAVA) -Djava.library.path=jni -enableassertions -classpath \ |
67 fletch/simple_todo.jar:. SimpleTodo simple_todo.snapshot | 67 fletch/simple_todo.jar:. SimpleTodo simple_todo.snapshot |
68 | 68 |
69 clean: | 69 clean: |
70 rm -f *.class fletch/*.class fletch/simple_todo.jar | 70 rm -f *.class fletch/*.class fletch/simple_todo.jar |
71 rm -f jni/*.o jni/*.$(PLATFORM_LIB_SUFFIX) simple_todo.snapshot | 71 rm -f jni/*.o jni/*.$(PLATFORM_LIB_SUFFIX) simple_todo.snapshot |
OLD | NEW |