mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@962 65c4cc65-6c06-0410-ace0-fbb531ad65f3
		
			
				
	
	
		
			42 lines
		
	
	
		
			838 B
		
	
	
	
		
			Makefile
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			838 B
		
	
	
	
		
			Makefile
		
	
	
		
			Executable File
		
	
	
	
	
| #
 | |
| # Asterisk -- A telephony toolkit for Linux.
 | |
| # 
 | |
| # Makefile for file format modules
 | |
| #
 | |
| # Copyright (C) 1999, Mark Spencer
 | |
| #
 | |
| # Mark Spencer <markster@linux-support.net>
 | |
| #
 | |
| # This program is free software, distributed under the terms of
 | |
| # the GNU General Public License
 | |
| #
 | |
| 
 | |
| FORMAT_LIBS=format_g723.so format_wav.so format_mp3.so format_wav_gsm.so \
 | |
| 	format_gsm.so format_vox.so format_pcm.so format_g729.so format_pcm_alaw.so
 | |
| FORMAT_LIBS+=format_jpeg.so
 | |
| 
 | |
| GSMLIB=../codecs/gsm/lib/libgsm.a
 | |
| 
 | |
| CFLAGS+=-fPIC
 | |
| 
 | |
| all: depend $(FORMAT_LIBS)
 | |
| 
 | |
| clean:
 | |
| 	rm -f *.so *.o .depend
 | |
| 
 | |
| %.so : %.o
 | |
| 	$(CC) -shared -Xlinker -x -o $@ $<
 | |
| 
 | |
| include .depend
 | |
| 
 | |
| format_mp3.so : format_mp3.o
 | |
| 	$(CC) -shared -Xlinker -x -o $@ $< -lm
 | |
| 
 | |
| install: all
 | |
| 	for x in $(FORMAT_LIBS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done
 | |
| 
 | |
| depend: .depend
 | |
| 
 | |
| .depend:
 | |
| 	../mkdep $(CFLAGS) `ls *.c`
 |