Skip to content
Snippets Groups Projects
Commit 088552b3 authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

Set default installation paths

parent e81b82a2
No related branches found
No related tags found
No related merge requests found
default: all default: all
# Include Autoconf variables.
template_files += Makefile.config
include Makefile.config
# Get rid of default suffixes. FIXME: is this a good idea? # Get rid of default suffixes. FIXME: is this a good idea?
.SUFFIXES: .SUFFIXES:
...@@ -16,8 +11,18 @@ bin_SCRIPTS := ...@@ -16,8 +11,18 @@ bin_SCRIPTS :=
noinst_SCRIPTS := noinst_SCRIPTS :=
# Default installation paths.
prefix ?= /usr/local
libdir ?= $(prefix)/lib
bindir ?= $(prefix)/bin
libexecdir ?= $(prefix)/libexec
datadir ?= $(prefix)/share
localstatedir ?= $(prefix)/var
sysconfdir ?= $(prefix)/etc
# Pass -fPIC if we're building dynamic libraries. # Pass -fPIC if we're building dynamic libraries.
BUILD_SHARED_LIBS = 1 BUILD_SHARED_LIBS ?= 1
ifeq ($(BUILD_SHARED_LIBS), 1) ifeq ($(BUILD_SHARED_LIBS), 1)
GLOBAL_CFLAGS += -fPIC GLOBAL_CFLAGS += -fPIC
...@@ -27,7 +32,7 @@ endif ...@@ -27,7 +32,7 @@ endif
# Pass -g if we want debug info. # Pass -g if we want debug info.
BUILD_DEBUG = 1 BUILD_DEBUG ?= 1
ifeq ($(BUILD_DEBUG), 1) ifeq ($(BUILD_DEBUG), 1)
GLOBAL_CFLAGS += -g GLOBAL_CFLAGS += -g
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment