shithub: aacenc

ref: 708eea7d2978b554421e6f485ce237430cfeed80
dir: /Makefile/

View raw version
# 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_se_enc.c bitstream.c enc_tf.c encoder.c mc_enc.c ms.c psych.c pulse.c tns.c transfo.c fastfft.c ltp_enc.c rateconv.c faac.c quant.c huffman.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)