CFLAGS = -Wall -Wno-strict-overflow -std=gnu11 -fPIC -g -O2 -I. -lm 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 codebookjmv.c codebooknewamp1_energy.c \ codebooknewamp1.c codec2.c codec2_fft.c interp.c kiss_fft.c kiss_fftr.c \ lpc.c lsp.c mbest.c newamp1.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