mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-30 00:00:11 +01:00
refactored Makefile for dependencies
added libwebsockets
This commit is contained in:
parent
556aaf48b2
commit
eddf3abe95
1 changed files with 13 additions and 8 deletions
21
thirdparty/Makefile
vendored
21
thirdparty/Makefile
vendored
|
@ -1,27 +1,32 @@
|
||||||
.PHONY: dependencies
|
.PHONY: dependencies
|
||||||
|
|
||||||
|
PREFIX=$(shell pwd)
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
dependencies: libconfig-1.5 libnl-3.2.25 doxygen-1.8.10 pciutils-3.4.0
|
dependencies: libconfig-1.5 libnl-3.2.25 doxygen-1.8.10 pciutils-3.4.0 libwebsockets-master
|
||||||
|
|
||||||
# Download latest doxygen
|
# Download latest doxygen
|
||||||
doxygen-1.8.10:
|
doxygen-1.8.10:
|
||||||
mkdir -p $(PREFIX)
|
|
||||||
wget -O- http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.10.linux.bin.tar.gz | tar xzC $(PREFIX)
|
wget -O- http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.10.linux.bin.tar.gz | tar xzC $(PREFIX)
|
||||||
|
|
||||||
# Install & compile libconfig dependency
|
# Install & compile libconfig dependency
|
||||||
libconfig-1.5:
|
libconfig-1.5:
|
||||||
mkdir -p $(PREFIX)/usr/
|
|
||||||
wget -O- http://www.hyperrealm.com/libconfig/libconfig-1.5.tar.gz | tar -xzC $(PREFIX)
|
wget -O- http://www.hyperrealm.com/libconfig/libconfig-1.5.tar.gz | tar -xzC $(PREFIX)
|
||||||
cd libconfig-1.5 && ./configure --prefix=$(PWD)/usr/ --disable-examples && make install
|
cd $@ && ./configure --prefix=$(PWD)/usr/ --disable-examples && make install
|
||||||
|
|
||||||
# Install & compile libnl3 dependency
|
# Install & compile libnl3 dependency
|
||||||
libnl-3.2.25:
|
libnl-3.2.25:
|
||||||
mkdir -p $(PREFIX)/usr/
|
|
||||||
wget -O- http://www.infradead.org/~tgr/libnl/files/libnl-3.2.25.tar.gz | tar -xzC $(PREFIX)
|
wget -O- http://www.infradead.org/~tgr/libnl/files/libnl-3.2.25.tar.gz | tar -xzC $(PREFIX)
|
||||||
cd libnl-3.2.25 && ./configure --prefix=$(PWD)/usr/ --disable-cli && make install
|
cd $@ && ./configure --prefix=$(PWD)/usr/ --disable-cli && make install
|
||||||
|
|
||||||
# Install & compile libpci dependency
|
# Install & compile libpci dependency
|
||||||
pciutils-3.4.0:
|
pciutils-3.4.0:
|
||||||
mkdir -p $(PREFIX)/usr/
|
|
||||||
wget -O- ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/pciutils-3.4.0.tar.gz | tar -xzC $(PREFIX)
|
wget -O- ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/pciutils-3.4.0.tar.gz | tar -xzC $(PREFIX)
|
||||||
cd pciutils-3.4.0 && make && make install-lib PREFIX=$(PWD)/usr/
|
cd $@ && make && make install-lib PREFIX=$(PREFIX)
|
||||||
|
|
||||||
|
# Install & compile libwebsockets dependency
|
||||||
|
# @todo maybe we should use a static ref here..
|
||||||
|
libwebsockets-master:
|
||||||
|
mkdir -p $@/build
|
||||||
|
wget -O- https://api.github.com/repos/warmcat/libwebsockets/tarball | tar --strip-components=1 -xzC $(PREFIX)/$@
|
||||||
|
cd $@/build && cmake .. && make && make install
|
Loading…
Add table
Reference in a new issue