mirror of https://gerrit.osmocom.org/osmo-tetra
34 lines
1.4 KiB
Makefile
34 lines
1.4 KiB
Makefile
CFLAGS=-g -O3 -Wall `pkg-config --cflags libosmocore 2> /dev/null` -I.
|
|
LDLIBS=`pkg-config --libs libosmocore 2> /dev/null` -losmocore
|
|
|
|
all: conv_enc_test crc_test tetra-rx float_to_bits tunctl
|
|
|
|
debug: CFLAGS := -lasan $(CFLAGS) -fsanitize=address -fno-omit-frame-pointer -g -Og
|
|
debug: LDLIBS := -lasan $(LDLIBS)
|
|
debug: all
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c $^ -o $@
|
|
|
|
libosmo-tetra-phy.a: phy/tetra_burst_sync.o phy/tetra_burst.o
|
|
$(AR) r $@ $^
|
|
|
|
libosmo-tetra-mac.a: lower_mac/tetra_conv_enc.o lower_mac/tch_reordering.o tetra_tdma.o lower_mac/tetra_scramb.o lower_mac/tetra_rm3014.o lower_mac/tetra_interleave.o lower_mac/crc_simple.o tetra_common.o lower_mac/viterbi.o lower_mac/viterbi_cch.o lower_mac/viterbi_tch.o lower_mac/tetra_lower_mac.o tetra_upper_mac.o tetra_mac_pdu.o tetra_llc_pdu.o tetra_llc.o tetra_mle_pdu.o tetra_mle.o tetra_mm_pdu.o tetra_cmce_pdu.o tetra_sndcp_pdu.o tetra_gsmtap.o tuntap.o
|
|
$(AR) r $@ $^
|
|
|
|
libosmo-tetra-crypto.a: crypto/tea1.o crypto/tea2.o crypto/tea3.o crypto/hurdle.o crypto/taa1.o crypto/tetra_crypto.o
|
|
$(AR) r $@ $^
|
|
|
|
float_to_bits: float_to_bits.o
|
|
|
|
crc_test: crc_test.o tetra_common.o libosmo-tetra-mac.a
|
|
|
|
tetra-rx: tetra-rx.o libosmo-tetra-phy.a libosmo-tetra-mac.a libosmo-tetra-crypto.a
|
|
|
|
conv_enc_test: conv_enc_test.o testpdu.o libosmo-tetra-phy.a libosmo-tetra-mac.a
|
|
|
|
tunctl: tunctl.o
|
|
|
|
clean:
|
|
@rm -f tunctl float_to_bits crc_test tetra-rx conv_enc_test *.o phy/*.o lower_mac/*.o crypto/*.o *.a
|