Forum: Cfengine Help
Subject: Re: Cfengine 3.1.5 is released -- a bugfix release
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,21723,21752#msg-21752

Relevant parts of make file if it helps.

UNAME=$(shell uname)
ARCHITECTURE=$(shell uname -m)

PCRE="pcre-8.10"
DB="db-4.8.26"
TOK="tokyocabinet-1.4.46"
SSL="openssl-1.0.0c"
CF="cfengine"
CFV="3.1.5"
CFENGINE=$(CF)-$(CFV)
PREFIX=/usr/local/groundwork/nwatson/cfengine


ifeq ($(UNAME), Linux)
        GREP=/bin/grep
        TAR=/bin/tar

        # required for static build and tokyocabinet
        LDF="--static -L$(PREFIX)/lib"

        # static options.
        STATIC=--enable-static --disable-shared
        # location of ssl libs
        OPENSSL=$(PREFIX)
        SSLSTATIC=no-shared no-dso

        # cf tokyocabinet option
        TOKYO=--with-tokyocabinet
        # Cf bdb option.
        BDB=--without-berkeleydb
endif

build-cfengine: $(CFENGINE) deps
        -cd $(CFENGINE) && $(MAKE) distclean
        cd $(CFENGINE) && \
        LD_LIBRARY_PATH=$(PREFIX)/lib \
        export LD_LIBRARY_PATH && \
        LDFLAGS=$(LDF) \
        ./configure --prefix=$(PREFIX) \
                --with-pcre=$(PREFIX) \
                --with-openssl=$(OPENSSL) \
                --sbindir=$(PREFIX)/bin \
                $(BDB) \
                $(TOKYO) \
                $(STATIC) \
                --without-sql \
                --without-ldap \
                --without-gd
        cd $(CFENGINE) && $(MAKE) CFLAGS="-O0 -g"

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to