mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-26 06:26:41 +00:00
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/branches/1.4@157859 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 lines
269 B
Makefile
18 lines
269 B
Makefile
#
|
|
# Makefile for chan_misdn support
|
|
#
|
|
ifneq ($(wildcard /usr/include/linux/mISDNdsp.h),)
|
|
CFLAGS+=-DMISDN_1_2
|
|
endif
|
|
|
|
all:
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
portinfo: portinfo.o
|
|
$(CC) -o $@ $^ -lisdnnet -lmISDN -lpthread
|
|
|
|
clean:
|
|
rm -rf *.a *.o *.so portinfo *.i
|