This repository has been archived by the owner on May 11, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile.in
103 lines (79 loc) · 2.7 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
99
100
101
102
103
top_srcdir=@top_srcdir@
srcdir=@srcdir@
VPATH=@srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
infodir = @infodir@
mandir = @mandir@
sysconfdir = @sysconfdir@
CC = @CC@
CFLAGS = @CFLAGS@
CPPFLAGS = -I. @extraincludedir@ -I@srcdir@ @CPPFLAGS@
HOST_ID = @HOST_ID@
DEFS = @DEFS@ $(HOST_ID)
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
SHLIB = @SHLIB@
MACHDEPLIBS = @MACHDEPLIBS@
LN_S = @LN_S@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
.SUFFIXES:
.SUFFIXES: .o .c
.SUFFIXES: .o .c
#override CFLAGS += -O4 -Wall -DNDEBUG -DLOSSTEST
override CFLAGS +=-Wall -Wshadow -DBB_FEATURE_UDPCAST_FEC -D_FILE_OFFSET_BITS=64 -DUSE_SYSLOG -DUSE_ASSEMBLER -O6
override LDFLAGS +=-s
LIBS +=@LIBS@
BUSYBOX=../udp-busybox/busybox
BBTARGET=$(BUSYBOX)/udpcast
EXESUFFIX=@EXESUFFIX@
override CFLAGS += -DNO_BB
all: udp-senderx$(EXESUFFIX)
clean:
rm -f *.o udp-senderx$(EXESUFFIX) Makefile config.status config.h *~
install: udp-senderx
install -d $(prefix)/sbin
install -m 755 udp-senderx $(prefix)/sbin
udp-senderx$(EXESUFFIX): udp-senderx.o socklib.o udpcast.o rate-limit.o \
sender-diskio.o senddata.o udps-negotiate.o \
fifo.o produconsum.o participants.o log.o statistics.o \
fec.o udpc_version.o console.o process.o
$(CC) $(LDFLAGS) $^ $(LIBS) -o $@
fec.o: fec.c
$(CC) -c $(CPPFLAGS) $(CFLAGS) -fno-inline $<
bbcopy: $(BBTARGET) \
$(BBTARGET)/fec.c $(BBTARGET)/participants.h $(BBTARGET)/socklib.c \
$(BBTARGET)/udp-receiver.c $(BBTARGET)/fec.h \
$(BBTARGET)/produconsum.c $(BBTARGET)/socklib.h \
$(BBTARGET)/udp-receiver.h $(BBTARGET)/fec-test.c \
$(BBTARGET)/produconsum.h $(BBTARGET)/statistics.c \
$(BBTARGET)/udpr-negotiate.c $(BBTARGET)/fifo.c \
$(BBTARGET)/rate-limit.c $(BBTARGET)/statistics.h \
$(BBTARGET)/udp-senderx.c $(BBTARGET)/fifo.h $(BBTARGET)/rate-limit.h \
$(BBTARGET)/udpcast.c $(BBTARGET)/udp-senderx.h \
$(BBTARGET)/libbb_udpcast.h $(BBTARGET)/receivedata.c \
$(BBTARGET)/udpcast.h $(BBTARGET)/udps-negotiate.c \
$(BBTARGET)/log.c $(BBTARGET)/receiver-diskio.c \
$(BBTARGET)/udpc-protoc.h $(BBTARGET)/util.h \
$(BBTARGET)/log.h $(BBTARGET)/senddata.c $(BBTARGET)/udpc_version.c \
$(BBTARGET)/participants.c $(BBTARGET)/sender-diskio.c \
$(BBTARGET)/udpc_version.h \
$(BBTARGET)/console.h $(BBTARGET)/console.c \
$(BBTARGET)/udpc_process.h $(BBTARGET)/process.c \
$(BBTARGET)/threads.h \
$(BBTARGET)/Config.in $(BBTARGET)/Kbuild \
$(BBTARGET)/config.h
$(BBTARGET):
mkdir $(BBTARGET)
$(BBTARGET)/Kbuild: Kbuild
cp -f $< $(BBTARGET)/
$(BBTARGET)/%.c: %.c
cp -f $< $(BBTARGET)
$(BBTARGET)/%.h: %.h
cp -f $< $(BBTARGET)
$(BBTARGET)/Config.in: Config.in
cp -f $< $(BBTARGET)
bb: bbcopy
make -C $(BUSYBOX)