shithub: opus-tools

ref: c83e66fdcd3e78602b7b56dd037ef6d7ba7ee5a3
dir: /src/Makefile/

View raw version
CC=gcc
CFLAGS=-O2 -g -c -Wall -DHAVE_GETOPT_H -DEXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT
INCLUDES=-I../../opus/src -I../../opus/libcelt

all: opusenc opusdec

.c.o:
	$(CC) $(CFLAGS) $(INCLUDES) $< -o $@

opusenc: opus_header.o wav_io.o opusenc.o resample.o
	gcc opus_header.o wav_io.o opusenc.o resample.o -o opusenc ../../opus/float/.libs/libopus.a -lm -logg

opusdec: opus_header.o wav_io.o wave_out.o opusdec.o resample.o
	gcc wave_out.o opus_header.o wav_io.o opusdec.o resample.o -o opusdec ../../opus/float/.libs/libopus.a -lm -logg

clean:
	rm -f *.o opusenc opusdec