aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-26 02:50:45 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-26 02:50:45 +0200
commitb31e1b4a9a5082788f08f13ff96e3582daeb840a (patch)
tree1f5fa102d07ddbae895d55c9dda7699242ba0ac6 /Makefile
parentwhoops (diff)
downloadargparser-b31e1b4a9a5082788f08f13ff96e3582daeb840a.tar.gz
argparser-b31e1b4a9a5082788f08f13ff96e3582daeb840a.tar.bz2
argparser-b31e1b4a9a5082788f08f13ff96e3582daeb840a.tar.xz
add makefile, why cannot c version be optimised??
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
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
+