ref: 0a245e1864fa69aeb86b444a7d98bee54ad2e1c1
dir: /Makefile/
# On X86 machines it is HIGHLY Recomended that you compile only with
# -march=i686 -finline-functions -funroll-loops -fomit-frame-pointer
# Do NOT Compile with -O of ANY kind. It looks like gcc's optimizations are
# either starving registers, or causing huge cache misses for Intel Processors.
# Its currently twice as fast with no -O than any -O.
#
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 winswitch.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)