Makefile
资源名称:p2p_vod.rar [点击查看]
上传用户:liguizhu
上传日期:2015-11-01
资源大小:2422k
文件大小:1k
源码类别:
P2P编程
开发平台:
Visual C++
- SUFFIX = `date +%y%m%d`
- INSTALL_PREFIX = /opt/mysee/
- CC = gcc -g -Wall -DDEBUG
- SRC = SPnew.c sessions.c timer.c job.c livechannel.c util.c md5.c db.c CPnew.c makeDB.c formatchange.c echo.h Makefile ErrorDefine.h StructDefine.h md5.h util.h ProtocolDefine.h asp.cfg gcp.cfg ats.cfg netblocks.cfg CPtest.c media.c order.c program.c
- CP_SRC = CPnew.c job.c livechannel.c util.c media.c livechannel.c
- SP_SRC = SPnew.c job.c livechannel.c util.c md5.c db.c timer.c media.c program.c order.c livechannel.c
- TARGET = gcpnew spnew makeDB fchange
- DEFINE_GCP = -static -D__CP_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DP2PS_PORT=50002 -DCP2TS_PORT=3947 -DCONFIG=""./gcp.cfg"" -DHAVE_TS -DSO_LINGER -DHAVE_SYSLOG -lpthread
- DEFINE_SP = -static -D__HAVE_PLIST -D__SP_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DTEST -DSO_LINGER -I/usr/include -L/usr/lib -ldb -DHAVE_SYSLOG -lpthread
- .IGNORE:
- all: $(TARGET)
- spnew: $(SP_SRC)
- $(CC) -o $@.$(SUFFIX) $^ $(DEFINE_SP)
- gcpnew: $(CP_SRC)
- $(CC) -o $@.$(SUFFIX) $^ $(DEFINE_GCP)
- makeDB: db.c makeDB.c md5.c
- $(CC) -o $@ $^ $(DEFINE_SP) -DDB_DIR=""$(INSTALL_PREFIX)/db/""
- fchange: formatchange.c
- $(CC) -o $@ $^