1 diff -Nru asterisk-1.2.14.org/apps/Makefile asterisk-1.2.14/apps/Makefile
2 --- asterisk-1.2.14.org/apps/Makefile 2006-04-30 15:38:22.000000000 +0200
3 +++ asterisk-1.2.14/apps/Makefile 2006-12-27 09:08:57.000000000 +0100
8 -ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h),)
9 +ifneq ($(wildcard $(STAGING_DIR)/usr/include/linux/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h),)
10 APPS+=app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so app_page.so
12 endif # WITHOUT_ZAPTEL
14 #CFLAGS+=-DEXTENDED_ODBC_STORAGE
15 # See doc/README.odbcstorage for more information
17 +CFLAGS += $(EXTRA_CFLAGS)
18 +APPS += $(EXTRA_APP_MODULES)
24 app_curl.so: app_curl.o
25 $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(CURLLIBS)
27 +app_sql_mysql.so: app_sql_mysql.o
28 + $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(EXTRA_LDFLAGS) -lmysqlclient
30 app_sql_postgres.o: app_sql_postgres.c
31 $(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
33 app_sql_postgres.so: app_sql_postgres.o
34 - $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -L/usr/local/pgsql/lib -lpq
35 + $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(EXTRA_LDFLAGS) -lpq
37 app_sql_odbc.so: app_sql_odbc.o
38 - $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -lodbc
39 + $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(EXTRA_LDFLAGS) -lodbc
41 ifeq (SunOS,$(shell uname))
42 app_chanspy.so: app_chanspy.o