ref: 95117260f597531ae1dd68190ffeb65350871fb6
parent: 892fd9297717d2f60fd56856e96d45b202945f0a
author: Gregory Maxwell <greg@xiph.org>
date: Sat Dec 8 20:47:54 EST 2012
Makefile.unix updates for flac support.
--- a/Makefile.unix
+++ b/Makefile.unix
@@ -3,7 +3,7 @@
#This makefile exists as a fallback where autotools isn't working.
#CC=gcc
CFLAGS := -DPACKAGE='"opus-tools"' -DVERSION='"0.1.6"' -DOPUSTOOLS -O2 -g -c -Wall -Wextra -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT $(CFLAGS)
-INCLUDES := -I../opus/include
+INCLUDES := -I../opus/include -I/usr/include/FLAC
ifneq (,$(findstring mingw,$(CC)))
INCLUDES += -Iwin32
@@ -23,8 +23,8 @@
.c.o:
$(CC) $(CFLAGS) $(INCLUDES) $< -o $@
-opusenc: src/opus_header.o src/opusenc.o src/resample.o src/audio-in.o src/diag_range.o src/lpc.o $(COMMON_OBJS)
- $(CC) $(LDFLAGS) $^ -o $@ ../opus/.libs/libopus.a -lm -logg $(LIBS)
+opusenc: src/opus_header.o src/opusenc.o src/resample.o src/audio-in.o src/diag_range.o src/lpc.o src/flac.o $(COMMON_OBJS)
+ $(CC) $(LDFLAGS) $^ -o $@ ../opus/.libs/libopus.a -lm -logg -lFLAC $(LIBS)
opusdec: src/opus_header.o src/wav_io.o src/wave_out.o src/opusdec.o src/resample.o src/diag_range.o $(COMMON_OBJS)
$(CC) $(LDFLAGS) $^ -o $@ ../opus/.libs/libopus.a -lm -logg $(LIBS)