summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
blob: 4815e96e2795fda35e1c7ac768c9d83563c62eae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Copyright (C) 2008, 2009,2012 Her Majesty the Queen in Right of Canada
# (Communications Research Center Canada)
#
# Pascal Charest and 
# Matthias P. Braendli

# This file is part of CRC-DabMux.
# 
# CRC-DabMux is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# 
# CRC-DabMux is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with CRC-DabMux.  If not, see <http://www.gnu.org/licenses/>.

bin_PROGRAMS=CRC-DabMux CRC-BridgeTest

FEC_FLAGS   =
FEC_LIBS    =-lfec

if HAVE_OUTPUT_ZEROMQ_TEST
ZMQ_LIBS    =-lzmq
else
ZMQ_LIBS    =
endif

CRC_DabMux_CPPFLAGS =-I$(FARSYNC_DIR)
CRC_DabMux_LDADD    =$(FEC_LIBS) $(ZMQ_LIBS) -lpthread
CRC_DabMux_SOURCES  =DabMux.cpp \
                     dabInput.h dabInput.cpp \
                     dabInputBridgeUdp.h dabInputBridgeUdp.cpp \
                     dabInputDabplusFifo.h dabInputDabplusFifo.cpp \
                     dabInputDabplusFile.h dabInputDabplusFile.cpp \
                     dabInputDmbFile.h dabInputDmbFile.cpp \
                     dabInputDmbUdp.h dabInputDmbUdp.cpp \
                     dabInputEnhancedFifo.h dabInputEnhancedFifo.cpp \
                     dabInputEnhancedPacketFile.h dabInputEnhancedPacketFile.cpp \
                     dabInputFifo.h dabInputFifo.cpp \
                     dabInputFile.h dabInputFile.cpp \
                     dabInputMpegFifo.h dabInputMpegFifo.cpp \
                     dabInputMpegFile.h dabInputMpegFile.cpp \
                     dabInputPacketFile.h dabInputPacketFile.cpp \
                     dabInputPrbs.h dabInputPrbs.cpp \
                     dabInputRawFile.h dabInputRawFile.cpp \
                     dabInputRawFifo.h dabInputRawFifo.cpp \
                     dabInputSlip.h dabInputSlip.cpp \
                     dabInputTest.h dabInputTest.cpp \
                     dabInputUdp.h dabInputUdp.cpp \
                     dabOutput/dabOutput.h \
                     dabOutput/dabOutputFile.cpp \
                     dabOutput/dabOutputFifo.cpp \
                     dabOutput/dabOutputRaw.cpp \
                     dabOutput/dabOutputSimul.cpp \
                     dabOutput/dabOutputTcp.cpp \
                     dabOutput/dabOutputUdp.cpp \
                     dabOutput/dabOutputZMQ.cpp \
                     bridge.h bridge.c \
                     utils.cpp utils.h \
                     MuxElements.cpp MuxElements.h \
                     ParserCmdline.cpp ParserCmdline.h \
                     ParserConfigfile.cpp ParserConfigfile.h \
                     Eti.h Eti.cpp \
                     TcpLog.h TcpLog.cpp \
                     UdpSocket.h UdpSocket.cpp \
                     InetAddress.h InetAddress.cpp \
                     prbs.h prbs.c \
                     crc.h crc.c \
                     dabUtils.h dabUtils.cpp \
                     PcDebug.h \
                     Dmb.h Dmb.cpp \
                     Interleaver.h Interleaver.cpp \
                     ReedSolomon.h ReedSolomon.cpp \
                     mpeg.h mpeg.c \
                     TcpServer.h TcpServer.cpp \
                     TcpSocket.h TcpSocket.cpp

CRC_BridgeTest_CFLAGS   =-DBRIDGE_TEST
CRC_BridgeTest_SOURCES  =bridge.c \
                         crc.c crc.h

CRC-DabMux-cfg: CRC-DabMux
	@echo "Copying CRC-DabMux to CRC-DabMux-cfg that reads ensemble config file"
	cp CRC-DabMux CRC-DabMux-cfg

.PHONY: CRC-DabMux-cfg

all: CRC-DabMux-cfg all-am

clean-local:
	rm -f CRC-DabMux-cfg