Makefile.in 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. # vorbis makefile configured for use with gcc on any platform
  2. # $Id: Makefile.in,v 1.13.4.1 2000/09/03 08:34:51 jack 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 @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@
  24. HFILES = ../include/vorbis/codec.h ../include/vorbis/vorbisfile.h \
  25. ../include/vorbis/backends.h \
  26. ../include/vorbis/codebook.h
  27. OFILES = encoder_example.o decoder_example.o chaining_example.o \
  28. vorbisfile_example.o seeking_test.o
  29. BINFILES = encoder_example decoder_example chaining_example \
  30. vorbisfile_example seeking_test
  31. all:
  32. $(MAKE) target CFLAGS="$(OPT)"
  33. debug:
  34. $(MAKE) target CFLAGS="$(DEBUG)"
  35. profile:
  36. $(MAKE) target CFLAGS="$(PROFILE)"
  37. target: $(BINFILES)
  38. encoder_example.o: ../include/vorbis/modes.h
  39. encoder_example: $(OFILES) ../lib/libvorbis.a
  40. $(CC) $(CFLAGS) $(LDFLAGS) encoder_example.o ../lib/libvorbis.a -o \
  41. encoder_example $(LIBS)
  42. decoder_example: $(OFILES) ../lib/libvorbis.a
  43. $(CC) $(CFLAGS) $(LDFLAGS) decoder_example.o ../lib/libvorbis.a -o \
  44. decoder_example $(LIBS)
  45. chaining_example: $(OFILES) ../lib/libvorbis.a ../lib/vorbisfile.a
  46. $(CC) $(CFLAGS) $(LDFLAGS) chaining_example.o \
  47. ../lib/vorbisfile.a ../lib/libvorbis.a \
  48. -o chaining_example $(LIBS)
  49. vorbisfile_example: $(OFILES) ../lib/libvorbis.a ../lib/vorbisfile.a
  50. $(CC) $(CFLAGS) $(LDFLAGS) vorbisfile_example.o \
  51. ../lib/vorbisfile.a ../lib/libvorbis.a \
  52. -o vorbisfile_example $(LIBS)
  53. seeking_test: $(OFILES) ../lib/libvorbis.a ../lib/vorbisfile.a
  54. $(CC) $(CFLAGS) $(LDFLAGS) seeking_test.o \
  55. ../lib/vorbisfile.a ../lib/libvorbis.a \
  56. -o seeking_test $(LIBS)
  57. selftest:
  58. $(OFILES): $(HFILES)
  59. .c.o:
  60. $(CC) $(CFLAGS) -c $<
  61. clean:
  62. -rm -f *.o *.a test* *~ *.out ogg config.* \
  63. encoder_example decoder_example chaining_example \
  64. vorbisfile_example seeking_test
  65. distclean: clean
  66. -rm -f Makefile