Makefile.in 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. # $Id: Makefile.in,v 1.10.4.4 2000/05/04 23:08:10 xiphmont Exp $
  2. ###############################################################################
  3. # #
  4. # To build a production vorbis (preferrably using gmake), just type 'make'. #
  5. # To build with debugging or profiling information, use 'make debug' or #
  6. # 'make profile' respectively. 'make clean' is a good idea between builds #
  7. # with different target names, or before a final build. #
  8. # #
  9. ###############################################################################
  10. # DO NOT EDIT BELOW! ##########################################################
  11. # (unless, of course, you know what you are doing :) ##########################
  12. @SET_MAKE@
  13. FLAGS=-I. -I../include @TYPESIZES@ @CFLAGS@
  14. OPT=@OPT@ $(FLAGS)
  15. DEBUG=@DEBUG@ $(FLAGS)
  16. PROFILE=@PROFILE@ $(FLAGS)
  17. CC=@CC@
  18. LD=@CC@
  19. LDFLAGS=@LDFLAGS@ $(FLAGS)
  20. AR=@AR@
  21. RANLIB=@RANLIB@
  22. LIBS=@LIBS@ -lm
  23. HFILES = ../include/vorbis/codebook.h vqgen.h vqext.h bookutil.h
  24. OFILES = vqgen.o vqsplit.o bookutil.o ../lib/sharedbook.o
  25. ALLOFILES = $(OFILES) lspdata.o genericdata.o train.o build.o run.o\
  26. cascade.o partition.o metrics.o residuedata.o latticebuild.o\
  27. latticepare.o
  28. all:
  29. $(MAKE) target CFLAGS="$(OPT)"
  30. debug:
  31. $(MAKE) target CFLAGS="$(DEBUG)"
  32. profile:
  33. $(MAKE) target CFLAGS="$(PROFILE)"
  34. target: lspvqtrain genericvqtrain residuevqtrain vqbuild vqcascade vqmetrics latticebuild latticepare
  35. lspvqtrain: $(OFILES) lspdata.o train.o
  36. $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
  37. residuevqtrain: $(OFILES) residuedata.o train.o
  38. $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
  39. genericvqtrain: $(OFILES) genericdata.o train.o
  40. $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
  41. vqbuild: $(OFILES) build.o
  42. $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
  43. vqcascade: $(OFILES) run.o cascade.o
  44. $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
  45. vqmetrics: $(OFILES) run.o metrics.o
  46. $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
  47. latticebuild: $(OFILES) latticebuild.o
  48. $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
  49. latticepare: $(OFILES) latticepare.o
  50. $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
  51. $(ALLOFILES): $(HFILES)
  52. .c.o:
  53. $(CC) $(CFLAGS) -c $<
  54. $(OFILES): $(HFILES)
  55. clean:
  56. -rm -f *.o *.a test* *~ *.out *.m config.* \
  57. lspvqtrain genericvqtrain residuevqtrain\
  58. vqbuild vqmetrics latticebuild vqcascade latticepare
  59. distclean: clean
  60. -rm -f Makefile