aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-07-02 13:39:48 +0200
committerMattias Andrée <maandree@operamail.com>2013-07-02 13:39:48 +0200
commit0116e2f5809219740cf3c8c548afade0018bdf69 (patch)
tree740716f332d970e04e8678fd5b827161f22162bb
parentm (diff)
downloadargparser-0116e2f5809219740cf3c8c548afade0018bdf69.tar.gz
argparser-0116e2f5809219740cf3c8c548afade0018bdf69.tar.bz2
argparser-0116e2f5809219740cf3c8c548afade0018bdf69.tar.xz
fix make
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ebba7b7..a34111e 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,8 @@ JAVA_OPTIMISE = -O
all:
@mkdir -p bin
$(CC) $(C_OPTIMISE) -std=gnu99 -Wall -Wextra -pedantic -fPIC -shared src/argparser.c -o bin/argparser.so
- $(CC) $(C_OPTIMISE) -std=gnu99 -Wall -Wextra -pedantic src/test.c -o bin/test
+ $(CC) $(C_OPTIMISE) -std=gnu99 -Wall -Wextra -pedantic -c src/argparser.c -o bin/argparser.o
+ $(CC) $(C_OPTIMISE) -std=gnu99 -Wall -Wextra -pedantic src/test.c bin/argparser.o -o bin/test
javac $(JAVA_OPTIMISE) -cp src -s src -d bin src/argparser/ArgParser.java
javac $(JAVA_OPTIMISE) -cp src -s src -d bin src/Test.java
cd bin ; jar cf ArgParser.jar argparser/ArgParser*.class