aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-29 04:06:15 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-29 04:06:15 +0000
commitefc38277d3698fc001987d5788c334ba5c636ab3 (patch)
tree68f3f6f7343565f06070373750280b94b6996869 /Makefile
parent83b6865c31a297871e7267835c1600d0c35acd5b (diff)
allow some more paths to be overridden on the command line (issue #5292)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6691 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 0cc3fcd65..99970779f 100755
--- a/Makefile
+++ b/Makefile
@@ -77,7 +77,7 @@ MALLOC_DEBUG = #-include $(PWD)/include/asterisk/astmm.h
# Where to install asterisk after compiling
# Default -> leave empty
-INSTALL_PREFIX=
+INSTALL_PREFIX?=
# Staging directory
# Files are copied here temporarily during the install process
@@ -209,7 +209,7 @@ ifeq (${OSARCH},SunOS)
M4=/usr/local/bin/m4
endif
-INCLUDE=-Iinclude -I../include
+INCLUDE+=-Iinclude -I../include
ASTCFLAGS+=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE #-DMAKE_VALGRIND_HAPPY
ASTCFLAGS+=$(OPTIMIZE)
@@ -312,7 +312,7 @@ ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/dlfcn.h),)
endif
ifeq (${OSARCH},Linux)
- LIBS=-ldl -lpthread -lncurses -lm -lresolv #-lnjamd
+ LIBS+=-ldl -lpthread -lncurses -lm -lresolv #-lnjamd
else
LIBS+=-lncurses -lm
endif
@@ -338,7 +338,7 @@ ifeq (${OSARCH},NetBSD)
endif
ifeq (${OSARCH},OpenBSD)
- LIBS=-lcrypto -lpthread -lm -lncurses
+ LIBS+=-lcrypto -lpthread -lm -lncurses
endif
ifeq (${OSARCH},SunOS)
@@ -488,7 +488,7 @@ clean:
$(MAKE) -C stdtime clean
datafiles: all
- sh mkpkgconfig $(DESTDIR)/usr/lib/pkgconfig
+ if test $$(id -u) = 0; then sh mkpkgconfig $(DESTDIR)/usr/lib/pkgconfig; fi
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/digits
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/priv-callerintros
for x in sounds/digits/*.gsm; do \