Lines 1-23
Link Here
|
1 |
--- Makefile.orig 2010-10-23 00:28:54.000000000 +0000 |
1 |
--- ./Makefile.orig 2012-06-13 14:10:52.160359057 +0200 |
2 |
+++ Makefile 2010-10-23 00:31:39.000000000 +0000 |
2 |
+++ ./Makefile 2012-06-13 14:13:01.635359504 +0200 |
3 |
@@ -18,9 +18,9 @@ |
3 |
@@ -16,11 +16,11 @@ |
4 |
# |
4 |
ASTERISK_SRC_DIR = |
|
|
5 |
|
6 |
# asterisk release or subversion working copy |
7 |
-ASTERISK_SRC_VERSION = $(shell if [ -e $(ASTERISK_SRC_DIR)/.version ] ; then echo release; elif [ -e $(ASTERISK_SRC_DIR)/.svn ] ; then echo subversion; else echo unknown; fi) |
8 |
+ASTERISK_SRC_VERSION = release |
9 |
|
10 |
# asterisk release version or subversion branch |
11 |
ifeq ($(ASTERISK_SRC_VERSION),release) |
12 |
- ASTERISK = $(shell cat $(ASTERISK_SRC_DIR)/.version | cut -d "." -f1,2 | sed -e 's/\.//') |
13 |
+ ASTERISK = 18 |
14 |
else |
15 |
ifeq ($(ASTERISK_SRC_VERSION),subversion) |
16 |
ASTERISK = $(shell svn info $(ASTERISK_SRC_DIR) | grep URL | sed -e 's:^.*/::' | cut -d "." -f 1,2 | sed -e 's/\.//') |
17 |
@@ -31,10 +31,10 @@ |
18 |
endif |
19 |
|
20 |
# asterisk include directory |
21 |
-ASTERISK_INCLUDE_DIR = $(ASTERISK_SRC_DIR)/include |
22 |
+ASTERISK_INCLUDE_DIR = ${LOCALBASE}/include |
23 |
|
24 |
# asterisk module directory |
25 |
-INSTALL_MODULES_DIR = /usr/lib/asterisk/modules |
26 |
+INSTALL_MODULES_DIR = ${LOCALBASE}/lib/asterisk/modules |
5 |
|
27 |
|
6 |
INSTALL_PREFIX := |
28 |
# module release |
7 |
-INSTALL_MODULES_DIR := $(INSTALL_PREFIX)/usr/lib/asterisk/modules |
29 |
RELEASE = 2.1 |
8 |
+INSTALL_MODULES_DIR := $(INSTALL_PREFIX)/${LOCALBASE}/lib/asterisk/modules |
|
|
9 |
|
10 |
-ASTERISK_INCLUDE_DIR ?= ../asterisk/include |
11 |
+ASTERISK_INCLUDE_DIR ?= ${LOCALBASE}/include |
12 |
|
13 |
RELEASE = 1.5 |
14 |
|
15 |
@@ -157,7 +157,7 @@ |
16 |
$(RM) $(TARGET) |
17 |
|
18 |
$(TARGET): $(OBJS) |
19 |
- $(CC) -pg $(SOLINK) -o $@ $(OBJS) |
20 |
+ $(CC) $(SOLINK) -o $@ $(OBJS) |
21 |
|
22 |
vad_test: vad_test.o libspeex/preprocess.o libspeex/misc.o libspeex/smallft.o |
23 |
$(CC) $(PROFILE) -o $@ $^ -lm |