# $Id: Makefile.in,v 1.7 2000/01/06 13:57:09 xiphmont Exp $ ############################################################################### # # # To build a production vorbis (preferrably using gmake), just type 'make'. # # To build with debugging or profiling information, use 'make debug' or # # 'make profile' respectively. 'make clean' is a good idea between builds # # with different target names, or before a final build. # # # ############################################################################### # DO NOT EDIT BELOW! ########################################################## # (unless, of course, you know what you are doing :) ########################## @SET_MAKE@ FLAGS=-I. -I../include @TYPESIZES@ @CFLAGS@ OPT=@OPT@ $(FLAGS) DEBUG=@DEBUG@ $(FLAGS) PROFILE=@PROFILE@ $(FLAGS) CC=@CC@ LD=@CC@ LDFLAGS=@LDFLAGS@ $(FLAGS) AR=@AR@ RANLIB=@RANLIB@ LIBS=@LIBS@ -lm HFILES = ../include/vorbis/codebook.h vqgen.h vqext.h bookutil.h OFILES = vqgen.o vqsplit.o bookutil.o ALLOFILES = $(OFILES) lspdata.o genericdata.o train.o build.o run.o\ cascade.o partition.o metrics.o all: $(MAKE) target CFLAGS="$(OPT)" debug: $(MAKE) target CFLAGS="$(DEBUG)" profile: $(MAKE) target CFLAGS="$(PROFILE)" target: lspvqtrain genericvqtrain vqbuild vqcascade vqpartition vqmetrics lspvqtrain: $(OFILES) lspdata.o train.o $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS) genericvqtrain: $(OFILES) genericdata.o train.o $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS) vqbuild: $(OFILES) build.o $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS) vqcascade: $(OFILES) run.o cascade.o $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS) vqpartition: $(OFILES) run.o partition.o $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS) vqmetrics: $(OFILES) run.o metrics.o $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS) $(ALLOFILES): $(HFILES) .c.o: $(CC) $(CFLAGS) -c $< $(OFILES): $(HFILES) clean: -rm -f *.o *.a test* *~ *.out *.m config.* \ lspvqtrain distclean: clean -rm -f Makefile