-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (20 loc) · 712 Bytes
/
Makefile
File metadata and controls
29 lines (20 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Make file for ABRA
# libAbra is invoked from the ABRA java code
SRCDIR=src/main/c
all: clean native java
java:
mvn package
mktargetdir:
mkdir target
native: mktargetdir
g++ -g -O2 -I$(SRCDIR) -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -shared -fPIC $(SRCDIR)/assembler.cpp $(SRCDIR)/sg_aligner.cpp -o target/libAbra.so
standalone:
g++ -g -I$(SRCDIR) -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux $(SRCDIR)/assembler.c -o abra
sga:
g++ -g -O2 -I$(SRCDIR) -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux $(SRCDIR)/sg_aligner.cpp -o sga
clean:
rm -rf target
mvn clean
# TODO: Parameterize version
javah: java
javah -classpath target/abra-0.53-SNAPSHOT.jar abra.NativeAssembler