42697baf6a
* Important bug fixes * SIP handling * MixMonitor call recording
37 lines
1.8 KiB
Text
37 lines
1.8 KiB
Text
$NetBSD: patch-ae,v 1.3 2006/04/13 08:47:06 adam Exp $
|
|
|
|
--- apps/Makefile.orig 2006-02-09 03:31:21.000000000 +0100
|
|
+++ apps/Makefile
|
|
@@ -45,15 +45,17 @@ APPS=app_dial.so app_playback.so app_voi
|
|
#APPS+=app_rpt.so
|
|
|
|
ifndef WITHOUT_ZAPTEL
|
|
-ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h),)
|
|
+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)$(PREFIX)/include/zaptel.h),)
|
|
APPS+=app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so app_page.so
|
|
endif
|
|
endif # WITHOUT_ZAPTEL
|
|
|
|
-ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/osp/osp.h $(CROSS_COMPILE_TARGET)/usr/include/osp/osp.h),)
|
|
+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)$(PREFIX)/include/osp/osp.h $(CROSS_COMPILE_TARGET)/usr/include/osp/osp.h),)
|
|
APPS+=app_osplookup.so
|
|
endif
|
|
|
|
+CFLAGS+=-I$(CROSS_COMPILE_TARGET)/$(PREFIX)/include -L$(CROSS_COMPILE_TARGET)/$(PREFIX)/lib
|
|
+
|
|
ifeq ($(findstring BSD,${OSARCH}),BSD)
|
|
CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -L$(CROSS_COMPILE_TARGET)/usr/local/lib
|
|
endif
|
|
@@ -103,10 +105,10 @@ app_curl.so: app_curl.o
|
|
$(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(CURLLIBS)
|
|
|
|
app_sql_postgres.o: app_sql_postgres.c
|
|
- $(CC) -pipe -I$(CROSS_COMPILE_TARGET)/usr/local/pgsql/include -I$(CROSS_COMPILE_TARGET)/usr/include/postgresql $(CFLAGS) -c -o app_sql_postgres.o app_sql_postgres.c
|
|
+ $(CC) -pipe -I$(CROSS_COMPILE_TARGET)/${PREFIX}/include $(CFLAGS) -c -o app_sql_postgres.o app_sql_postgres.c
|
|
|
|
app_sql_postgres.so: app_sql_postgres.o
|
|
- $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -L/usr/local/pgsql/lib -lpq
|
|
+ $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -L${PREFIX}/lib -lpq
|
|
|
|
app_sql_odbc.so: app_sql_odbc.o
|
|
$(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -lodbc
|