mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
The Eurostar Commit! (it's amazing how much work you can get done on a 150 minute train ride from Paris to London <G>)
support the new location for zaptel.h and tonezone.h use the dependency information output by menuselect to build Makefile rules for each module for header files and libraries combine the common rules into a top-level Makefile.rules file remove all (now) unnecessary stuff from subdir Makefiles change translator API so that the newpvt() callback returns an int instead of a pointer (it no longer allocates memory) alphabetize --with-<foo> options in configure script enhance Net-SNMP support in configure script to provide a --with-netsnmp option fix support for --with-pq so that if pg-config is not found when --with-pq is specified, an error will be generated add 'optional package' usage to modules now that menuselect can output it allow res_snmp to build by default, since the new loader changes coming soon will solve the function naming problem (and users can disable it via menuselect anyway) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
74
cdr/Makefile
74
cdr/Makefile
@@ -5,31 +5,17 @@
|
||||
#
|
||||
# Copyright (C) 1999-2006, Digium, Inc.
|
||||
#
|
||||
# Mark Spencer <markster@digium.com>
|
||||
#
|
||||
# This program is free software, distributed under the terms of
|
||||
# the GNU General Public License
|
||||
#
|
||||
|
||||
.PHONY: clean clean-depend all depend uninstall
|
||||
|
||||
ifneq ($(wildcard ../menuselect.makeopts),)
|
||||
include ../menuselect.makeopts
|
||||
endif
|
||||
|
||||
SELECTED_MODS:=$(filter-out $(MENUSELECT_CDR),$(patsubst %.c,%,$(wildcard cdr_*.c)))
|
||||
|
||||
#The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.
|
||||
#This works for even old (2.96) versions of gcc and provides a small boost either way.
|
||||
#A ultrasparc cpu is really v9 but the stock debian stable 3.0 gcc doesn.t support it.
|
||||
#So we go lowest common available by gcc and go a step down, still a step up from
|
||||
#the default as we now have a better instruction set to work with. - Belgarath
|
||||
ifeq ($(PROC),sparc64)
|
||||
PROC=ultrasparc
|
||||
CFLAGS += -mtune=$(PROC) -pipe -fomit-frame-pointer -mcpu=v8
|
||||
endif
|
||||
|
||||
ifneq ($(TDS_LIB),)
|
||||
ifneq ($(FREETDS_LIB),)
|
||||
ifeq ($(shell grep -s TDS_VERSION_NO $(CROSS_COMPILE_TARGET)/usr/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/local/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/include/freetds/tdsver.h | grep -c 0.63),1)
|
||||
CFLAGS += -DFREETDS_0_63
|
||||
else
|
||||
@@ -41,60 +27,6 @@ ifneq ($(TDS_LIB),)
|
||||
endif
|
||||
endif
|
||||
|
||||
MODS:=$(patsubst %,%.so,$(SELECTED_MODS))
|
||||
all: _all
|
||||
|
||||
all: $(MODS)
|
||||
|
||||
install: all
|
||||
for x in $(MODS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
|
||||
|
||||
uninstall:
|
||||
|
||||
clean-depend:
|
||||
rm -f .depend
|
||||
|
||||
clean: clean-depend
|
||||
rm -f *.so *.o
|
||||
|
||||
%.so : %.o
|
||||
$(CC) $(SOLINK) -o $@ $<
|
||||
|
||||
cdr_odbc.so: cdr_odbc.o
|
||||
$(CC) $(SOLINK) -o $@ $< $(ODBC_LIB)
|
||||
|
||||
cdr_odbc.o: cdr_odbc.c
|
||||
$(CC) -c -o $@ $(CFLAGS) $(ODBC_INCLUDE) $<
|
||||
|
||||
cdr_tds.so: cdr_tds.o
|
||||
$(CC) $(SOLINK) -o $@ $< $(TDS_LIB)
|
||||
|
||||
cdr_tds.o: cdr_tds.c
|
||||
$(CC) -c -o $@ $(CFLAGS) $(TDS_INCLUDE) $<
|
||||
|
||||
cdr_pgsql.so: cdr_pgsql.o
|
||||
$(CC) $(SOLINK) -o $@ $< $(PGSQL_LIB)
|
||||
|
||||
cdr_pgsql.o: cdr_pgsql.c
|
||||
$(CC) -c -o $@ $(CFLAGS) $(PGSQL_INCLUDE) $<
|
||||
|
||||
cdr_sqlite.so: cdr_sqlite.o
|
||||
$(CC) $(SOLINK) -o $@ $< $(SQLITE_LIB)
|
||||
|
||||
cdr_sqlite.o: cdr_sqlite.c
|
||||
$(CC) -c -o $@ $(CFLAGS) $(SQLITE_INCLUDE) $<
|
||||
|
||||
cdr_radius.so: cdr_radius.o
|
||||
$(CC) $(SOLINK) -o $@ $< $(RADIUSCLIENT_LIB)
|
||||
|
||||
cdr_radius.o: cdr_radius.c
|
||||
$(CC) -c -o $@ $(CFLAGS) $(RADIUSCLIENT_INCLUDE) $<
|
||||
|
||||
|
||||
ifneq ($(wildcard .depend),)
|
||||
include .depend
|
||||
endif
|
||||
|
||||
depend: .depend
|
||||
|
||||
.depend:
|
||||
../build_tools/mkdep $(CFLAGS) `ls *.c`
|
||||
include ../Makefile.rules
|
||||
|
Reference in New Issue
Block a user