3 Star 7 Fork 6

Gitee 极速下载/liquid-dsp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/jgaeddert/liquid-dsp
克隆/下载
makefile.in 60.37 KB
一键复制 编辑 原始数据 按行查看 历史
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888
# Copyright (c) 2007 - 2024 Joseph Gaeddert
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
#
# Makefile for liquid-dsp libraries
#
# Targets:
# all : dynamic shared-library object (e.g. libliquid.so)
# install : install the dynamic shared library object and headers
# uninstall : uninstall the library and header file(s)
# clean : clean all targets (bench, check, examples, etc)
# distclean : removes everything except the originally distributed files
# check : build and run autotest program
# bench : build and run benchmarking program
# examples : build all examples
# sandbox : build all sandbox examples
# programs : build all programs, but don't run anything
# world : build absolutely everything (but don't install)
#
# clean-modules : clean all modules
# clean-examples : clean examples programs
# clean-sandbox : clean sandbox programs
# clean-check : clean autotest program
# clean-bench : clean benchmark program
#
# autoconf initialization macros
NAME := @PACKAGE_NAME@
VERSION := @PACKAGE_VERSION@
BUGREPORT := @PACKAGE_BUGREPORT@
AR_LIB := @AR_LIB@
SH_LIB := @SH_LIB@
SOVERSION := 1
# paths
prefix := @prefix@
exec_prefix := @exec_prefix@
VPATH := @srcdir@
srcdir := @srcdir@
libdir := @libdir@
include_dirs := . ./include
# programs
CC := @CC@
CXX := g++
MV := mv -f
RM := rm -f
SED := @SED@
GREP := @GREP@
AR := @AR@
LIBTOOL := @LIBTOOL@
RANLIB := @RANLIB@
# flags
INCLUDE_CFLAGS = $(addprefix -I,$(include_dirs))
COVERAGE_FLAGS = @COVERAGE_OPTION@ # dynamic library linker needs separate flag
CONFIG_CFLAGS = @CFLAGS@ @DEBUG_MSG_OPTION@ @ARCH_OPTION@ ${COVERAGE_FLAGS}
CPPFLAGS = @CPPFLAGS@ $(INCLUDE_CFLAGS)
CFLAGS = $(CONFIG_CFLAGS) -Wall -fPIC -Wno-deprecated -Wno-deprecated-declarations
CXXFLAGS = $(CFLAGS) -std=c++14 -Wno-return-type-c-linkage
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
PATHSEP = /
#
# liquid headers
#
headers_install := liquid.h
headers := $(headers_install) liquid.internal.h
include_headers := $(addprefix include/,$(headers))
##
## liquid-dsp modules
##
all:
# additional targets to clean
extra_clean :=
# additional autotest objects
autotest_extra_obj :=
# additional benchmark objects
benchmark_extra_obj :=
#
# MODULE : agc - automatic gain control
#
# object files
agc_objects = \
src/agc/src/agc_crcf.o \
src/agc/src/agc_rrrf.o \
agc_prototypes := \
src/agc/src/agc.proto.c \
# explicit targets and dependencies
src/agc/src/agc_crcf.o : %.o : %.c $(include_headers) $(agc_prototypes)
src/agc/src/agc_rrrf.o : %.o : %.c $(include_headers) $(agc_prototypes)
# autotests
agc_autotests := \
src/agc/tests/agc_crcf_autotest.c \
# benchmarks
agc_benchmarks := \
src/agc/bench/agc_crcf_benchmark.c \
#
# MODULE : audio
#
# described below
audio_objects := \
src/audio/src/cvsd.o \
src/cvsd/src/cvsd.o : %.o : %.c $(include_headers)
audio_autotests := \
src/audio/tests/cvsd_autotest.c \
audio_benchmarks := \
src/audio/bench/cvsd_benchmark.c \
#
# MODULE : buffer
#
buffer_objects := \
src/buffer/src/bufferf.o \
src/buffer/src/buffercf.o \
# src/buffer/src/buffer.proto.c
buffer_prototypes := \
src/buffer/src/cbuffer.proto.c \
src/buffer/src/wdelay.proto.c \
src/buffer/src/window.proto.c \
src/buffer/src/bufferf.o : %.o : %.c $(include_headers) $(buffer_prototypes)
src/buffer/src/buffercf.o : %.o : %.c $(include_headers) $(buffer_prototypes)
buffer_autotests := \
src/buffer/tests/cbuffer_autotest.c \
src/buffer/tests/wdelay_autotest.c \
src/buffer/tests/buffer_window_autotest.c \
buffer_benchmarks := \
src/buffer/bench/cbuffercf_benchmark.c \
src/buffer/bench/window_push_benchmark.c \
src/buffer/bench/window_read_benchmark.c \
#
# MODULE : channel
#
channel_objects := \
src/channel/src/channel_cccf.o \
channel_prototypes := \
src/channel/src/channel.proto.c \
src/channel/src/tvmpch.proto.c \
src/channel/src/channel_cccf.o : %.o : %.c $(include_headers) $(channel_prototypes)
channel_autotests := \
src/channel/tests/channel_copy_autotest.c \
src/channel/tests/tvmpch_copy_autotest.c \
#src/channel/tests/channel_cccf_autotest.c
channel_benchmarks := \
#src/channel/bench/channel_cccf_benchmark.c
#
# MODULE : dotprod
#
dotprod_objects := \
@MLIBS_DOTPROD@ \
src/dotprod/src/dotprod_cccf.o : %.o : %.c $(include_headers) src/dotprod/src/dotprod.proto.c
src/dotprod/src/dotprod_crcf.o : %.o : %.c $(include_headers) src/dotprod/src/dotprod.proto.c
src/dotprod/src/dotprod_rrrf.o : %.o : %.c $(include_headers) src/dotprod/src/dotprod.proto.c
src/dotprod/src/sumsq.o : %.o : %.c $(include_headers)
# specific machine architectures
# AltiVec
src/dotprod/src/dotprod_rrrf.av.o : %.o : %.c $(include_headers)
# MMX/SSE2
src/dotprod/src/dotprod_rrrf.mmx.o : %.o : %.c $(include_headers)
src/dotprod/src/dotprod_crcf.mmx.o : %.o : %.c $(include_headers)
src/dotprod/src/dotprod_cccf.mmx.o : %.o : %.c $(include_headers)
src/dotprod/src/sumsq.mmx.o : %.o : %.c $(include_headers)
# SSE4.1/2
src/dotprod/src/dotprod_rrrf.sse4.o : %.o : %.c $(include_headers)
# AVX
src/dotprod/src/sumsq.avx.o : %.o : %.c $(include_headers)
# ARM Neon
src/dotprod/src/dotprod_rrrf.neon.o : %.o : %.c $(include_headers)
src/dotprod/src/dotprod_crcf.neon.o : %.o : %.c $(include_headers)
src/dotprod/src/dotprod_cccf.neon.o : %.o : %.c $(include_headers)
dotprod_autotests := \
src/dotprod/tests/dotprod_rrrf_autotest.c \
src/dotprod/tests/dotprod_crcf_autotest.c \
src/dotprod/tests/dotprod_cccf_autotest.c \
src/dotprod/tests/sumsqf_autotest.c \
src/dotprod/tests/sumsqcf_autotest.c \
dotprod_benchmarks := \
src/dotprod/bench/dotprod_cccf_benchmark.c \
src/dotprod/bench/dotprod_crcf_benchmark.c \
src/dotprod/bench/dotprod_rrrf_benchmark.c \
src/dotprod/bench/sumsqf_benchmark.c \
src/dotprod/bench/sumsqcf_benchmark.c \
#
# MODULE : equalization
#
equalization_objects := \
src/equalization/src/equalizer_cccf.o \
src/equalization/src/equalizer_rrrf.o \
equalization_prototypes := \
src/equalization/src/eqlms.proto.c \
src/equalization/src/eqrls.proto.c \
$(equalization_objects) : %.o : %.c $(include_headers) $(equalization_prototypes)
# autotests
equalization_autotests := \
src/equalization/tests/eqlms_cccf_autotest.c \
src/equalization/tests/eqrls_rrrf_autotest.c \
# benchmarks
equalization_benchmarks := \
src/equalization/bench/eqlms_cccf_benchmark.c \
src/equalization/bench/eqrls_cccf_benchmark.c \
#
# MODULE : fec - forward error-correction
#
fec_objects := \
src/fec/src/crc.o \
src/fec/src/fec.o \
src/fec/src/fec_conv.o \
src/fec/src/fec_conv_poly.o \
src/fec/src/fec_conv_pmatrix.o \
src/fec/src/fec_conv_punctured.o \
src/fec/src/fec_golay2412.o \
src/fec/src/fec_hamming74.o \
src/fec/src/fec_hamming84.o \
src/fec/src/fec_hamming128.o \
src/fec/src/fec_hamming1511.o \
src/fec/src/fec_hamming3126.o \
src/fec/src/fec_hamming128_gentab.o \
src/fec/src/fec_pass.o \
src/fec/src/fec_rep3.o \
src/fec/src/fec_rep5.o \
src/fec/src/fec_rs.o \
src/fec/src/fec_secded2216.o \
src/fec/src/fec_secded3932.o \
src/fec/src/fec_secded7264.o \
src/fec/src/interleaver.o \
src/fec/src/packetizer.o \
src/fec/src/sumproduct.o \
# list explicit targets and dependencies here
$(fec_objects) : %.o : %.c $(include_headers)
# autotests
fec_autotests := \
src/fec/tests/crc_autotest.c \
src/fec/tests/fec_autotest.c \
src/fec/tests/fec_config_autotest.c \
src/fec/tests/fec_copy_autotest.c \
src/fec/tests/fec_soft_autotest.c \
src/fec/tests/fec_golay2412_autotest.c \
src/fec/tests/fec_hamming74_autotest.c \
src/fec/tests/fec_hamming84_autotest.c \
src/fec/tests/fec_hamming128_autotest.c \
src/fec/tests/fec_hamming1511_autotest.c \
src/fec/tests/fec_hamming3126_autotest.c \
src/fec/tests/fec_reedsolomon_autotest.c \
src/fec/tests/fec_rep3_autotest.c \
src/fec/tests/fec_rep5_autotest.c \
src/fec/tests/fec_secded2216_autotest.c \
src/fec/tests/fec_secded3932_autotest.c \
src/fec/tests/fec_secded7264_autotest.c \
src/fec/tests/interleaver_autotest.c \
src/fec/tests/packetizer_copy_autotest.c \
src/fec/tests/packetizer_autotest.c \
# benchmarks
fec_benchmarks := \
src/fec/bench/crc_benchmark.c \
src/fec/bench/fec_encode_benchmark.c \
src/fec/bench/fec_decode_benchmark.c \
src/fec/bench/fecsoft_decode_benchmark.c \
src/fec/bench/sumproduct_benchmark.c \
src/fec/bench/interleaver_benchmark.c \
src/fec/bench/packetizer_decode_benchmark.c \
#
# MODULE : fft - fast Fourier transforms, discrete sine/cosine transforms, etc.
#
fft_objects := \
src/fft/src/fftf.o \
src/fft/src/spgramcf.o \
src/fft/src/spgramf.o \
src/fft/src/fft_utilities.o \
# explicit targets and dependencies
fft_prototypes := \
src/fft/src/fft_common.proto.c \
src/fft/src/fft_dft.proto.c \
src/fft/src/fft_radix2.proto.c \
src/fft/src/fft_mixed_radix.proto.c \
src/fft/src/fft_rader.proto.c \
src/fft/src/fft_rader2.proto.c \
src/fft/src/fft_r2r_1d.proto.c \
src/fft/src/fftf.o : %.o : %.c $(include_headers) $(fft_prototypes)
src/fft/src/asgram.o : %.o : %.c $(include_headers)
src/fft/src/dct.o : %.o : %.c $(include_headers)
src/fft/src/fftf.o : %.o : %.c $(include_headers)
src/fft/src/fft_utilities.o : %.o : %.c $(include_headers)
src/fft/src/mdct.o : %.o : %.c $(include_headers)
src/fft/src/spgramcf.o : %.o : %.c $(include_headers) src/fft/src/asgram.proto.c src/fft/src/spgram.proto.c src/fft/src/spwaterfall.proto.c
src/fft/src/spgramf.o : %.o : %.c $(include_headers) src/fft/src/asgram.proto.c src/fft/src/spgram.proto.c src/fft/src/spwaterfall.proto.c
# fft autotest scripts
fft_autotests := \
src/fft/tests/asgram_autotest.c \
src/fft/tests/fft_small_autotest.c \
src/fft/tests/fft_radix2_autotest.c \
src/fft/tests/fft_composite_autotest.c \
src/fft/tests/fft_prime_autotest.c \
src/fft/tests/fft_r2r_autotest.c \
src/fft/tests/fft_shift_autotest.c \
src/fft/tests/spgram_autotest.c \
src/fft/tests/spwaterfall_autotest.c \
# additional autotest objects
autotest_extra_obj += \
src/fft/tests/fft_runtest.o \
src/fft/tests/data/fft_data_2.o \
src/fft/tests/data/fft_data_3.o \
src/fft/tests/data/fft_data_4.o \
src/fft/tests/data/fft_data_5.o \
src/fft/tests/data/fft_data_6.o \
src/fft/tests/data/fft_data_7.o \
src/fft/tests/data/fft_data_8.o \
src/fft/tests/data/fft_data_9.o \
src/fft/tests/data/fft_data_10.o \
src/fft/tests/data/fft_data_16.o \
src/fft/tests/data/fft_data_17.o \
src/fft/tests/data/fft_data_20.o \
src/fft/tests/data/fft_data_21.o \
src/fft/tests/data/fft_data_22.o \
src/fft/tests/data/fft_data_24.o \
src/fft/tests/data/fft_data_26.o \
src/fft/tests/data/fft_data_30.o \
src/fft/tests/data/fft_data_32.o \
src/fft/tests/data/fft_data_35.o \
src/fft/tests/data/fft_data_36.o \
src/fft/tests/data/fft_data_43.o \
src/fft/tests/data/fft_data_48.o \
src/fft/tests/data/fft_data_63.o \
src/fft/tests/data/fft_data_64.o \
src/fft/tests/data/fft_data_79.o \
src/fft/tests/data/fft_data_92.o \
src/fft/tests/data/fft_data_96.o \
src/fft/tests/data/fft_data_120.o \
src/fft/tests/data/fft_data_130.o \
src/fft/tests/data/fft_data_157.o \
src/fft/tests/data/fft_data_192.o \
src/fft/tests/data/fft_data_317.o \
src/fft/tests/data/fft_data_509.o \
src/fft/tests/data/fft_r2rdata_8.o \
src/fft/tests/data/fft_r2rdata_27.o \
src/fft/tests/data/fft_r2rdata_32.o \
# fft benchmark scripts
fft_benchmarks := \
src/fft/bench/fft_composite_benchmark.c \
src/fft/bench/fft_prime_benchmark.c \
src/fft/bench/fft_radix2_benchmark.c \
src/fft/bench/fft_r2r_benchmark.c \
src/fft/bench/spgramcf_benchmark.c \
# additional benchmark objects
benchmark_extra_obj := \
src/fft/bench/fft_runbench.o \
#
# MODULE : filter
#
filter_objects := \
src/filter/src/bessel.o \
src/filter/src/butter.o \
src/filter/src/cheby1.o \
src/filter/src/cheby2.o \
src/filter/src/ellip.o \
src/filter/src/filter_rrrf.o \
src/filter/src/filter_crcf.o \
src/filter/src/filter_cccf.o \
src/filter/src/firdes.o \
src/filter/src/firdespm.o \
src/filter/src/firdespm_halfband.o \
src/filter/src/fnyquist.o \
src/filter/src/gmsk.o \
src/filter/src/group_delay.o \
src/filter/src/hM3.o \
src/filter/src/iirdes.pll.o \
src/filter/src/iirdes.o \
src/filter/src/lpc.o \
src/filter/src/rcos.o \
src/filter/src/rkaiser.o \
src/filter/src/rrcos.o \
# list explicit targets and dependencies here
filter_prototypes := \
src/filter/src/autocorr.proto.c \
src/filter/src/dds.proto.c \
src/filter/src/fdelay.proto.c \
src/filter/src/fftfilt.proto.c \
src/filter/src/firdecim.proto.c \
src/filter/src/firfarrow.proto.c \
src/filter/src/firfilt.proto.c \
src/filter/src/firhilb.proto.c \
src/filter/src/firinterp.proto.c \
src/filter/src/firpfb.proto.c \
src/filter/src/iirdecim.proto.c \
src/filter/src/iirfilt.proto.c \
src/filter/src/iirfiltsos.proto.c \
src/filter/src/iirhilb.proto.c \
src/filter/src/iirinterp.proto.c \
src/filter/src/msresamp.proto.c \
src/filter/src/msresamp2.proto.c \
src/filter/src/ordfilt.proto.c \
src/filter/src/rresamp.proto.c \
src/filter/src/resamp.fixed.proto.c \
src/filter/src/resamp2.proto.c \
src/filter/src/symsync.proto.c \
src/filter/src/bessel.o : %.o : %.c $(include_headers)
src/filter/src/bessel.o : %.o : %.c $(include_headers)
src/filter/src/butter.o : %.o : %.c $(include_headers)
src/filter/src/cheby1.o : %.o : %.c $(include_headers)
src/filter/src/cheby2.o : %.o : %.c $(include_headers)
src/filter/src/ellip.o : %.o : %.c $(include_headers)
src/filter/src/filter_rrrf.o : %.o : %.c $(include_headers) $(filter_prototypes)
src/filter/src/filter_crcf.o : %.o : %.c $(include_headers) $(filter_prototypes)
src/filter/src/filter_cccf.o : %.o : %.c $(include_headers) $(filter_prototypes)
src/filter/src/firdes.o : %.o : %.c $(include_headers)
src/filter/src/firdespm.o : %.o : %.c $(include_headers)
src/filter/src/group_delay.o : %.o : %.c $(include_headers)
src/filter/src/hM3.o : %.o : %.c $(include_headers)
src/filter/src/iirdes.pll.o : %.o : %.c $(include_headers)
src/filter/src/iirdes.o : %.o : %.c $(include_headers)
src/filter/src/lpc.o : %.o : %.c $(include_headers)
src/filter/src/rcos.o : %.o : %.c $(include_headers)
src/filter/src/rkaiser.o : %.o : %.c $(include_headers)
src/filter/src/rrcos.o : %.o : %.c $(include_headers)
filter_autotests := \
src/filter/tests/dds_cccf_autotest.c \
src/filter/tests/fdelay_rrrf_autotest.c \
src/filter/tests/fftfilt_xxxf_autotest.c \
src/filter/tests/filter_crosscorr_autotest.c \
src/filter/tests/firdecim_autotest.c \
src/filter/tests/firdecim_xxxf_autotest.c \
src/filter/tests/firdes_autotest.c \
src/filter/tests/firdespm_autotest.c \
src/filter/tests/firfilt_autotest.c \
src/filter/tests/firfilt_cccf_notch_autotest.c \
src/filter/tests/firfilt_coefficients_autotest.c \
src/filter/tests/firfilt_rnyquist_autotest.c \
src/filter/tests/firfilt_xxxf_autotest.c \
src/filter/tests/firfilt_copy_autotest.c \
src/filter/tests/firhilb_autotest.c \
src/filter/tests/firinterp_autotest.c \
src/filter/tests/firpfb_autotest.c \
src/filter/tests/groupdelay_autotest.c \
src/filter/tests/iirdecim_autotest.c \
src/filter/tests/iirdes_autotest.c \
src/filter/tests/iirdes_support_autotest.c \
src/filter/tests/iirfilt_autotest.c \
src/filter/tests/iirfilt_xxxf_autotest.c \
src/filter/tests/iirfiltsos_autotest.c \
src/filter/tests/iirhilb_autotest.c \
src/filter/tests/iirinterp_autotest.c \
src/filter/tests/lpc_autotest.c \
src/filter/tests/msresamp_crcf_autotest.c \
src/filter/tests/msresamp2_crcf_autotest.c \
src/filter/tests/ordfilt_autotest.c \
src/filter/tests/rresamp_crcf_autotest.c \
src/filter/tests/rresamp_crcf_partition_autotest.c \
src/filter/tests/resamp_crcf_autotest.c \
src/filter/tests/resamp2_crcf_autotest.c \
src/filter/tests/rkaiser_autotest.c \
src/filter/tests/symsync_copy_autotest.c \
src/filter/tests/symsync_crcf_autotest.c \
src/filter/tests/symsync_rrrf_autotest.c \
# additional autotest objects
autotest_extra_obj += \
src/filter/tests/fftfilt_runtest.o \
\
src/filter/tests/data/fftfilt_rrrf_data_h4x256.o \
src/filter/tests/data/fftfilt_crcf_data_h4x256.o \
src/filter/tests/data/fftfilt_cccf_data_h4x256.o \
\
src/filter/tests/data/fftfilt_rrrf_data_h7x256.o \
src/filter/tests/data/fftfilt_crcf_data_h7x256.o \
src/filter/tests/data/fftfilt_cccf_data_h7x256.o \
\
src/filter/tests/data/fftfilt_rrrf_data_h13x256.o \
src/filter/tests/data/fftfilt_crcf_data_h13x256.o \
src/filter/tests/data/fftfilt_cccf_data_h13x256.o \
\
src/filter/tests/data/fftfilt_rrrf_data_h23x256.o \
src/filter/tests/data/fftfilt_crcf_data_h23x256.o \
src/filter/tests/data/fftfilt_cccf_data_h23x256.o \
\
src/filter/tests/firdecim_runtest.o \
\
src/filter/tests/data/firdecim_rrrf_data_M2h4x20.o \
src/filter/tests/data/firdecim_crcf_data_M2h4x20.o \
src/filter/tests/data/firdecim_cccf_data_M2h4x20.o \
\
src/filter/tests/data/firdecim_rrrf_data_M3h7x30.o \
src/filter/tests/data/firdecim_crcf_data_M3h7x30.o \
src/filter/tests/data/firdecim_cccf_data_M3h7x30.o \
\
src/filter/tests/data/firdecim_rrrf_data_M4h13x40.o \
src/filter/tests/data/firdecim_crcf_data_M4h13x40.o \
src/filter/tests/data/firdecim_cccf_data_M4h13x40.o \
\
src/filter/tests/data/firdecim_rrrf_data_M5h23x50.o \
src/filter/tests/data/firdecim_crcf_data_M5h23x50.o \
src/filter/tests/data/firdecim_cccf_data_M5h23x50.o \
\
src/filter/tests/firfilt_runtest.o \
\
src/filter/tests/data/firfilt_rrrf_data_h4x8.o \
src/filter/tests/data/firfilt_crcf_data_h4x8.o \
src/filter/tests/data/firfilt_cccf_data_h4x8.o \
\
src/filter/tests/data/firfilt_rrrf_data_h7x16.o \
src/filter/tests/data/firfilt_crcf_data_h7x16.o \
src/filter/tests/data/firfilt_cccf_data_h7x16.o \
\
src/filter/tests/data/firfilt_rrrf_data_h13x32.o \
src/filter/tests/data/firfilt_crcf_data_h13x32.o \
src/filter/tests/data/firfilt_cccf_data_h13x32.o \
\
src/filter/tests/data/firfilt_rrrf_data_h23x64.o \
src/filter/tests/data/firfilt_crcf_data_h23x64.o \
src/filter/tests/data/firfilt_cccf_data_h23x64.o \
\
src/filter/tests/iirfilt_runtest.o \
\
src/filter/tests/data/iirfilt_rrrf_data_h3x64.o \
src/filter/tests/data/iirfilt_crcf_data_h3x64.o \
src/filter/tests/data/iirfilt_cccf_data_h3x64.o \
\
src/filter/tests/data/iirfilt_rrrf_data_h5x64.o \
src/filter/tests/data/iirfilt_crcf_data_h5x64.o \
src/filter/tests/data/iirfilt_cccf_data_h5x64.o \
\
src/filter/tests/data/iirfilt_rrrf_data_h7x64.o \
src/filter/tests/data/iirfilt_crcf_data_h7x64.o \
src/filter/tests/data/iirfilt_cccf_data_h7x64.o \
filter_benchmarks := \
src/filter/bench/fftfilt_crcf_benchmark.c \
src/filter/bench/firdecim_crcf_benchmark.c \
src/filter/bench/firhilb_benchmark.c \
src/filter/bench/firinterp_crcf_benchmark.c \
src/filter/bench/firfilt_crcf_benchmark.c \
src/filter/bench/iirdecim_crcf_benchmark.c \
src/filter/bench/iirfilt_crcf_benchmark.c \
src/filter/bench/iirinterp_crcf_benchmark.c \
src/filter/bench/rresamp_crcf_benchmark.c \
src/filter/bench/resamp_crcf_benchmark.c \
src/filter/bench/resamp2_crcf_benchmark.c \
src/filter/bench/symsync_crcf_benchmark.c \
#
# MODULE : framing
#
framing_objects := \
src/framing/src/bpacketgen.o \
src/framing/src/bpacketsync.o \
src/framing/src/detector_cccf.o \
src/framing/src/dsssframe64gen.o \
src/framing/src/dsssframe64sync.o \
src/framing/src/dsssframegen.o \
src/framing/src/dsssframesync.o \
src/framing/src/framedatastats.o \
src/framing/src/framesyncstats.o \
src/framing/src/framegen64.o \
src/framing/src/framesync64.o \
src/framing/src/framingcf.o \
src/framing/src/framing_rrrf.o \
src/framing/src/framing_crcf.o \
src/framing/src/framing_cccf.o \
src/framing/src/flexframegen.o \
src/framing/src/flexframesync.o \
src/framing/src/fskframegen.o \
src/framing/src/fskframesync.o \
src/framing/src/gmskframegen.o \
src/framing/src/gmskframesync.o \
src/framing/src/ofdmflexframegen.o \
src/framing/src/ofdmflexframesync.o \
src/framing/src/qpilotgen.o \
src/framing/src/qpilotsync.o \
# list explicit targets and dependencies here
framing_prototypes_gen := \
src/framing/src/msource.proto.c \
src/framing/src/qpacketmodem.proto.c \
src/framing/src/qsource.proto.c \
src/framing/src/symstream.proto.c \
src/framing/src/symstreamr.proto.c \
framing_prototypes_sync := \
src/framing/src/bpresync.proto.c \
src/framing/src/bsync.proto.c \
src/framing/src/presync.proto.c \
src/framing/src/qdetector.proto.c \
src/framing/src/qdsync.proto.c \
src/framing/src/symtrack.proto.c \
src/framing/src/framingcf.o : %.o : %.c $(include_headers) ${framing_prototypes_gen}
src/framing/src/framing_rrrf.o : %.o : %.c $(include_headers) ${framing_prototypes_sync}
src/framing/src/framing_crcf.o : %.o : %.c $(include_headers) ${framing_prototypes_sync}
src/framing/src/framing_cccf.o : %.o : %.c $(include_headers) ${framing_prototypes_sync}
framing_autotests := \
src/framing/tests/bpacketsync_autotest.c \
src/framing/tests/bsync_autotest.c \
src/framing/tests/detector_autotest.c \
src/framing/tests/dsssframe64_autotest.c \
src/framing/tests/dsssframesync_autotest.c \
src/framing/tests/flexframesync_autotest.c \
src/framing/tests/framesync64_autotest.c \
src/framing/tests/fskframesync_autotest.c \
src/framing/tests/gmskframe_autotest.c \
src/framing/tests/msource_autotest.c \
src/framing/tests/ofdmflexframe_autotest.c \
src/framing/tests/qdetector_cccf_autotest.c \
src/framing/tests/qdetector_cccf_copy_autotest.c \
src/framing/tests/qdsync_cccf_autotest.c \
src/framing/tests/qpacketmodem_autotest.c \
src/framing/tests/qpilotsync_autotest.c \
src/framing/tests/qsource_autotest.c \
src/framing/tests/symstreamcf_autotest.c \
src/framing/tests/symstreamcf_delay_autotest.c \
src/framing/tests/symstreamrcf_autotest.c \
src/framing/tests/symstreamrcf_delay_autotest.c \
src/framing/tests/symtrack_cccf_autotest.c \
framing_benchmarks := \
src/framing/bench/presync_benchmark.c \
src/framing/bench/bpacketsync_benchmark.c \
src/framing/bench/bpresync_benchmark.c \
src/framing/bench/bsync_benchmark.c \
src/framing/bench/detector_benchmark.c \
src/framing/bench/flexframesync_benchmark.c \
src/framing/bench/framesync64_benchmark.c \
src/framing/bench/gmskframesync_benchmark.c \
src/framing/bench/qdetector_benchmark.c \
#
# MODULE : math
#
math_objects := \
src/math/src/poly.o \
src/math/src/polyc.o \
src/math/src/polyf.o \
src/math/src/polycf.o \
src/math/src/math.o \
src/math/src/math.bessel.o \
src/math/src/math.gamma.o \
src/math/src/math.complex.o \
src/math/src/math.trig.o \
src/math/src/modular_arithmetic.o \
src/math/src/poly.findroots.o \
src/math/src/windows.o \
poly_prototypes := \
src/math/src/poly.common.proto.c \
src/math/src/poly.expand.proto.c \
src/math/src/poly.lagrange.proto.c \
src/math/src/poly.o : %.o : %.c $(include_headers) $(poly_prototypes)
src/math/src/polyc.o : %.o : %.c $(include_headers) $(poly_prototypes)
src/math/src/polyf.o : %.o : %.c $(include_headers) $(poly_prototypes)
src/math/src/polycf.o : %.o : %.c $(include_headers) $(poly_prototypes)
src/math/src/math.o : %.o : %.c $(include_headers)
src/math/src/math.bessel.o : %.o : %.c $(include_headers)
src/math/src/math.gamma.o : %.o : %.c $(include_headers)
src/math/src/math.complex.o : %.o : %.c $(include_headers)
src/math/src/math.trig.o : %.o : %.c $(include_headers)
src/math/src/modular_arithmetic.o : %.o : %.c $(include_headers)
src/math/src/windows.o : %.o : %.c $(include_headers)
math_autotests := \
src/math/tests/gcd_autotest.c \
src/math/tests/math_window_autotest.c \
src/math/tests/math_autotest.c \
src/math/tests/math_bessel_autotest.c \
src/math/tests/math_gamma_autotest.c \
src/math/tests/math_complex_autotest.c \
src/math/tests/polynomial_autotest.c \
src/math/tests/polynomial_findroots_autotest.c \
src/math/tests/prime_autotest.c \
math_benchmarks := \
src/math/bench/polyfit_benchmark.c \
#
# MODULE : matrix
#
matrix_objects := \
src/matrix/src/matrix.o \
src/matrix/src/matrixf.o \
src/matrix/src/matrixc.o \
src/matrix/src/matrixcf.o \
src/matrix/src/smatrix.common.o \
src/matrix/src/smatrixb.o \
src/matrix/src/smatrixf.o \
src/matrix/src/smatrixi.o \
matrix_prototypes := \
src/matrix/src/matrix.base.proto.c \
src/matrix/src/matrix.cgsolve.proto.c \
src/matrix/src/matrix.chol.proto.c \
src/matrix/src/matrix.gramschmidt.proto.c \
src/matrix/src/matrix.inv.proto.c \
src/matrix/src/matrix.linsolve.proto.c \
src/matrix/src/matrix.ludecomp.proto.c \
src/matrix/src/matrix.qrdecomp.proto.c \
src/matrix/src/matrix.math.proto.c \
src/matrix/src/matrix.o : %.o : %.c $(include_headers) $(matrix_prototypes)
src/matrix/src/matrixc.o : %.o : %.c $(include_headers) $(matrix_prototypes)
src/matrix/src/matrixf.o : %.o : %.c $(include_headers) $(matrix_prototypes)
src/matrix/src/matrixcf.o : %.o : %.c $(include_headers) $(matrix_prototypes)
src/matrix/src/smatrixb.o : %.o : %.c $(include_headers) src/matrix/src/smatrix.proto.c
src/matrix/src/smatrixf.o : %.o : %.c $(include_headers) src/matrix/src/smatrix.proto.c
src/matrix/src/smatrixi.o : %.o : %.c $(include_headers) src/matrix/src/smatrix.proto.c
# matrix autotest scripts
matrix_autotests := \
src/matrix/tests/matrixcf_autotest.c \
src/matrix/tests/matrixf_autotest.c \
src/matrix/tests/smatrixb_autotest.c \
src/matrix/tests/smatrixf_autotest.c \
src/matrix/tests/smatrixi_autotest.c \
# additional autotest objects
autotest_extra_obj += \
src/matrix/tests/data/matrixf_data_add.o \
src/matrix/tests/data/matrixf_data_aug.o \
src/matrix/tests/data/matrixf_data_cgsolve.o \
src/matrix/tests/data/matrixf_data_chol.o \
src/matrix/tests/data/matrixf_data_gramschmidt.o \
src/matrix/tests/data/matrixf_data_inv.o \
src/matrix/tests/data/matrixf_data_linsolve.o \
src/matrix/tests/data/matrixf_data_ludecomp.o \
src/matrix/tests/data/matrixf_data_mul.o \
src/matrix/tests/data/matrixf_data_qrdecomp.o \
src/matrix/tests/data/matrixf_data_transmul.o \
\
src/matrix/tests/data/matrixcf_data_add.o \
src/matrix/tests/data/matrixcf_data_aug.o \
src/matrix/tests/data/matrixcf_data_chol.o \
src/matrix/tests/data/matrixcf_data_inv.o \
src/matrix/tests/data/matrixcf_data_linsolve.o \
src/matrix/tests/data/matrixcf_data_ludecomp.o \
src/matrix/tests/data/matrixcf_data_mul.o \
src/matrix/tests/data/matrixcf_data_qrdecomp.o \
src/matrix/tests/data/matrixcf_data_transmul.o \
matrix_benchmarks := \
src/matrix/bench/matrixf_inv_benchmark.c \
src/matrix/bench/matrixf_linsolve_benchmark.c \
src/matrix/bench/matrixf_mul_benchmark.c \
src/matrix/bench/smatrixf_mul_benchmark.c \
#
# MODULE : modem
#
modem_objects := \
src/modem/src/ampmodem.o \
src/modem/src/fskdem.o \
src/modem/src/fskmod.o \
src/modem/src/gmskdem.o \
src/modem/src/gmskmod.o \
src/modem/src/modem.shim.o \
src/modem/src/modemcf.o \
src/modem/src/modem_utilities.o \
src/modem/src/modem_apsk_const.o \
src/modem/src/modem_arb_const.o \
# explicit targets and dependencies
modem_prototypes := \
src/modem/src/cpfskdem.proto.c \
src/modem/src/cpfskmod.proto.c \
src/modem/src/freqdem.proto.c \
src/modem/src/freqmod.proto.c \
src/modem/src/modem_common.proto.c \
src/modem/src/modem_psk.proto.c \
src/modem/src/modem_dpsk.proto.c \
src/modem/src/modem_ask.proto.c \
src/modem/src/modem_qam.proto.c \
src/modem/src/modem_apsk.proto.c \
src/modem/src/modem_bpsk.proto.c \
src/modem/src/modem_qpsk.proto.c \
src/modem/src/modem_ook.proto.c \
src/modem/src/modem_pi4dqpsk.proto.c \
src/modem/src/modem_sqam32.proto.c \
src/modem/src/modem_sqam128.proto.c \
src/modem/src/modem_arb.proto.c \
#src/modem/src/modem_demod_soft_const.c
src/modem/src/modemcf.o : %.o : %.c $(include_headers) $(modem_prototypes)
src/modem/src/modem.shim.o : %.o : %.c $(include_headers)
src/modem/src/gmskmod.o : %.o : %.c $(include_headers)
src/modem/src/gmskdem.o : %.o : %.c $(include_headers)
src/modem/src/ampmodem.o : %.o : %.c $(include_headers)
src/modem/src/freqmodem.o : %.o : %.c $(include_headers)
src/modem/src/modem_utilities.o : %.o : %.c $(include_headers)
src/modem/src/modem_apsk_const.o : %.o : %.c $(include_headers)
src/modem/src/modem_arb_const.o : %.o : %.c $(include_headers)
modem_autotests := \
src/modem/tests/ampmodem_autotest.c \
src/modem/tests/cpfskmodem_autotest.c \
src/modem/tests/freqmodem_autotest.c \
src/modem/tests/fskmodem_autotest.c \
src/modem/tests/gmskmodem_autotest.c \
src/modem/tests/modem_autotest.c \
src/modem/tests/modem_config_autotest.c \
src/modem/tests/modem_demodsoft_autotest.c \
src/modem/tests/modem_demodstats_autotest.c \
src/modem/tests/modem_utilities_autotest.c \
modem_benchmarks := \
src/modem/bench/freqdem_benchmark.c \
src/modem/bench/freqmod_benchmark.c \
src/modem/bench/fskdem_benchmark.c \
src/modem/bench/fskmod_benchmark.c \
src/modem/bench/gmskmodem_benchmark.c \
src/modem/bench/modem_modulate_benchmark.c \
src/modem/bench/modem_demodulate_benchmark.c \
src/modem/bench/modem_demodsoft_benchmark.c \
#
# MODULE : multichannel
#
multichannel_objects := \
src/multichannel/src/firpfbch_crcf.o \
src/multichannel/src/firpfbch_cccf.o \
src/multichannel/src/ofdmframe.common.o \
src/multichannel/src/ofdmframegen.o \
src/multichannel/src/ofdmframesync.o \
$(multichannel_objects) : %.o : %.c $(include_headers)
# list explicit targets and dependencies here
multichannel_prototypes := \
src/multichannel/src/firpfbch.proto.c \
src/multichannel/src/firpfbch2.proto.c \
src/multichannel/src/firpfbchr.proto.c \
src/multichannel/src/firpfbch_crcf.o : %.o : %.c $(include_headers) $(multichannel_prototypes)
src/multichannel/src/firpfbch_cccf.o : %.o : %.c $(include_headers) $(multichannel_prototypes)
# autotests
multichannel_autotests := \
src/multichannel/tests/firpfbch_crcf_synthesizer_autotest.c \
src/multichannel/tests/firpfbch_crcf_analyzer_autotest.c \
src/multichannel/tests/firpfbch_crcf_autotest.c \
src/multichannel/tests/firpfbch2_crcf_autotest.c \
src/multichannel/tests/firpfbchr_crcf_autotest.c \
src/multichannel/tests/ofdmframe_autotest.c \
# benchmarks
multichannel_benchmarks := \
src/multichannel/bench/firpfbch_crcf_benchmark.c \
src/multichannel/bench/firpfbch2_crcf_benchmark.c \
src/multichannel/bench/firpfbchr_crcf_benchmark.c \
src/multichannel/bench/ofdmframesync_acquire_benchmark.c \
src/multichannel/bench/ofdmframesync_rxsymbol_benchmark.c \
#
# MODULE : nco - numerically-controlled oscillator
#
nco_objects := \
src/nco/src/nco_crcf.o \
src/nco/src/nco.utilities.o \
nco_prototypes := \
src/nco/src/nco.proto.c \
src/nco/src/synth.proto.c \
src/nco/src/nco_crcf.o : %.o : %.c $(include_headers) $(nco_prototypes)
src/nco/src/nco.utilities.o : %.o : %.c $(include_headers)
# autotests
nco_autotests := \
src/nco/tests/nco_crcf_autotest.c \
src/nco/tests/nco_crcf_frequency_autotest.c \
src/nco/tests/nco_crcf_mix_autotest.c \
src/nco/tests/nco_crcf_phase_autotest.c \
src/nco/tests/nco_crcf_pll_autotest.c \
src/nco/tests/nco_crcf_spectrum_autotest.c \
src/nco/tests/unwrap_phase_autotest.c \
# additional autotest objects
autotest_extra_obj += \
src/nco/tests/data/nco_sincos_fsqrt1_2.o \
src/nco/tests/data/nco_sincos_fsqrt1_3.o \
src/nco/tests/data/nco_sincos_fsqrt1_5.o \
src/nco/tests/data/nco_sincos_fsqrt1_7.o \
# benchmarks
nco_benchmarks := \
src/nco/bench/nco_benchmark.c \
src/nco/bench/vco_benchmark.c \
#
# MODULE : optim - optimization
#
optim_objects := \
src/optim/src/chromosome.o \
src/optim/src/gasearch.o \
src/optim/src/gradsearch.o \
src/optim/src/optim.common.o \
src/optim/src/qnsearch.o \
src/optim/src/qs1dsearch.o \
src/optim/src/utilities.o \
$(optim_objects) : %.o : %.c $(include_headers)
# autotests
optim_autotests := \
src/optim/tests/gasearch_autotest.c \
src/optim/tests/gradsearch_autotest.c \
src/optim/tests/qnsearch_autotest.c \
src/optim/tests/qs1dsearch_autotest.c \
src/optim/tests/utility_autotest.c \
# benchmarks
optim_benchmarks :=
#
# MODULE : quantization
#
quantization_objects := \
src/quantization/src/compand.o \
src/quantization/src/quantizercf.o \
src/quantization/src/quantizerf.o \
src/quantization/src/quantizer.inline.o \
quantization_prototypes := \
src/quantization/src/quantizer.proto.c \
src/quantization/src/compand.o : %.o : %.c $(include_headers)
src/quantization/src/quantizercf.o : %.o : %.c $(include_headers) $(quantization_prototypes)
src/quantization/src/quantizerf.o : %.o : %.c $(include_headers) $(quantization_prototypes)
src/quantization/src/quantizer.inline.o : %.o : %.c $(include_headers)
# autotests
quantization_autotests := \
src/quantization/tests/compand_autotest.c \
src/quantization/tests/quantize_autotest.c \
# benchmarks
quantization_benchmarks := \
src/quantization/bench/quantizer_benchmark.c \
src/quantization/bench/compander_benchmark.c \
#
# MODULE : random
#
random_objects := \
src/random/src/rand.o \
src/random/src/randn.o \
src/random/src/randexp.o \
src/random/src/randweib.o \
src/random/src/randgamma.o \
src/random/src/randnakm.o \
src/random/src/randricek.o \
src/random/src/scramble.o \
$(random_objects) : %.o : %.c $(include_headers)
# autotests
random_autotests := \
src/random/tests/scramble_autotest.c \
src/random/tests/random_autotest.c \
src/random/tests/random_distributions_autotest.c \
# benchmarks
random_benchmarks := \
src/random/bench/random_benchmark.c \
#
# MODULE : sequence
#
sequence_objects := \
src/sequence/src/bsequence.o \
src/sequence/src/msequence.o \
$(sequence_objects) : %.o : %.c $(include_headers)
# autotests
sequence_autotests := \
src/sequence/tests/bsequence_autotest.c \
src/sequence/tests/complementary_codes_autotest.c \
src/sequence/tests/msequence_autotest.c \
# benchmarks
sequence_benchmarks := \
src/sequence/bench/bsequence_benchmark.c \
#
# MODULE : utility
#
utility_objects := \
src/utility/src/bshift_array.o \
src/utility/src/byte_utilities.o \
src/utility/src/memory.o \
src/utility/src/msb_index.o \
src/utility/src/pack_bytes.o \
src/utility/src/shift_array.o \
src/utility/src/utility.o \
$(utility_objects) : %.o : %.c $(include_headers)
# autotests
utility_autotests := \
src/utility/tests/bshift_array_autotest.c \
src/utility/tests/count_bits_autotest.c \
src/utility/tests/pack_bytes_autotest.c \
src/utility/tests/shift_array_autotest.c \
# benchmarks
utility_benchmarks := \
src/utility/bench/byte_utilities_benchmark.c \
#
# MODULE : vector
#
# main objects list
vector_objects := \
@MLIBS_VECTOR@ \
# portable builds
src/vector/src/vectorf_add.port.o : %.o : %.c $(include_headers) src/vector/src/vector_add.proto.c
src/vector/src/vectorf_norm.port.o : %.o : %.c $(include_headers) src/vector/src/vector_norm.proto.c
src/vector/src/vectorf_mul.port.o : %.o : %.c $(include_headers) src/vector/src/vector_mul.proto.c
src/vector/src/vectorf_trig.port.o : %.o : %.c $(include_headers) src/vector/src/vector_trig.proto.c
src/vector/src/vectorcf_add.port.o : %.o : %.c $(include_headers) src/vector/src/vector_add.proto.c
src/vector/src/vectorcf_norm.port.o : %.o : %.c $(include_headers) src/vector/src/vector_norm.proto.c
src/vector/src/vectorcf_mul.port.o : %.o : %.c $(include_headers) src/vector/src/vector_mul.proto.c
src/vector/src/vectorcf_trig.port.o : %.o : %.c $(include_headers) src/vector/src/vector_trig.proto.c
# builds for specific architectures
# ...
# vector autotest scripts
vector_autotests :=
# additional autotest objects
autotest_extra_obj +=
# vector benchmark scripts
vector_benchmarks :=
# Target collection
#
# Information about targets for each module is collected
# in these variables
objects := \
src/libliquid.o \
$(agc_objects) \
$(audio_objects) \
$(buffer_objects) \
$(channel_objects) \
$(dotprod_objects) \
$(equalization_objects) \
$(fec_objects) \
$(fft_objects) \
$(filter_objects) \
$(framing_objects) \
$(math_objects) \
$(matrix_objects) \
$(modem_objects) \
$(multichannel_objects) \
$(nco_objects) \
$(optim_objects) \
$(quantization_objects) \
$(random_objects) \
$(sequence_objects) \
$(utility_objects) \
$(vector_objects) \
$(objects) : %.o : %.c $(include_headers)
autotest_sources := \
autotest/null_autotest.c \
autotest/libliquid_autotest.c \
$(agc_autotests) \
$(audio_autotests) \
$(buffer_autotests) \
$(channel_autotests) \
$(dotprod_autotests) \
$(equalization_autotests) \
$(fec_autotests) \
$(fft_autotests) \
$(filter_autotests) \
$(framing_autotests) \
$(math_autotests) \
$(matrix_autotests) \
$(modem_autotests) \
$(multichannel_autotests) \
$(nco_autotests) \
$(optim_autotests) \
$(quantization_autotests) \
$(random_autotests) \
$(sequence_autotests) \
$(utility_autotests) \
$(vector_autotests) \
benchmark_sources := \
bench/null_benchmark.c \
$(agc_benchmarks) \
$(audio_benchmarks) \
$(buffer_benchmarks) \
$(channel_benchmarks) \
$(dotprod_benchmarks) \
$(equalization_benchmarks) \
$(fec_benchmarks) \
$(fft_benchmarks) \
$(filter_benchmarks) \
$(framing_benchmarks) \
$(math_benchmarks) \
$(matrix_benchmarks) \
$(modem_benchmarks) \
$(multichannel_benchmarks) \
$(nco_benchmarks) \
$(optim_benchmarks) \
$(quantization_benchmarks) \
$(random_benchmarks) \
$(sequence_benchmarks) \
$(utility_benchmarks) \
$(vector_benchmarks) \
##
## TARGET : all - build shared library (default)
##
.PHONY: all
# Shared library targets
ARCHIVE_LIB = libliquid.${AR_LIB}
SHARED_LIB = libliquid.${SH_LIB}
#
# darwin
#
libliquid.ar : $(objects)
${LIBTOOL} -static -o $@ $^
# gcc -dynamiclib -install_name libliquid.dylib -o libliquid.dylib libmodem.a libutility.a
libliquid.dylib : $(objects)
$(CC) -dynamiclib ${COVERAGE_FLAGS} -install_name $@ -o $@ $^ $(LDFLAGS) $(LIBS)
#
# linux, et al
#
libliquid.a : $(objects)
${AR} r $@ $^
${RANLIB} $@
libliquid.so : libliquid.a
$(CC) $(CFLAGS) $(LDFLAGS) -shared -Xlinker -soname=libliquid.so.$(SOVERSION) -o $@ -Wl,-whole-archive $^ -Wl,-no-whole-archive $(LIBS)
# static archive and library objects
all: ${ARCHIVE_LIB} ${SHARED_LIB}
##
## TARGET : help - print list of targets
##
# look for all occurrences of '## TARGET : ' and print rest of line to screen
help:
@echo "Targets for liquid-dsp makefile:"
@$(GREP) -E "^## TARGET : " [Mm]akefile | $(SED) 's/## TARGET : / /'
##
## TARGET : install - installs the libraries and header files in the host system
##
install: all
@echo "installing..."
@echo ""
mkdir -p $(DESTDIR)$(prefix)/include/liquid
mkdir -p $(DESTDIR)$(libdir)
install -m 644 -p libliquid.${AR_LIB} $(DESTDIR)$(libdir)/libliquid.${AR_LIB}
install -m 644 -p libliquid.${SH_LIB} $(DESTDIR)$(libdir)/libliquid.${SH_LIB}.${VERSION}
install -m 644 -p include/liquid.h $(DESTDIR)$(prefix)/include/liquid/liquid.h
ln -sf libliquid.${SH_LIB}.${VERSION} $(DESTDIR)$(libdir)/libliquid.${SH_LIB}
ln -sf libliquid.${SH_LIB}.${VERSION} $(DESTDIR)$(libdir)/libliquid.${SH_LIB}.${SOVERSION}
@echo ""
@echo "---------------------------------------------------------"
@echo " liquid-dsp was successfully installed. "
@echo ""
@echo " On some machines (e.g. Linux) you should rebind your"
@echo " libraries by running 'ldconfig' to make the shared"
@echo " object available. You might also need to modify your"
@echo " LD_LIBRARY_PATH environment variable to include the"
@echo " directory $(DESTDIR)$(exec_prefix)"
@echo ""
@echo " Please report bugs to $(BUGREPORT)"
@echo "---------------------------------------------------------"
@echo ""
##
## TARGET : uninstall - uninstalls the libraries and header files in the host system
##
#$(RM) $(addprefix $(DESTDIR)$(prefix)/include/liquid/, $(headers_install))
uninstall:
@echo "uninstalling..."
$(RM) $(DESTDIR)$(prefix)/include/liquid/liquid.h
$(RM) $(DESTDIR)$(libdir)/libliquid.${AR_LIB}
$(RM) $(DESTDIR)$(libdir)/libliquid.${SH_LIB}.${VERSION}
$(RM) $(DESTDIR)$(libdir)/libliquid.${SH_LIB}.${SOVERSION}
$(RM) $(DESTDIR)$(libdir)/libliquid.${SH_LIB}
@echo "done."
##
## autoscript
##
autoscript : scripts/autoscript
scripts/autoscript.o scripts/main.o : %.o : %.c
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
scripts/autoscript : scripts/autoscript.o scripts/main.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
clean-autoscript :
$(RM) scripts/autoscript.o scripts/main.o scripts/autoscript
##
## TARGET : check - build and run autotest scripts
##
# Autotests are used to check the validity and accuracy of the
# DSP libraries.
.PHONY: autotest
autotest_prog = xautotest
# run the autotest generator script to create autotest_include.h
autotest_include.h : scripts/autoscript $(autotest_sources) $(include_headers)
./scripts/autoscript $(PATHSEP) autotest $(autotest_sources) > $@
# autotest objects
# NOTE: by default, gcc compiles any file with a '.h' extension as a 'pre-compiled
# header' so we need to explicitly tell it to compile as a c source file with
# the '-x c' flag
autotest_obj = $(patsubst %.c,%.o,$(autotest_sources))
$(autotest_obj) $(autotest_extra_obj) autotest/autotest.o : %.o : %.c $(include_headers) autotest/autotest.h
$(CC) $(CPPFLAGS) $(CFLAGS) $< -c -o $@
# compile the autotest program without linking
$(autotest_prog).o : autotest/xautotest.c autotest/autotest.h autotest_include.h
$(CC) $(CPPFLAGS) $(CFLAGS) $< -c -o $@
# link the autotest program with the objects
# NOTE: linked libraries must come _after_ the target program
$(autotest_prog): $(autotest_prog).o $(autotest_obj) $(autotest_extra_obj) autotest/autotest.o ${ARCHIVE_LIB}
$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
# run the autotest program
check: $(autotest_prog)
./$(autotest_prog) -v -o autotest.json
# let 'make test' be an alias for 'make check'
test: check
# clean the generated files
clean-check:
$(RM) autotest_include.h $(autotest_prog).o $(autotest_prog)
$(RM) $(autotest_obj)
$(RM) $(autotest_extra_obj)
$(RM) autotest/autotest.o
$(RM) autotest.json
$(RM) autotest/logs/*.m autotest/logs/*.dat
$(RM) autotest/logs/*.bin autotest/logs/*.gnu autotest/logs/*.png
##
## TARGET : check-doc - build and run basic documentation checks
##
readme.c.example.c : README.md
${SED} -n '23,43p' $< | ${SED} "s/<liquid\/liquid.h>/\"liquid.h\"/g" > $@
readme.c.example.o : %.o : %.c ${include_headers}
${CC} ${CPPFLAGS} ${CFLAGS} $< -c -o $@
readme.c.example : % : %.o ${ARCHIVE_LIB}
${CC} ${CFLAGS} ${LDFLAGS} $^ -o $@ ${LIBS}
readme.cc.example.cc : README.md
${SED} -n '152,173p' $< | ${SED} "s/<liquid\/liquid.h>/\"liquid.h\"/g" > $@
readme.cc.example.o : %.o : %.cc ${include_headers}
${CXX} ${CPPFLAGS} ${CXXFLAGS} $< -c -o $@
readme.cc.example : % : %.o ${ARCHIVE_LIB}
${CXX} ${CXXFLAGS} ${LDFLAGS} $^ -o $@ ${LIBS}
check-doc : readme.c.example readme.cc.example ; ./readme.c.example && ./readme.cc.example
clean-check-doc:
${RM} readme.*.example*
##
## TARGET : coverage - run coverage test and produce report
##
coverage: coverage.out
tail -n5 $<
${autotest_prog}.gcda : %.gcda : %
./${autotest_prog}
coverage.out : ${autotest_prog}.gcda
gcovr --root=src --exclude-directories=src/.*/tests --print-summary > $@
clean-coverage:
$(RM) src/*.gcda src/*/src/*.gcda src/*/tests/*.gcda src/*/tests/data/*.gcda autotest/*.gcda scripts/*.gcda
$(RM) src/*.gcno src/*/src/*.gcno src/*/tests/*.gcno src/*/tests/data/*.gcno autotest/*.gcno scripts/*.gcno
$(RM) autotest/*.gcda bench/*.gcda examples/*.gcda sandbox/*.gcda
$(RM) autotest/*.gcno bench/*.gcno examples/*.gcno sandbox/*.gcno
$(RM) *.gcda *.gcno coverage.out
##
## TARGET : bench - build and run all benchmarks
##
# Benchmarks measure the relative speed of the DSP algorithms running
# on the target platform.
.PHONY: bench
bench_prog = benchmark
BENCH_CPPFLAGS = $(CPPFLAGS)
BENCH_CFLAGS = -Wall $(CFLAGS)
BENCH_LDFLAGS = $(LDFLAGS)
BENCH_LIBS = $(LIBS)
# run the benchmark generator script to create benchmark_include.h
benchmark_include.h : scripts/autoscript $(benchmark_sources) $(include_headers)
./scripts/autoscript $(PATHSEP) benchmark $(benchmark_sources) > $@
# benchmark objects
# NOTE: by default, gcc compiles any file with a '.h' extension as a 'pre-compiled
# header' so we need to explicitly tell it to compile as a c source file with
# the '-x c' flag
benchmark_obj = $(patsubst %.c,%.o,$(benchmark_sources))
$(benchmark_obj) : %.o : %.c $(include_headers)
$(CC) $(BENCH_CPPFLAGS) $(BENCH_CFLAGS) $< -c -o $@
# additional benchmark objects
$(benchmark_extra_obj) : %.o : %.c $(include_headers)
# compile the benchmark program without linking
$(bench_prog).o: bench/bench.c benchmark_include.h bench/bench.c
$(CC) $(BENCH_CPPFLAGS) $(BENCH_CFLAGS) $< -c -o $(bench_prog).o
# link the benchmark program with the library objects
# NOTE: linked libraries must come _after_ the target program
$(bench_prog): $(bench_prog).o $(benchmark_obj) $(benchmark_extra_obj) ${ARCHIVE_LIB}
$(CC) $(BENCH_CFLAGS) $(BENCH_LDFLAGS) $^ -o $(bench_prog) $(BENCH_LIBS)
# run the benchmark program
bench: $(bench_prog)
./$(bench_prog) -o benchmark.json
# fftbench program
bench/fftbench.o : %.o : %.c
$(CC) $(BENCH_CPPFLAGS) $(BENCH_CFLAGS) $< -c -o $@
bench/fftbench : % : %.o ${ARCHIVE_LIB}
$(CC) $(BENCH_CFLAGS) $(BENCH_LDFLAGS) $^ -o $@ $(BENCH_LIBS)
# clean up the generated files
clean-bench:
$(RM) benchmark_include.h $(bench_prog).o $(bench_prog)
$(RM) $(benchmark_obj)
$(RM) $(benchmark_extra_obj)
$(RM) bench/fftbench.o
$(RM) bench/fftbench
##
## TARGET : examples - build all examples binaries
##
.PHONY: examples
example_programs := \
examples/agc_crcf_example \
examples/agc_crcf_squelch_example \
examples/agc_crcf_qpsk_example \
examples/agc_rrrf_example \
examples/ampmodem_example \
examples/asgramcf_example \
examples/asgramf_example \
examples/autocorr_cccf_example \
examples/bpacketsync_example \
examples/bpresync_example \
examples/bsequence_example \
examples/cbufferf_example \
examples/cgsolve_example \
examples/channel_cccf_example \
examples/compand_example \
examples/compand_cf_example \
examples/complementary_codes_example \
examples/conversion_example \
examples/crc_example \
examples/cpfskmodem_example \
examples/cpfskmodem_psd_example \
examples/cvsd_example \
examples/detector_cccf_example \
examples/dds_cccf_example \
examples/dsssframe64sync_performance_example \
examples/dsssframe64sync_example \
examples/dsssframesync_example \
examples/dotprod_rrrf_example \
examples/dotprod_cccf_example \
examples/eqlms_cccf_block_example \
examples/eqlms_cccf_blind_example \
examples/eqlms_cccf_decisiondirected_example \
examples/eqlms_cccf_example \
examples/eqrls_cccf_example \
examples/error_handling_example \
examples/fec_example \
examples/fec_soft_example \
examples/fdelay_rrrf_example \
examples/fft_example \
examples/fftfilt_crcf_example \
examples/firdecim_crcf_example \
examples/firfarrow_rrrf_example \
examples/firfilt_cccf_example \
examples/firfilt_cccf_notch_example \
examples/firfilt_crcf_copy_example \
examples/firfilt_crcf_example \
examples/firfilt_crcf_dcblocker_example \
examples/firfilt_rrrf_example \
examples/firdes_doppler_example \
examples/firdes_kaiser_example \
examples/firdespm_callback_example \
examples/firdespm_halfband_example \
examples/firdespm_example \
examples/firdespm_lowpass_example \
examples/firhilb_example \
examples/firhilb_decim_example \
examples/firhilb_filter_example \
examples/firhilb_interp_example \
examples/firpfb_rrrf_example \
examples/firpfbch2_crcf_example \
examples/firpfbch2_crcf_reconstruct_example \
examples/firpfbchr_crcf_example \
examples/firinterp_crcf_example \
examples/firinterp_firdecim_crcf_example \
examples/firinterp_rrrf_linear_example \
examples/firinterp_rrrf_window_example \
examples/firpfbch_crcf_example \
examples/firpfbch_crcf_analysis_example \
examples/firpfbch_crcf_msource_example \
examples/firpfbch_crcf_synthesis_example \
examples/flexframesync_debug_example \
examples/flexframesync_example \
examples/flexframesync_reconfig_example \
examples/framesync64_example \
examples/framesync64_performance_example \
examples/freqmodem_example \
examples/fskframesync_example \
examples/fskmodem_example \
examples/fskmodem_waterfall_example \
examples/gasearch_example \
examples/gasearch_knapsack_example \
examples/gmskframesync_example \
examples/gmskmodem_example \
examples/gmskmodem_ber_example \
examples/gmsk_eqlms_example \
examples/gmsk_tracking_example \
examples/gradsearch_datafit_example \
examples/gradsearch_example \
examples/interleaver_example \
examples/interleaver_soft_example \
examples/interleaver_scatterplot_example \
examples/iirdes_example \
examples/iirdes_analog_example \
examples/iirdes_pll_example \
examples/iirdecim_crcf_example \
examples/iirfilt_cccf_example \
examples/iirfilt_crcf_example \
examples/iirfilt_crcf_dcblocker_example \
examples/iirfilt_rrrf_integrator_example \
examples/iirhilb_example \
examples/iirhilb_filter_example \
examples/iirinterp_crcf_example \
examples/kaiser_window_example \
examples/kbd_window_example \
examples/lpc_example \
examples/libliquid_example \
examples/matched_filter_example \
examples/math_lngamma_example \
examples/math_primitive_root_example \
examples/modem_arb_example \
examples/modem_ber_example \
examples/modem_example \
examples/modem_pi4dqpsk_example \
examples/modem_soft_example \
examples/modular_arithmetic_example \
examples/msequence_autocorr_example \
examples/msequence_example \
examples/msequence_generator_example \
examples/msourcecf_example \
examples/msresamp_crcf_example \
examples/msresamp_crcf_noise_example \
examples/msresamp2_crcf_example \
examples/nco_crcf_mix_example \
examples/nco_crcf_tone_example \
examples/nco_example \
examples/nco_pll_example \
examples/nco_pll_real_example \
examples/nco_pll_modem_example \
examples/nyquist_filter_example \
examples/ofdmflexframesync_example \
examples/ofdmframesync_example \
examples/ordfilt_rrrf_example \
examples/packetizer_example \
examples/packetizer_soft_example \
examples/pll_example \
examples/polyfit_comparison_example \
examples/polyfit_example \
examples/polyfit_lagrange_example \
examples/poly_findroots_example \
examples/qdetector_cccf_example \
examples/qdsync_cccf_example \
examples/qdsync_cccf_performance_example \
examples/qpacketmodem_performance_example \
examples/qpacketmodem_example \
examples/qpilotsync_example \
examples/qnsearch_example \
examples/qs1dsearch_example \
examples/quantize_example \
examples/random_histogram_example \
examples/repack_bytes_example \
examples/rresamp_crcf_example \
examples/rresamp_crcf_partition_example \
examples/rresamp_crcf_rnyquist_example \
examples/rresamp_rrrf_example \
examples/resamp_crcf_example \
examples/resamp_crcf_noise_example \
examples/resamp_crcf_rate_match_example \
examples/resamp2_cccf_example \
examples/resamp2_crcf_example \
examples/resamp2_crcf_decim_example \
examples/resamp2_crcf_filter_example \
examples/resamp2_crcf_interp_example \
examples/ricek_channel_example \
examples/scramble_example \
examples/smatrix_example \
examples/spgramcf_example \
examples/spgramf_example \
examples/spwaterfallcf_example \
examples/symsync_crcf_example \
examples/symsync_crcf_full_example \
examples/symsync_crcf_kaiser_example \
examples/symstreamcf_delay_example \
examples/symstreamcf_example \
examples/symstreamrcf_delay_example \
examples/symstreamrcf_example \
examples/symtrack_cccf_example \
examples/wdelayf_example \
examples/windowf_example \
examples/window_enbw_example \
examples/windowing_example \
# examples/metadata_example
# examples/ofdmframegen_example
# examples/gmskframe_example
# examples/fading_generator_example
example_objects = $(patsubst %,%.o,$(example_programs))
examples: $(example_programs)
# NOTE: linked libraries must come _after_ the target program
$(example_objects): %.o : %.c
$(example_programs): % : %.o ${ARCHIVE_LIB}
$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
# clean examples
clean-examples:
$(RM) examples/*.o
$(RM) $(example_programs)
##
## TARGET : sandbox - build all sandbox binaries
##
# NOTE: sandbox _requires_ fftw3 to build
.PHONY: sandbox
sandbox_programs = \
sandbox/am_demod_dsb_peak_detect_test \
sandbox/am_demod_dsb_pll_carrier_test \
sandbox/am_demod_dsb_pll_costas_test \
sandbox/am_demod_ssb_pll_carrier_test \
sandbox/bpresync_test \
sandbox/chromosome_test \
sandbox/cpmodem_test \
sandbox/count_ones_gentab \
sandbox/crc_gentab \
sandbox/ellip_func_test \
sandbox/ellip_test \
sandbox/eqlms_cccf_test \
sandbox/fecsoft_ber_test \
sandbox/fec_g2412product_test \
sandbox/fec_golay2412_test \
sandbox/fec_golay_test \
sandbox/fec_hamming3126_example \
sandbox/fec_hamming128_test \
sandbox/fec_hamming128_gentab \
sandbox/fec_hamming128_example \
sandbox/fec_hamming74_gentab \
sandbox/fec_hamming84_gentab \
sandbox/fec_hamming_test \
sandbox/fec_ldpc_test \
sandbox/fec_rep3_test \
sandbox/fec_rep5_test \
sandbox/fec_secded2216_test \
sandbox/fec_secded3932_test \
sandbox/fec_secded7264_test \
sandbox/fec_spc2216_test \
sandbox/fec_secded_punctured_test \
sandbox/fecsoft_conv_test \
sandbox/fecsoft_hamming128_gentab \
sandbox/fecsoft_ldpc_test \
sandbox/fec_sumproduct_test \
sandbox/fskcorr_test \
sandbox/fskmodem_test \
sandbox/fft_dual_radix_test \
sandbox/fft_mixed_radix_test \
sandbox/fft_recursive_plan_test \
sandbox/fft_recursive_test \
sandbox/fft_rader_prime_test \
sandbox/fft_rader_prime_radix2_test \
sandbox/fft_r2r_test \
sandbox/firdes_energy_test \
sandbox/firdes_fexp_test \
sandbox/firdes_gmskrx_test \
sandbox/firdes_group_delay_test \
sandbox/firdes_length_test \
sandbox/firdespm_halfband_test \
sandbox/firfarrow_rrrf_test \
sandbox/firfilt_dcblocker_test \
sandbox/firpfbch_analysis_alignment_test \
sandbox/firpfbch2_analysis_equivalence_test \
sandbox/firpfbch2_test \
sandbox/firpfbch2_flatness_test \
sandbox/firpfbch_analysis_equivalence_test \
sandbox/firpfbch_synthesis_equivalence_test \
sandbox/gmskmodem_test \
sandbox/gmskmodem_coherent_test \
sandbox/gmskmodem_equalizer_test \
sandbox/gmskmodem_psd_filter_compare_test \
sandbox/householder_test \
sandbox/iirdes_test \
sandbox/iirdes_gradsearch_test \
sandbox/iirfilt_intdiff_test \
sandbox/levinson_test \
sandbox/matched_filter_test \
sandbox/matched_filter_cfo_test \
sandbox/math_lngamma_test \
sandbox/math_cacosf_test \
sandbox/math_casinf_test \
sandbox/math_catanf_test \
sandbox/math_cexpf_test \
sandbox/math_clogf_test \
sandbox/math_csqrtf_test \
sandbox/matrix_test \
sandbox/minsearch_test \
sandbox/minsearch2_test \
sandbox/matrix_eig_test \
sandbox/modem_demodulate_arb_gentab \
sandbox/modem_demodulate_soft_test \
sandbox/modem_demodulate_soft_gentab \
sandbox/mskmodem_test \
sandbox/msresamp_crcf_test \
sandbox/ofdmoqam_firpfbch_test \
sandbox/ofdm_ber_test \
sandbox/ofdmframe_papr_test \
sandbox/ofdmframesync_cfo_test \
sandbox/pll_3rd_order_test \
sandbox/pll_design_test \
sandbox/predemod_sync_test \
sandbox/quasinewton_test \
sandbox/recursive_qpsk_test \
sandbox/resamp2_crcf_filterbank_test \
sandbox/resamp2_crcf_interp_recreate_test \
sandbox/reverse_byte_gentab \
sandbox/rhamming_test \
sandbox/rkaiser2_test \
sandbox/shadowing_test \
sandbox/simplex_test \
sandbox/symsync_crcf_test \
sandbox/symsync_eqlms_test \
sandbox/svd_test \
sandbox/thiran_allpass_iir_test \
sandbox/vectorcf_test \
# sandbox/packetizer_persistent_ber_test
# firpfbch_analysis_test
# sandbox/ofdmoqam_firpfbch_cfo_test
# sandbox/mdct_test
# sandbox/fct_test
# sandbox/throttle_test # needs -lrt for certain gcc versions, rpi3
sandbox_objects = $(patsubst %,%.o,$(sandbox_programs))
sandbox: $(sandbox_programs)
SANDBOX_LDFLAGS = $(LDFLAGS) -lfftw3f
# NOTE: linked libraries must come _after_ the target program
$(sandbox_objects): %.o : %.c
$(sandbox_programs): % : %.o ${ARCHIVE_LIB}
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) $(LIBS)
# clean sandbox
clean-sandbox:
$(RM) sandbox/*.o
$(RM) $(sandbox_programs)
##
## TARGET : check-link- test linking to installed library
##
# run program, ensuring proper error code
check-link: scripts/liquid_linker_test ; ./$<
# use subset of compiler flags so we don't try to build or link against
# local files
scripts/liquid_linker_test.o : %.o : %.c
$(CC) -c -Wall -O2 -o $@ $<
scripts/liquid_linker_test : % : %.o
$(CC) -Wall -O2 -o $@ $< -L/usr/local/lib ${LIBS} -lliquid
extra_clean += scripts/liquid_linker_test.o scripts/liquid_linker_test
##
## TARGET : programs - build all programs, but don't run anything
##
programs: all xautotest benchmark examples sandbox
##
## TARGET : world - build absolutely everything
##
world : all bench check check-doc examples sandbox
##
## TARGET : clean - clean build (objects, dependencies, libraries, etc.)
##
.PHONY: clean
clean-modules:
@echo "cleaning modules..."
$(RM) src/*/src/*.o src/*/bench/*.o src/*/tests/*.o
$(RM) src/libliquid.o
clean: clean-modules clean-autoscript clean-check clean-coverage clean-bench clean-examples clean-sandbox clean-check-doc
$(RM) ${ARCHIVE_LIB} ${SHARED_LIB} $(extra_clean)
##
## TARGET : distclean - removes everything except the originally distributed files
##
distclean: clean
@echo "cleaning distribution..."
$(RM) octave-core *_example.m
$(RM) configure config.h config.h.in config.h.in~ config.log config.status
$(RM) -r autom4te.cache
$(RM) aclocal.m4
$(RM) makefile
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/liquid-dsp.git
git@gitee.com:mirrors/liquid-dsp.git
mirrors
liquid-dsp
liquid-dsp
master

搜索帮助