Makefile.in 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. # vorbis makefile configured for use with gcc on any platform
  2. # $Id: Makefile.in,v 1.24.2.1.2.2 2000/04/21 16:35:38 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 ../include/vorbis/vorbisfile.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. all:
  35. $(MAKE) target CFLAGS="$(OPT)"
  36. debug:
  37. $(MAKE) target CFLAGS="$(DEBUG)"
  38. analysis:
  39. $(MAKE) target CFLAGS="$(DEBUG) -DANALYSIS"
  40. profile:
  41. $(MAKE) target CFLAGS="$(PROFILE)"
  42. target: libvorbis.a vorbisfile.a psytune
  43. selftest:
  44. $(MAKE) clean
  45. $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST framing.c -o test_framing
  46. $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST bitwise.c\
  47. -o test_bitwise -lm
  48. $(CC) $(DEBUG) $(LDFLAGS) -c bitwise.c
  49. $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST sharedbook.c\
  50. -o test_sharedbook -lm
  51. $(CC) $(DEBUG) $(LDFLAGS) -c sharedbook.c
  52. $(CC) $(DEBUG) $(LDFLAGS) -D_V_SELFTEST codebook.c \
  53. sharedbook.o bitwise.o -o test_codebook -lm
  54. @echo
  55. @./test_framing
  56. @./test_bitwise
  57. @./test_sharedbook
  58. @./test_codebook
  59. libvorbis.a: $(LFILES)
  60. $(AR) -r libvorbis.a $^
  61. $(RANLIB) libvorbis.a
  62. vorbisfile.a: $(LFILES)
  63. $(AR) -r vorbisfile.a $^
  64. $(RANLIB) vorbisfile.a
  65. psytune: mdct.o psy.o lpc.o smallft.o window.o psytune.o floor0.o \
  66. bitwise.o lsp.o codebook.o sharedbook.o
  67. $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
  68. $(LFILES): $(HFILES)
  69. .c.o:
  70. $(CC) $(CFLAGS) -c $<
  71. clean:
  72. -rm -f *.o *.a test* *~ *.out ogg config.* tone
  73. distclean: clean
  74. -rm -f Makefile