Created
February 16, 2018 15:51
-
-
Save josephwb/e46106131f6c59c041c51eaf48926348 to your computer and use it in GitHub Desktop.
Compile and install native BEAST likelihood cores (BEAST v1.8.*). Assumes linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# run from BEASTv1.8.*/native | |
# will compile and install into ../lib/ | |
CC=gcc | |
CFLAGS=-O2 -funroll-loops | |
INCLUDES=-I${JAVA_HOME}/include/ -I${JAVA_HOME}/include/linux | |
all: libNucleotideLikelihoodCore.so libAminoAcidLikelihoodCore.so | |
.c.o: | |
${CC} ${CFLAGS} ${INCLUDES} -c $*.c | |
libNucleotideLikelihoodCore.so: NucleotideLikelihoodCore.o | |
${CC} ${CFLAGS} ${INCLUDES} -shared -o libNucleotideLikelihoodCore.so NucleotideLikelihoodCore.o; \ | |
cp libNucleotideLikelihoodCore.so ../lib/. | |
libAminoAcidLikelihoodCore.so: AminoAcidLikelihoodCore.o | |
${CC} ${CFLAGS} ${INCLUDES} -shared -o libAminoAcidLikelihoodCore.so AminoAcidLikelihoodCore.o; \ | |
cp libAminoAcidLikelihoodCore.so ../lib/. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment