Source reconstructed at patch state 2 of 3 — not the installed (fully patched) source.
3 Debian patches touch this file
-
removing parts of build.gradle that are not useful for a Debian build
- Author
- Pierre Gruet <[email protected]>
- Forwarded
- not-needed
-
fml headers are got through libfml-dev, not by downloading anything
- Author
- Pierre Gruet <[email protected]>
- Forwarded
- not-needed
-
| 1 |
ifeq ($(JAVA_HOME),) |
| 2 |
$(error $$(JAVA_HOME) is not defined) |
| 3 |
endif |
| 4 |
|
| 5 |
JNI_INCLUDE_DIRS=$(addprefix -I,$(shell find $(JAVA_HOME)/include -type d)) |
| 6 |
CFLAGS=-g -O2 -Wall -fPIC $(JNI_INCLUDE_DIRS) |
| 7 |
CC=gcc |
| 8 |
|
| 9 |
LIB_EXT=so |
| 10 |
|
| 11 |
JNI_BASE_NAME=org_broadinstitute_hellbender_utils_fermi_FermiLiteAssembler |
| 12 |
|
| 13 |
all: libfml.$(LIB_EXT) |
| 14 |
|
| 15 |
libfml.$(LIB_EXT): $(JNI_BASE_NAME).o /usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)/libfml.so |
| 16 |
$(CC) -dynamiclib -shared -o $@ $^ -lm -lz -lpthread |
| 17 |
|
| 18 |
$(JNI_BASE_NAME).o: $(JNI_BASE_NAME).c /usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)/libfml.so |
| 19 |
|
| 20 |
test: test.o /usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)/libfml.so |
| 21 |
$(CC) -o $@ $^ -lm -lz -lpthread |
| 22 |
|
| 23 |
clean: |
| 24 |
rm -rf fermi-lite *.o *.$(LIB_EXT) |
| 25 |
|
| 26 |
.PHONY: all clean |