-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
MakefileRepackage
71 lines (50 loc) · 1.93 KB
/
MakefileRepackage
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
CC=gcc
CXX=g++
CFLAGS=-g -c -O2 -m64 -Wall -Wfatal-errors -funroll-loops -Wno-deprecated-declarations -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-function -Wno-format-truncation
SRC=./source
INC=-I./include -I./cblibcurl/include/curl
OBJS=crc.o tsdecode.o fgetopt.o mempool.o transvideo.o transaudio.o dataqueue.o udpsource.o tsreceive.o hlsmux.o mp4core.o background.o cJSON.o cJSON_Utils.o webdav.o esignal.o
LIB=libfillet_repackage.a
BASELIBS=
all: $(LIB) fillet_repackage
fillet_repackage: fillet.o $(OBJS)
$(CXX) fillet.o $(OBJS) -L./ $(BASELIBS) -lm -lpthread ./cblibcurl/./lib/.libs/libcurl.a -lz -o fillet_repackage
$(LIB): $(OBJS)
ar rcs $(LIB) $(OBJS)
@echo finishing building lib
fillet.o: $(SRC)/fillet.c
$(CC) $(CFLAGS) $(INC) $(SRC)/fillet.c
background.o: $(SRC)/background.c
$(CC) $(CFLAGS) $(INC) $(SRC)/background.c
tsreceive.o: $(SRC)/tsreceive.c
$(CC) $(CFLAGS) $(INC) $(SRC)/tsreceive.c
udpsource.o: $(SRC)/udpsource.c
$(CC) $(CFLAGS) $(INC) $(SRC)/udpsource.c
dataqueue.o: $(SRC)/dataqueue.c
$(CC) $(CFLAGS) $(INC) $(SRC)/dataqueue.c
mempool.o: $(SRC)/mempool.c
$(CC) $(CFLAGS) $(INC) $(SRC)/mempool.c
mp4core.o: $(SRC)/mp4core.c
$(CC) $(CFLAGS) $(INC) $(SRC)/mp4core.c
hlsmux.o: $(SRC)/hlsmux.c
$(CC) $(CFLAGS) $(INC) $(SRC)/hlsmux.c
fgetopt.o: $(SRC)/fgetopt.c
$(CC) $(CFLAGS) $(INC) $(SRC)/fgetopt.c
transvideo.o: $(SRC)/transvideo.c
$(CC) $(CFLAGS) $(INC) $(SRC)/transvideo.c
transaudio.o: $(SRC)/transaudio.c
$(CC) $(CFLAGS) $(INC) $(SRC)/transaudio.c
tsdecode.o: $(SRC)/tsdecode.c
$(CC) $(CFLAGS) $(INC) $(SRC)/tsdecode.c
webdav.o: $(SRC)/webdav.c
$(CC) $(CFLAGS) $(INC) $(SRC)/webdav.c
esignal.o: $(SRC)/esignal.c
$(CC) $(CFLAGS) $(INC) $(SRC)/esignal.c
crc.o: $(SRC)/crc.c
$(CC) $(CFLAGS) $(INC) $(SRC)/crc.c
cJSON.o: $(SRC)/cJSON.c
$(CC) $(CFLAGS) $(INC) $(SRC)/cJSON.c
cJSON_Utils.o: $(SRC)/cJSON_Utils.c
$(CC) $(CFLAGS) $(INC) $(SRC)/cJSON_Utils.c
clean:
rm -rf *o fillet_repackage