2005-10-31 23:30:09 +00:00
|
|
|
#
|
2006-08-21 02:11:39 +00:00
|
|
|
# Makefile for chan_misdn support
|
2005-10-31 23:30:09 +00:00
|
|
|
#
|
2007-03-26 15:59:56 +00:00
|
|
|
ifneq ($(wildcard /usr/include/linux/mISDNdsp.h),)
|
|
|
|
CFLAGS+=-DMISDN_1_2
|
|
|
|
endif
|
|
|
|
|
2006-08-21 02:11:39 +00:00
|
|
|
all:
|
2005-10-31 23:30:09 +00:00
|
|
|
|
|
|
|
%.o: %.c
|
2006-08-21 02:11:39 +00:00
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
2006-04-05 14:51:48 +00:00
|
|
|
|
|
|
|
portinfo: portinfo.o
|
2006-08-21 02:11:39 +00:00
|
|
|
$(CC) -o $@ $^ -lisdnnet -lmISDN -lpthread
|
2006-04-05 14:51:48 +00:00
|
|
|
|
2005-10-31 23:30:09 +00:00
|
|
|
clean:
|
Merged revisions 157859 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r157859 | kpfleming | 2008-11-19 15:34:47 -0600 (Wed, 19 Nov 2008) | 7 lines
the gcc optimizer frequently finds broken code (use of uninitalized variables, unreachable code, etc.), which is good. however, developers usually compile with the optimizer turned off, because if they need to debug the resulting code, optimized code makes that process very difficult. this means that we get code changes committed that weren't adequately checked over for these sorts of problems.
with this build system change, if (and only if) --enable-dev-mode was used and DONT_OPTIMIZE is turned on, when a source file is compiled it will actually be preprocessed (into a .i or .ii file), then compiled once with optimization (with the result sent to /dev/null) and again without optimization (but only if the first compile succeeded, of course).
while making these changes, i did some cleanup work in Makefile.rules to move commonly-used combinations of flag variables into their own variables, to make the file easier to read and maintain
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@157974 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-11-20 00:08:12 +00:00
|
|
|
rm -rf *.a *.o *.so portinfo *.i
|