aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: ebba7b77d6b2f0ea3aa6457296e992ae4d0f0435 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
	$(CC) $(C_OPTIMISE) -std=gnu99 -Wall -Wextra -pedantic src/test.c -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

clean:
	-rm -r -- bin