Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
165f65ba
Commit
165f65ba
authored
Aug 02, 2013
by
Axel Auweter
Browse files
Add OpenIPMI Library (and its dependencied popt, ncurses) to the dependencies.
parent
26aa21e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
165f65ba
...
...
@@ -5,6 +5,9 @@ DISTFILES = thrift-0.9.0.tar.gz;https://dist.apache.org/repos/dist/release/thrif
apache-cassandra-1.2.8.tar.gz
;
http://mirror.netcologne.de/apache.org/cassandra/1.2.8/apache-cassandra-1.2.8-bin.tar.gz
\
mosquitto-1.1.3.tar.gz
;
http://mosquitto.org/files/source/mosquitto-1.1.3.tar.gz
\
rudeconfig-5.0.5.tar.gz
;
http://rudeserver.com/config/download/rudeconfig-5.0.5.tar.gz
\
popt-1.16.tar.gz
;
http://rpm5.org/files/popt/popt-1.16.tar.gz
\
ncurses-5.9.tar.gz
;
http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz
\
OpenIPMI-2.0.18.tar.gz
;
http://surfnet.dl.sourceforge.net/project/openipmi/OpenIPMI%202.0%20Library/2.0.18/OpenIPMI-2.0.18.tar.gz
\
boost_1_54_0.tar.gz
;
http://netcologne.dl.sourceforge.net/project/boost/boost/1.54.0/boost_1_54_0.tar.gz
FETCH
=
wget
-c
--no-check-certificate
-O
-
MAKETHREADS
?=
4
...
...
@@ -20,6 +23,9 @@ CASSANDRA_COMMITLOG_SEGMENT_SIZE_IN_MB = 16
DISTFILESNAMES
=
$(
foreach
f,
$(DISTFILES)
,
$(
shell
echo
"
$(f)
"
|
sed
's/;.*//'
))
DISTFILESPATHS
=
$(
foreach
f,
$(DISTFILES)
,
$(
shell
echo
"
$(f)
"
|
sed
's/.tar.gz;.*//'
))
CFLAGS
+=
-I
$(DCDBDEPLOYPATH)
/include
-I
$(DCDBDEPLOYPATH)
/include/ncurses
LDFLAGS
+=
-L
$(DCDBDEPLOYPATH)
/lib
.PHONY
:
info all clean cleanall distclean $(PROJECTS)
info
:
...
...
@@ -75,6 +81,23 @@ $(DCDBDEPSPATH)/.prerequesites: $(DCDBDEPSPATH)/.extract-distfiles
@
echo
"Building Rudeconfig library..."
$(
eval
R :
=
$(
shell
echo
"
$(DISTFILESPATHS)
"
|
sed
's/.*rudeconfig/rudeconfig/'
|
sed
's/\ .*//'
))
@
cd
$(DCDBDEPSPATH)
/
$(R)
&&
./configure
--prefix
=
$(DCDBDEPLOYPATH)
&&
make
-j
$(MAKETHREADS)
&&
chmod
+x install-sh
&&
make
install
@echo
""
@echo
"Buidling Popt library..."
$(eval P
:
= $(shell echo "$(DISTFILESPATHS)" | sed 's/.*popt/popt/' | sed 's/
\
.*//'))
@
cd
$(DCDBDEPSPATH)
/
$(P)
&&
./configure
--prefix
=
$(DCDBDEPLOYPATH)
&&
make
-j
$(MAKETHREADS)
&&
make
install
@echo
""
@echo
"Buidling Ncurses library..."
$(eval N
:
= $(shell echo "$(DISTFILESPATHS)" | sed 's/.*ncurses/ncurses/' | sed 's/
\
.*//'))
@
cd
$(DCDBDEPSPATH)
/
$(N)
&&
./configure
--prefix
=
$(DCDBDEPLOYPATH)
--with-shared
--without-ada
--without-manpages
\
--without-progs
--without-tests
&&
make
-j
$(MAKETHREADS)
&&
make
install
@echo
""
@echo
"Buidling OpenIPMI library..."
$(eval O
:
= $(shell echo "$(DISTFILESPATHS)" | sed 's/.*OpenIPMI/OpenIPMI/' | sed 's/
\
.*//'))
@
cd
$(DCDBDEPSPATH)
/
$(O)
&&
env
CFLAGS
=
"
$(CFLAGS)
"
LDFLAGS
=
"
$(LDFLAGS)
"
./configure
--prefix
=
$(DCDBDEPLOYPATH)
\
&&
env
CFLAGS
=
"
$(CFLAGS)
"
LDFLAGS
=
"
$(LDFLAGS)
"
make
-j
$(MAKETHREADS)
&&
make
install
@
echo
""
@
echo
"Building Boost..."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment