blob: 5193ce17ab90c7041125789e30e9e3936ec27cd7 (
plain) (
tree)
|
|
C_OPTIMISE = -O6
JAVA_OPTIMISE = -O
all:
@mkdir -p bin
$(CC) $(C_OPTIMISE) -std=gnu99 -Wall -Wextra -pedantic -fPIC -c src/argparser.c -o bin/argparser.o
$(CC) $(C_OPTIMISE) -std=gnu99 -Wall -Wextra -pedantic -shared bin/argparser.o -o bin/argparser.so
$(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
clean:
-rm -r -- bin
|