Makefile 966 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #
  2. # Asterisk -- A telephony toolkit for Linux.
  3. #
  4. # Makefile for file format modules
  5. #
  6. # Copyright (C) 1999, Mark Spencer
  7. #
  8. # Mark Spencer <markster@linux-support.net>
  9. #
  10. # This program is free software, distributed under the terms of
  11. # the GNU General Public License
  12. #
  13. FORMAT_LIBS=format_gsm.so format_wav.so \
  14. format_wav_gsm.so format_vox.so format_pcm.so format_g729.so \
  15. format_pcm_alaw.so format_h263.so format_g726.so format_ilbc.so \
  16. format_sln.so
  17. FORMAT_LIBS+=format_jpeg.so
  18. #
  19. # G723 simple frame is depricated
  20. #
  21. #FORMAT_LIBS+=format_g723.so
  22. GSMLIB=../codecs/gsm/lib/libgsm.a
  23. CFLAGS+=-fPIC
  24. all: depend $(FORMAT_LIBS)
  25. clean:
  26. rm -f *.so *.o .depend
  27. %.so : %.o
  28. $(CC) $(SOLINK) -o $@ $<
  29. ifneq ($(wildcard .depend),)
  30. include .depend
  31. endif
  32. format_mp3.so : format_mp3.o
  33. $(CC) $(SOLINK) -o $@ $< -lm
  34. install: all
  35. for x in $(FORMAT_LIBS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
  36. depend: .depend
  37. .depend:
  38. ../mkdep $(CFLAGS) `ls *.c`