Release v1.4
[hama_mce-eventclient.git] / 3rdparty / Makefile.libusb-1.0
blobe3b7fd60a78b1652395f89a005ac4062bf127553
1 PREFIX := $(PWD)
2 PATH := $(PREFIX)/bin:$(PATH)
4 LIBUSB := libusb-1.0.8
5 BASE_URL := http://downloads.sourceforge.net/project/libusb/libusb-1.0/$(LIBUSB)/
7 all : $(LIBUSB).stamp
9 $(LIBUSB).stamp : src/$(LIBUSB)
10         ( cd $< && ./configure --prefix=$(PREFIX) --disable-shared )
11         $(MAKE) -C $< install
12         touch $@
14 src/% : src/%.tar.bz2
15         ( cd src && tar xfj $(notdir $<) )
16         ( cd src && cat ../$(notdir $@)*patch.diff | patch -p0 )
18 src/%.tar.bz2 :
19         ( mkdir -p src && cd src && wget -c $(BASE_URL)/$(notdir $@) )
21 # do not remove implicit & intermediate targets in build: directories and tarballs
22 .SECONDARY :