码迷,mamicode.com
首页 > 其他好文 > 详细

基于live555转发实时视频流Makefile备档

时间:2015-08-20 10:57:19      阅读:218      评论:0      收藏:0      [点我收藏+]

标签:

INCLUDES = -I../UsageEnvironment/include -I../groupsock/include -I../liveMedia/include -I../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. -O2 -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64

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


PROXY_SERVER = live555ProxyServer$(EXE)


PREFIX = /usr/local

ALL = $(PROXY_SERVER)

all: $(ALL)


.$(C).$(OBJ):

$(C_COMPILER) -c $(C_FLAGS) $<

.$(CPP).$(OBJ):

$(CPLUSPLUS_COMPILER) -c $(CPLUSPLUS_FLAGS) $<


PROXY_SERVER_OBJS = Live555ProxyServer.$(OBJ) MyRTSPClent.$(OBJ) MyServerMediaSubsession.$(OBJ) MyServerMediaSession.$(OBJ)


USAGE_ENVIRONMENT_DIR = ../UsageEnvironment

USAGE_ENVIRONMENT_LIB = $(USAGE_ENVIRONMENT_DIR)/libUsageEnvironment.$(libUsageEnvironment_LIB_SUFFIX)

BASIC_USAGE_ENVIRONMENT_DIR = ../BasicUsageEnvironment

BASIC_USAGE_ENVIRONMENT_LIB = $(BASIC_USAGE_ENVIRONMENT_DIR)/libBasicUsageEnvironment.$(libBasicUsageEnvironment_LIB_SUFFIX)

LIVEMEDIA_DIR = ../liveMedia

LIVEMEDIA_LIB = $(LIVEMEDIA_DIR)/libliveMedia.$(libliveMedia_LIB_SUFFIX)

GROUPSOCK_DIR = ../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)


live555ProxyServer$(EXE): $(PROXY_SERVER_OBJS) $(LOCAL_LIBS)

$(LINK)$@ $(CONSOLE_LINK_OPTS) $(PROXY_SERVER_OBJS) $(LIBS)


clean:

-rm -rf *.$(OBJ) $(ALL) core *.core *~ include/*~


install: $(PROXY_SERVER)

 install -d $(DESTDIR)$(PREFIX)/bin

 install -m 755 $(PROXY_SERVER) $(DESTDIR)$(PREFIX)/bin


##### Any additional, platform-specific rules come here:


基于live555转发实时视频流Makefile备档

标签:

原文地址:http://my.oschina.net/u/2430809/blog/494912

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!