2011-03-29 09:57:23 +02:00
|
|
|
|
|
|
|
|
|
|
|
SRC:=src/main/java
|
|
|
|
TARGET:=target
|
|
|
|
|
|
|
|
|
|
|
|
include $(SRC)/org/xerial/snappy/VERSION
|
|
|
|
|
|
|
|
SNAPPY_ARCHIVE:=$(TARGET)/snappy-$(VERSION).tar.gz
|
|
|
|
|
|
|
|
$(SNAPPY_ARCHIVE):
|
|
|
|
@mkdir -p $(@D)
|
|
|
|
curl -o$@ http://snappy.googlecode.com/files/snappy-$(VERSION).tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
$(TARGET)/snappy-$(VERSION): $(SNAPPY_ARCHIVE)
|
|
|
|
tar xvfz $< -C $(TARGET)
|
2011-03-29 11:17:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-03-29 11:36:02 +02:00
|
|
|
$(SRC)/org/xerial/snappy/SnappyNative.h: $(SRC)/org/xerial/snappy/Snappy.java
|
2011-03-29 11:17:07 +02:00
|
|
|
javah -classpath $(TARGET)/classes -o $@ org.xerial.snappy.Snappy
|
|
|
|
|
2011-03-29 11:36:02 +02:00
|
|
|
|