shithub: aacenc

Download patch

ref: 65a492042055de893252e525106f57d47222b8cd
parent: 8c68332f1a22aae7acf97a9118181a780448d609
author: oxygene <oxygene>
date: Wed Feb 16 18:51:35 EST 2000

Install target added.

--- a/Makefile
+++ b/Makefile
@@ -1,20 +1,31 @@
+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
 
-CC=gcc
 OBJ = $(SOURCE:.c=.o)
 
-CC_OPTS=-DHAS_ULONG -O9 -funroll-loops -finline-functions
+CC=gcc
+
+CC_OPTS=-DHAS_ULONG -O3 -funroll-loops -finline-functions
 LD_OPTS=
 
 TARGETS=faac
 
-%.o: %.c
-	$(CC) $(CC_OPTS) -c $< -o $@	
+all: $(TARGETS)
 
 faac: $(OBJ) Makefile
 	$(CC) $(LD_OPTS) -o faac $(OBJ) -lsndfile -lm
 
-all: $(TARGETS)
+%.o: %.c
+	$(CC) $(CC_OPTS) -c $< -o $@	
 
+install:
+	@if test -f faac; then \
+	  install -d ${DESTDIR}${prefix}/bin && \
+	  install faac ${DESTDIR}${prefix}/bin; \
+	fi
+
 clean:
-	rm *.o $(TARGETS)
\ No newline at end of file
+	@rm -f *.o $(TARGETS)