From b31e1b4a9a5082788f08f13ff96e3582daeb840a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 26 Jun 2013 02:50:45 +0200 Subject: add makefile, why cannot c version be optimised?? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5be5d95 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +C_OPTIMISE = -O0 +JAVA_OPTIMISE = -O + +all: + @mkdir -p bin + gcc $(C_OPTIMISE) -std=gnu99 -Wall -Wextra -pedantic -fPIC -shared src/argparser.c -o bin/argparser.so + javac $(JAVA_OPTIMISE) -cp src -s src -d bin src/ArgParser.java + -- cgit v1.2.3-70-g09d2