Makefile.in 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. # vorbis makefile configured for use with gcc on any platform
  2. # $Id: Makefile.in,v 1.26.2.1 2000/05/24 21:17:01 xiphmont Exp $
  3. ###############################################################################
  4. # #
  5. # To build a production vorbis (preferrably using gmake), just type 'make'. #
  6. # To build with debugging or profiling information, use 'make debug' or #
  7. # 'make profile' respectively. 'make clean' is a good idea between builds #
  8. # with different target names, or before a final build. #
  9. # #
  10. ###############################################################################
  11. # DO NOT EDIT BELOW! ##########################################################
  12. # (unless, of course, you know what you are doing :) ##########################
  13. @SET_MAKE@
  14. FLAGS=-I. -I../include @TYPESIZES@ @CFLAGS@
  15. OPT=@OPT@ $(FLAGS)
  16. DEBUG=@DEBUG@ $(FLAGS)
  17. PROFILE=@PROFILE@ $(FLAGS)
  18. CC=@CC@
  19. LD=@CC@
  20. LDFLAGS=@LDFLAGS@ $(FLAGS)
  21. AR=@AR@
  22. RANLIB=@RANLIB@
  23. LIBS=@LIBS@ -lm
  24. HFILES = ../include/vorbis/codec.h \
  25. ../include/vorbis/internal.h ../include/vorbis/backends.h \
  26. ../include/vorbis/codebook.h \
  27. bitwise.h envelope.h lpc.h lsp.h bookinternal.h misc.h\
  28. psy.h smallft.h window.h scales.h os.h mdct.h registry.h\
  29. masking.h sharedbook.h
  30. LFILES = framing.o mdct.o smallft.o block.o envelope.o window.o\
  31. lsp.o lpc.o analysis.o synthesis.o psy.o info.o bitwise.o\
  32. time0.o floor0.o res0.o mapping0.o registry.o\
  33. codebook.o sharedbook.o vorbisfile.o
  34. VF_HFILES = ../include/vorbis/vorbisfile.h ../include/vorbis/codec.h \
  35. ../include/vorbis/internal.h ../include/vorbis/codebook.h \
  36. os.h misc.h
  37. VF_LFILES = vorbisfile.o
  38. all:
  39. $(MAKE) target CFLAGS="$(OPT)"
  40. debug:
  41. $(MAKE) target CFLAGS="$(DEBUG)"
  42. analysis:
  43. $(MAKE) target CFLAGS="$(DEBUG) -DANALYSIS"
  44. profile:
  45. $(MAKE) target CFLAGS="$(PROFILE)"
  46. target: libvorbis.a vorbisfile.a psytune
  47. selftest:
  48. $(MAKE) clean
  49. $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST framing.c -o test_framing
  50. $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST bitwise.c\
  51. -o test_bitwise -lm
  52. $(CC) $(DEBUG) $(LDFLAGS) -c bitwise.c
  53. $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST sharedbook.c\
  54. -o test_sharedbook -lm
  55. $(CC) $(DEBUG) $(LDFLAGS) -c sharedbook.c
  56. $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST codebook.c \
  57. sharedbook.o bitwise.o -o test_codebook -lm
  58. @echo
  59. @./test_framing
  60. @./test_bitwise
  61. @./test_sharedbook
  62. @./test_codebook
  63. libvorbis.a: $(LFILES)
  64. $(AR) -r libvorbis.a $^
  65. $(RANLIB) libvorbis.a
  66. vorbisfile.a: $(VF_LFILES)
  67. $(AR) -r vorbisfile.a $^
  68. $(RANLIB) vorbisfile.a
  69. psytune: psytune.o libvorbis.a
  70. $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
  71. $(LFILES): $(HFILES)
  72. $(VF_LFILES): $(VF_HFILES)
  73. .c.o:
  74. $(CC) $(CFLAGS) -c $<
  75. clean:
  76. -rm -f *.o *.a test* *~ *.out ogg config.* tone
  77. distclean: clean
  78. -rm -f Makefile