summaryrefslogtreecommitdiff
path: root/Makefile
blob: a716871505f0c7e0d51cb6c00378cf85c5eb5e09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CFLAGS =  -Wall -Wno-strict-overflow -std=gnu11 -fPIC -g -O2 -I.
CFLAGS += -DHORUS_L2_RX -DINTERLEAVER -DRUN_TIME_TABLES -DSCRAMBLER -Dcodec2_EXPORTS
CFLAGS += -Wno-incompatible-pointer-types-discards-qualifiers

LIBSRC=codebook.c codebookd.c codebookge.c codebookmel.c codebooklspmelvq.c codebookjvm.c \
	codebooknewamp1.c codebooknewamp1_energy.c codebooknewamp2.c codebooknewamp2_energy.c \
	codec2.c codec2_fft.c interp.c kiss_fft.c kiss_fftr.c lpc.c lsp.c mbest.c \
	newamp1.c newamp2.c nlp.c pack.c phase.c postfilter.c quantise.c sine.c

all: main

main: main.c $(LIBSRC)
	clang $(CFLAGS) -o $@ $^

.PHONY: clean
clean:
	rm -f main