forked from catalinii/minisatip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
98 lines (79 loc) · 1.35 KB
/
Makefile.in
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
97
98
AUTOMAKE_OPTIONS = foreign
CC=@CC@
EMBEDDED=@EMBEDDED@
DVBCSA=@DVBCSA@
DVBAES=@DVBAES@
DVBCA=@DVBCA@
SATIPCLIENT=@SATIPCLIENT@
NETCVCLIENT=@NETCVCLIENT@
STATIC=@STATIC@
DVBAPI=@DVBAPI@
LINUXDVB=@LINUXDVB@
CFLAGS?=-ggdb -fPIC $(EXTRA_CFLAGS) @CFLAGS@
LDFLAGS?=-lpthread -lrt @LDFLAGS@
OBJS=minisatip.o socketworks.o stream.o adapter.o utils.o
TABLES=0
ifeq ($(DVBAES),1)
LIBS+=crypto
OBJS+=aes.o
TABLES=1
else
CFLAGS+=-DDISABLE_DVBAES
endif
ifeq ($(DVBCSA),1)
LIBS+=dvbcsa
OBJS+=csa.o
TABLES=1
else
CFLAGS+=-DDISABLE_DVBCSA
endif
ifeq ($(DVBAPI),1)
OBJS+=dvbapi.o
TABLES=1
else
CFLAGS+=-DDISABLE_DVBAPI
endif
ifeq ($(DVBCA),1)
LIBS+=dvben50221 dvbapi ucsi
OBJS+=ca.o
TABLES=1
else
CFLAGS+=-DDISABLE_DVBCA
endif
ifeq ($(TABLES),1)
OBJS+=tables.o
else
CFLAGS+=-DDISABLE_TABLES
endif
ifeq ($(SATIPCLIENT),1)
OBJS+=satipc.o
else
CFLAGS+=-DDISABLE_SATIPCLIENT
endif
ifeq ($(NETCVCLIENT),1)
OBJS+=netceiver.o
LDFLAGS+=-lmcli -lxml2
else
CFLAGS+=-DDISABLE_NETCVCLIENT
endif
ifeq ($(LINUXDVB),1)
OBJS+=dvb.o
else
CFLAGS+=-DDISABLE_LINUXDVB
OBJS+=dvb.o
endif
ifeq ($(EMBEDDED),1)
CFLAGS+=-DNO_BACKTRACE
endif
ifeq ($(STATIC),1)
LDFLAGS+=$(addsuffix .a,$(addprefix -l:lib,$(LIBS)))
else
LDFLAGS+=$(addprefix -l,$(LIBS))
endif
minisatip: $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS)
%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
all: minisatip
clean:
rm *.o minisatip >> /dev/null