|
| 1 | +########################################################################### |
| 2 | +# apps/sdr/liquid_dsp/Makefile |
| 3 | +# |
| 4 | +# Licensed to the Apache Software Foundation (ASF) under one or more |
| 5 | +# contributor license agreements. See the NOTICE file distributed with |
| 6 | +# this work for additional information regarding copyright ownership. The |
| 7 | +# ASF licenses this file to you under the Apache License, Version 2.0 (the |
| 8 | +# "License"); you may not use this file except in compliance with the |
| 9 | +# License. You may obtain a copy of the License at |
| 10 | +# |
| 11 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | +# |
| 13 | +# Unless required by applicable law or agreed to in writing, software |
| 14 | +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 15 | +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 16 | +# License for the specific language governing permissions and limitations |
| 17 | +# under the License. |
| 18 | +# |
| 19 | +############################################################################/ |
| 20 | + |
| 21 | +include $(APPDIR)/Make.defs |
| 22 | + |
| 23 | +LIQUID_DSP_VERSION = 1.4.0 |
| 24 | +LIQUID_DSP_UNPACK = liquid-dsp |
| 25 | +LIQUID_DSP_TARBALL = v$(LIQUID_DSP_VERSION).tar.gz |
| 26 | +LIQUID_DSP_URL_BASE = https://github.com/jgaeddert/liquid-dsp/archive |
| 27 | +LIQUID_DSP_URL = $(LIQUID_DSP_URL_BASE)/$(LIQUID_DSP_TARBALL) |
| 28 | + |
| 29 | +$(LIQUID_DSP_TARBALL): |
| 30 | + $(Q) echo "Downloading $(LIQUID_DSP_TARBALL)" |
| 31 | + $(Q) curl -O -L $(LIQUID_DSP_URL) |
| 32 | + |
| 33 | +$(LIQUID_DSP_UNPACK): $(LIQUID_DSP_TARBALL) |
| 34 | + $(Q) echo "Unpacking $(LIQUID_DSP_TARBALL) to $(LIQUID_DSP_UNPACK)" |
| 35 | + $(Q) tar xzvf $(LIQUID_DSP_TARBALL) |
| 36 | + $(Q) mv liquid-dsp-$(LIQUID_DSP_VERSION) $(LIQUID_DSP_UNPACK) |
| 37 | + |
| 38 | +$(LIQUID_DSP_UNPACK)/.patch: $(LIQUID_DSP_UNPACK) |
| 39 | + $(Q) touch $(LIQUID_DSP_UNPACK)/.patch |
| 40 | + |
| 41 | +CFLAGS += -std=c99 |
| 42 | +CFLAGS += ${shell $(INCDIR) "$(CC)" $(APPDIR)/sdr/liquid_dsp} |
| 43 | +CFLAGS += -DM_SQRT1_2=0.7071067811865475244008443621048490 |
| 44 | +CFLAGS += -DM_SQRT2=1.4142135623730950488016887242096981 |
| 45 | +CFLAGS += -DM_PI=3.1415926535897932384626433832795029 |
| 46 | +CFLAGS += -DM_LN2=0.6931471805599453094172321214581765 |
| 47 | +CFLAGS += -DM_PI_2=1.5707963267948966192313216916397514 |
| 48 | +CFLAGS += -DM_2_PI=0.6366197723675813430755350534900574 |
| 49 | + |
| 50 | + |
| 51 | +CSRCS = $(LIQUID_DSP_UNPACK)/src/agc/src/agc_crcf.c |
| 52 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/agc/src/agc_rrrf.c |
| 53 | + |
| 54 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/audio/src/cvsd.c |
| 55 | + |
| 56 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/buffer/src/bufferf.c |
| 57 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/buffer/src/buffercf.c |
| 58 | + |
| 59 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/channel/src/channel_cccf.c |
| 60 | + |
| 61 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/dotprod/src/dotprod_cccf.c |
| 62 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/dotprod/src/dotprod_crcf.c |
| 63 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/dotprod/src/dotprod_rrrf.c |
| 64 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/dotprod/src/sumsq.c |
| 65 | + |
| 66 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/equalization/src/equalizer_cccf.c |
| 67 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/equalization/src/equalizer_rrrf.c |
| 68 | + |
| 69 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fec/src/crc.c |
| 70 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fec/src/fec.c |
| 71 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fec/src/fec_conv.c |
| 72 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fec/src/fec_conv_poly.c |
| 73 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fec/src/fec_conv_pmatrix.c |
| 74 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fec/src/fec_conv_punctured.c |
| 75 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fec/src/fec_golay2412.c |
| 76 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fec/src/fec_hamming74.c |
| 77 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fec/src/fec_hamming84.c |
| 78 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fec/src/fec_hamming128.c |
| 79 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fec/src/fec_hamming1511.c |
| 80 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fec/src/fec_hamming3126.c |
| 81 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fec/src/fec_hamming128_gentab.c |
| 82 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fec/src/fec_pass.c |
| 83 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fec/src/fec_rep3.c |
| 84 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fec/src/fec_rep5.c |
| 85 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fec/src/fec_rs.c |
| 86 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fec/src/fec_secded2216.c |
| 87 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fec/src/fec_secded3932.c |
| 88 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fec/src/fec_secded7264.c |
| 89 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fec/src/interleaver.c |
| 90 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fec/src/packetizer.c |
| 91 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fec/src/sumproduct.c |
| 92 | + |
| 93 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fft/src/fftf.c |
| 94 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fft/src/spgramcf.c |
| 95 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fft/src/spgramf.c |
| 96 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/fft/src/fft_utilities.c |
| 97 | + |
| 98 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/filter/src/bessel.c |
| 99 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/filter/src/butter.c |
| 100 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/filter/src/cheby1.c |
| 101 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/filter/src/cheby2.c |
| 102 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/filter/src/ellip.c |
| 103 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/filter/src/filter_rrrf.c |
| 104 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/filter/src/filter_crcf.c |
| 105 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/filter/src/filter_cccf.c |
| 106 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/filter/src/firdes.c |
| 107 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/filter/src/firdespm.c |
| 108 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/filter/src/fnyquist.c |
| 109 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/filter/src/gmsk.c |
| 110 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/filter/src/group_delay.c |
| 111 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/filter/src/hM3.c |
| 112 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/filter/src/iirdes.pll.c |
| 113 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/filter/src/iirdes.c |
| 114 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/filter/src/lpc.c |
| 115 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/filter/src/rcos.c |
| 116 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/filter/src/rkaiser.c |
| 117 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/filter/src/rrcos.c |
| 118 | + |
| 119 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/bpacketgen.c |
| 120 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/bpacketsync.c |
| 121 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/bpresync_cccf.c |
| 122 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/bsync_rrrf.c |
| 123 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/bsync_crcf.c |
| 124 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/bsync_cccf.c |
| 125 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/detector_cccf.c |
| 126 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/dsssframegen.c |
| 127 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/dsssframesync.c |
| 128 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/framedatastats.c |
| 129 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/framesyncstats.c |
| 130 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/framegen64.c |
| 131 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/framesync64.c |
| 132 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/flexframegen.c |
| 133 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/flexframesync.c |
| 134 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/fskframegen.c |
| 135 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/fskframesync.c |
| 136 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/gmskframegen.c |
| 137 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/gmskframesync.c |
| 138 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/msourcecf.c |
| 139 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/ofdmflexframegen.c |
| 140 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/ofdmflexframesync.c |
| 141 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/presync_cccf.c |
| 142 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/symstreamcf.c |
| 143 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/symstreamrcf.c |
| 144 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/symtrack_cccf.c |
| 145 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/qdetector_cccf.c |
| 146 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/qpacketmodem.c |
| 147 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/qpilotgen.c |
| 148 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/framing/src/qpilotsync.c |
| 149 | + |
| 150 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/math/src/poly.c |
| 151 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/math/src/polyc.c |
| 152 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/math/src/polyf.c |
| 153 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/math/src/polycf.c |
| 154 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/math/src/math.c |
| 155 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/math/src/math.bessel.c |
| 156 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/math/src/math.gamma.c |
| 157 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/math/src/math.complex.c |
| 158 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/math/src/math.trig.c |
| 159 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/math/src/modular_arithmetic.c |
| 160 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/math/src/poly.findroots.c |
| 161 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/math/src/windows.c |
| 162 | + |
| 163 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/matrix/src/matrix.c |
| 164 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/matrix/src/matrixf.c |
| 165 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/matrix/src/matrixc.c |
| 166 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/matrix/src/matrixcf.c |
| 167 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/matrix/src/smatrix.common.c |
| 168 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/matrix/src/smatrixb.c |
| 169 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/matrix/src/smatrixf.c |
| 170 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/matrix/src/smatrixi.c |
| 171 | + |
| 172 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/modem/src/ampmodem.c |
| 173 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/modem/src/cpfskdem.c |
| 174 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/modem/src/cpfskmod.c |
| 175 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/modem/src/fskdem.c |
| 176 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/modem/src/fskmod.c |
| 177 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/modem/src/gmskdem.c |
| 178 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/modem/src/gmskmod.c |
| 179 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/modem/src/modemcf.c |
| 180 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/modem/src/modem_utilities.c |
| 181 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/modem/src/modem_apsk_const.c |
| 182 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/modem/src/modem_arb_const.c |
| 183 | + |
| 184 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/multichannel/src/firpfbch_crcf.c |
| 185 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/multichannel/src/firpfbch_cccf.c |
| 186 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/multichannel/src/ofdmframe.common.c |
| 187 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/multichannel/src/ofdmframegen.c |
| 188 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/multichannel/src/ofdmframesync.c |
| 189 | + |
| 190 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/nco/src/nco_crcf.c |
| 191 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/nco/src/nco.utilities.c |
| 192 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/nco/src/synth_crcf.c |
| 193 | + |
| 194 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/optim/src/chromosome.c |
| 195 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/optim/src/gasearch.c |
| 196 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/optim/src/gradsearch.c |
| 197 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/optim/src/optim.common.c |
| 198 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/optim/src/qnsearch.c |
| 199 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/optim/src/utilities.c |
| 200 | + |
| 201 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/quantization/src/compand.c |
| 202 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/quantization/src/quantizercf.c |
| 203 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/quantization/src/quantizerf.c |
| 204 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/quantization/src/quantizer.inline.c |
| 205 | + |
| 206 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/random/src/rand.c |
| 207 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/random/src/randn.c |
| 208 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/random/src/randexp.c |
| 209 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/random/src/randweib.c |
| 210 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/random/src/randgamma.c |
| 211 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/random/src/randnakm.c |
| 212 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/random/src/randricek.c |
| 213 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/random/src/scramble.c |
| 214 | + |
| 215 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/sequence/src/bsequence.c |
| 216 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/sequence/src/msequence.c |
| 217 | + |
| 218 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/utility/src/bshift_array.c |
| 219 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/utility/src/byte_utilities.c |
| 220 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/utility/src/msb_index.c |
| 221 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/utility/src/pack_bytes.c |
| 222 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/utility/src/shift_array.c |
| 223 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/utility/src/utility.c |
| 224 | + |
| 225 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/vector/src/vectorf_add.port.c |
| 226 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/vector/src/vectorf_norm.port.c |
| 227 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/vector/src/vectorf_mul.port.c |
| 228 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/vector/src/vectorf_trig.port.c |
| 229 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/vector/src/vectorcf_add.port.c |
| 230 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/vector/src/vectorcf_norm.port.c |
| 231 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/vector/src/vectorcf_mul.port.c |
| 232 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/vector/src/vectorcf_trig.port.c |
| 233 | + |
| 234 | +CSRCS += $(LIQUID_DSP_UNPACK)/src/libliquid.c |
| 235 | + |
| 236 | +ifeq ($(wildcard $(LIQUID_DSP_UNPACK)/.git),) |
| 237 | +context:: $(LIQUID_DSP_UNPACK)/.patch |
| 238 | + |
| 239 | +distclean:: |
| 240 | + $(call DELDIR, $(LIQUID_DSP_UNPACK)) |
| 241 | + $(call DELFILE, $(LIQUID_DSP_TARBALL)) |
| 242 | +endif |
| 243 | + |
| 244 | +include $(APPDIR)/Application.mk |
0 commit comments