aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 47521d3122db53f7f4c1a3e1afe5c26f30d54c4f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
C_OPTIMISE = -O6
JAVA_OPTIMISE = -O

all:
	@mkdir -p bin
	$(CC) $(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
	javac $(JAVA_OPTIMISE) -cp src -s src -d bin src/Test.java
	cd bin ; jar cf ArgParser.jar ArgParser*.class