mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	This change to the build system rips out any usage of PROC along with architecture-specific optimizations in favor of using -march=native where it is supported. This fixes broken builds on 64bit Intel systems and results in better optimized code on systems running GCC 4.2+. Review: https://reviewboard.asterisk.org/r/1852/ (closes issue ASTERISK-19462) ........ Merged revisions 361955 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 361956 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@361968 65c4cc65-6c06-0410-ace0-fbb531ad65f3
		
			
				
	
	
		
			53 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| # 
 | |
| # Makefile for LPC-10 speech coder library (unix)
 | |
| # 
 | |
| 
 | |
| # default C compiler
 | |
| CC?= gcc
 | |
| 
 | |
| # 
 | |
| # These definitions for CFLAGS and LIB_TARGET_DIR are used when one
 | |
| # runs make in the lpc10 directory, without environment variables that
 | |
| # override them.  When make is run in this directory from a makefile
 | |
| # for an application that uses the LPC10 coder, there are environment
 | |
| # variables set for CFLAGS and LIB_TARGET_DIR that override these
 | |
| # definitions.
 | |
| # 
 | |
| 
 | |
| LIB_TARGET_DIR = .
 | |
| 
 | |
| # 
 | |
| # -I$(LIB_TARGET_DIR) option needed so that #include "machine.h"
 | |
| # directives can find the machine.h file.
 | |
| # 
 | |
| 
 | |
| CFLAGS+= -fPIC -Wno-comment
 | |
| 
 | |
| # The code here generates lots of warnings, so compiling with -Werror
 | |
| # fails miserably. Remove it for the time being.
 | |
| _ASTCFLAGS:=$(_ASTCFLAGS:-Werror=)
 | |
| 
 | |
| LIB = $(LIB_TARGET_DIR)/liblpc10.a
 | |
| 
 | |
| .PHONY: all clean
 | |
| 
 | |
| include $(ASTTOPDIR)/Makefile.rules
 | |
| 
 | |
| all:	$(LIB)
 | |
| 
 | |
| OBJ=f2clib.o analys.o bsynz.o chanwr.o dcbias.o decode.o \
 | |
|     deemp.o difmag.o dyptrk.o encode.o energy.o ham84.o \
 | |
|     hp100.o invert.o irc2pc.o ivfilt.o lpcdec.o lpcenc.o \
 | |
|     lpcini.o lpfilt.o median.o mload.o onset.o pitsyn.o \
 | |
|     placea.o placev.o preemp.o prepro.o random.o rcchk.o \
 | |
|     synths.o tbdm.o voicin.o vparms.o
 | |
| 
 | |
| $(LIB): $(OBJ)
 | |
| 	$(ECHO_PREFIX) echo "   [AR] $^ -> $@"
 | |
| 	$(CMD_PREFIX) $(AR) cr $@ $^
 | |
| 	$(CMD_PREFIX) $(RANLIB) $@
 | |
| 
 | |
| clean:
 | |
| 	rm -f *.o $(LIB) .*.d
 | |
| 	rm -f *.s *.i
 |