Makefile 362 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
CFLAGS += -std=gnu11
ifndef JAVA_HOME
    $(error JAVA_HOME is required. Invoke with 'make JAVA_HOME=/path/to/java/home')
endif

.PHONY: all
all: libmurefimpl2start.so

libmurefimpl2start.so: refimpl2-start.c cbinding.txt
	$(CC) -fPIC -shared $(CFLAGS) -o $@ $< $(LDFLAGS)

cbinding.txt: ../build.sbt
	cd .. ; sbt makeJarListFile

.PHONY: clean

clean:
	rm *.so