Newer
Older

Hermann Mayer
committed
export TEST := test
export PRINTF := printf

Hermann Mayer
committed
export CP := cp
export MV := mv

Hermann Mayer
committed
export RM := rm
export FIND := find
export GCC := gcc
export MAN := man

Hermann Mayer
committed
export INSTALL := install

Hermann Mayer
committed
XML_CONF := xml2-config

Hermann Mayer
committed
export VERSION := $(shell cat VERSION)
export MACHTYPE := $(shell $(CC) -dumpmachine)
export CFLAGS = $(shell $(XML_CONF) --cflags) -Wall -Werror -g -O0 \
-DVERSION="\"$(VERSION)\"" -DMACHTYPE="\"$(MACHTYPE)\""
export INCLUDES = $(shell $(XML_CONF) --libs) -lcurl -lcrypto -lconfig -lbcm2835

Hermann Mayer
committed
DESTDIR ?=
export prefix ?= /usr/local
export datarootdir ?= $(prefix)/share
export exec_prefix ?= $(prefix)
export bindir ?= $(exec_prefix)/bin
export mandir ?= $(datarootdir)/man
export sysconfdir ?= $(prefix)/etc
export libdir ?= $(exec_prefix)/lib