ref: 64c30f5804c755993fe0f711c6f6341ef5271863
dir: /Makefile/
# On X86 machines it is HIGHLY Recomended that if you want to compile with any # -O setting you NOT use -O. use -O2 to -O6. -O is broken. Also note that you # MUST use -ffast-math with -O2 to -O6. If you do not, it will be SLOWER then # using no -O altogether. On a Pentium 3, the fastest optimizations are: # -O6 -march=i686 -finline-functions -funroll-loops -fomit-frame-pointer # -ffast-math # prefix = /usr/local DESTDIR = SOURCE=aac_qc.c aac_se_enc.c bitstream.c enc_tf.c encoder.c is.c mc_enc.c ms.c psych.c pulse.c tns.c transfo.c fastfft.c nok_ltp_enc.c nok_pitch.c rateconv.c faac.c OBJ = $(SOURCE:.c=.o) CC=gcc #PROFILE_OPTS = -g -pg -a CC_OPTS=-DHAS_ULONG $(CFLAGS) $(PROFILE_OPTS) LD_OPTS= TARGETS=faac all: $(TARGETS) faac: $(OBJ) Makefile $(CC) $(LD_OPTS) -o faac $(OBJ) -lsndfile -lm $(PROFILE_OPTS) %.o: %.c $(CC) $(CC_OPTS) -c $< -o $@ install: @if test -f faac; then \ install -d ${DESTDIR}${prefix}/bin && \ install faac ${DESTDIR}${prefix}/bin; \ fi uninstall: @rm -f ${DESTDIR}${prefix}/bin/faac clean: @rm -f *.o $(TARGETS)