aboutsummaryrefslogblamecommitdiffstats
path: root/Makefile
blob: a34111ea729b2b0e4a1c6249eb2050e202e34197 (plain) (tree)
1
2
3
4
5
6
7
8
9
                



                     
                                                                                                                

                                                                                                     
                                                                                 
                                                                  
                                                                
 

                     
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 -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

clean:
	-rm -r -- bin