shithub: opus-tools

ref: bb0ca0a787f55b25627adf4f79c0d5189c0c105b
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