-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathMakefile
69 lines (57 loc) · 2.76 KB
/
Makefile
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
LIVE = /home/yuval/dev/live
INCLUDES = -I$(LIVE)/UsageEnvironment/include -I$(LIVE)/groupsock/include -I$(LIVE)/liveMedia/include -I$(LIVE)/BasicUsageEnvironment/include
# Default library filename suffixes for each library that we link with. The "config.*" file might redefine these later.
libliveMedia_LIB_SUFFIX = $(LIB_SUFFIX)
libBasicUsageEnvironment_LIB_SUFFIX = $(LIB_SUFFIX)
libUsageEnvironment_LIB_SUFFIX = $(LIB_SUFFIX)
libgroupsock_LIB_SUFFIX = $(LIB_SUFFIX)
##### Change the following for your environment:
COMPILE_OPTS = $(INCLUDES) -I. -I/home/yuval/dev/ffmpeg -O2 -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS
C = c
C_COMPILER = cc
C_FLAGS = $(COMPILE_OPTS) $(CPPFLAGS) $(CFLAGS)
CPP = cpp
CPLUSPLUS_COMPILER = c++
CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -DBSD=1 $(CPPFLAGS) $(CXXFLAGS)
OBJ = o
LINK = c++ -o
LINK_OPTS = -L. $(LDFLAGS)
CONSOLE_LINK_OPTS = $(LINK_OPTS)
LIBRARY_LINK = ar cr
LIBRARY_LINK_OPTS =
LIB_SUFFIX = a
LIBS_FOR_CONSOLE_APPLICATION =
LIBS_FOR_GUI_APPLICATION =
EXE =
##### End of variables to change
PREFIX = /usr/local
ALL = RTSPFF$(EXE)
all: $(ALL)
extra: testGSMStreamer$(EXE)
.$(C).$(OBJ):
$(C_COMPILER) -c $(C_FLAGS) $<
.$(CPP).$(OBJ):
$(CPLUSPLUS_COMPILER) -c $(CPLUSPLUS_FLAGS) $<
RTSP_FF_OBJS = RTSPFF.$(OBJ)
openRTSP.$(CPP): playCommon.hh
playCommon.$(CPP): playCommon.hh
playSIP.$(CPP): playCommon.hh
USAGE_ENVIRONMENT_DIR = $(LIVE)/UsageEnvironment
USAGE_ENVIRONMENT_LIB = $(USAGE_ENVIRONMENT_DIR)/libUsageEnvironment.$(libUsageEnvironment_LIB_SUFFIX)
BASIC_USAGE_ENVIRONMENT_DIR = $(LIVE)/BasicUsageEnvironment
BASIC_USAGE_ENVIRONMENT_LIB = $(BASIC_USAGE_ENVIRONMENT_DIR)/libBasicUsageEnvironment.$(libBasicUsageEnvironment_LIB_SUFFIX)
LIVEMEDIA_DIR = $(LIVE)/liveMedia
LIVEMEDIA_LIB = $(LIVEMEDIA_DIR)/libliveMedia.$(libliveMedia_LIB_SUFFIX)
GROUPSOCK_DIR = $(LIVE)/groupsock
GROUPSOCK_LIB = $(GROUPSOCK_DIR)/libgroupsock.$(libgroupsock_LIB_SUFFIX)
LOCAL_LIBS = $(LIVEMEDIA_LIB) $(GROUPSOCK_LIB) \
$(BASIC_USAGE_ENVIRONMENT_LIB) $(USAGE_ENVIRONMENT_LIB)
LIBS = $(LOCAL_LIBS) $(LIBS_FOR_CONSOLE_APPLICATION)
RTSPFF$(EXE): $(RTSP_FF_OBJS) $(LOCAL_LIBS)
$(LINK)$@ $(CONSOLE_LINK_OPTS) $(RTSP_FF_OBJS) $(LIBS) /home/yuval/dev/ffmpeg/libavcodec/libavcodec.a /home/yuval/dev/ffmpeg/libavformat/libavformat.a /home/yuval/dev/ffmpeg/libavutil/libavutil.a /home/yuval/dev/ffmpeg/libavfilter/libavfilter.a /home/yuval/dev/ffmpeg/libavdevice/libavdevice.a /home/yuval/dev/ffmpeg/libswscale/libswscale.a /home/yuval/dev/ffmpeg/libswresample/libswresample.a -lm -lz -lbz2 -lpthread -lSDL
clean:
-rm -rf *.$(OBJ) $(ALL) core *.core *~ include/*~
install: $(ALL)
install -d $(DESTDIR)$(PREFIX)/bin
install -m 755 $(ALL) $(DESTDIR)$(PREFIX)/bin
##### Any additional, platform-specific rules come here: