📄 makefile
字号:
# RTP Lib Makefile for Solaris# Targets:# rtplib.o Builds the RTP library# audioplayer Builds audioplayer without MPEG audio support.# Make sure that MPEG is *not* #defined in ../main/main.c# audioplayer-mpeg Builds the audioplayer with MPEG audio support.# Make sure that MPEG *is* #defined in ../main/main.c# and that the MPEG player source code is present as# described in ../README.# clean Removes object and executable files# depend Updates Makefile's dependanciesDEFS = -DSOLARISINCLUDE = -I../hLD = ldCC = gccCPP = ${CC} -ELIBS = -lnsl -lpthread -lm -lsocket -lposix4MAKETD = makedependAWK = awkMAKE = makeFLAGS = -c -g -Wall -ORTP_LIB = rtplib.oA_OUT = audioplayerRTP_DIR = ../rtpRTCP_DIR = ../rtcpUTIL_DIR = ../utilSYNCH_DIR = ../synchSAMP_DIR = ../sampleFRAME_DIR = ../framePACK_DIR = ../packetMPEG_DIR = ../mpadecoderMAIN_DIR = ../mainRTP_SRC = rtpstreamon.c \ rtpmkssrc.c \ rtpqueueapi.c \ rtpclose.c \ rtpcheckcollision.c \ rtpsources.c \ rtpopen.c \ rtpnewstream.c \ rtpremovestream.c \ rtpgetstream.c \ rtprecv.c \ rtpheaderutil.c \ rtpstreamoff.c \ rtpstreamcleanup.c \ rtpupdate.c \ rtprecvthreadfcn.c \ rtppostevent.c \ rtpctl.c \ rtpdestroystream.c \ rtpqueueinternal.c \ rtpreleasestream.c RTP_OBJ = $(RTP_SRC:.c=.o)RTCP_SRC = rtcprecv.c \ rtcpsend.c \ rtcprecvthreadfcn.c \ rtcpcycle.c \ rtcpinterval.c \ rtcpsendbye.c \ rtcpcname.c \ rtcpheader.c \ rtcpsr.c \ rtcprr.c \ rtcpapp.c \ rtcpbye.c \ rtcpsdes.c \ rtcpcyclethreadfcn.cRTCP_OBJ = $(RTCP_SRC:.c=.o)SYNCH_SRC = synopen.c \ synstreamon.c \ syneventloop.c \ syngetstream.c \ synreleasestream.c \ synstreamoff.c \ synstreamdestroy.c \ synrebuffer.c \ synctl.c \ synsources.c \ synclose.c \ synread.c \ synnewdata.c \ synsynchronize.c \ synsyncto.c \ synsyncrecvthr.c \ synsyncrecv.c \ synbufspan.c SYNCH_OBJ = $(SYNCH_SRC:.c=.o) UTIL_SRC = hash.c \ time.c \ event.c \ payload.c \ thrstartstop.c \ nullfcn.c \ clock_gettime.c \ bufpool.cUTIL_OBJ = $(UTIL_SRC:.c=.o)SAMP_SRC = sampread.cSAMP_OBJ = $(SAMP_SRC:.c=.o)PACK_SRC = packread.cPACK_OBJ = $(PACK_SRC:.c=.o)FRAME_SRC = frameread.c \ framereadfragmented.c \ framereadnonfragmented.cFRAME_OBJ = $(FRAME_SRC:.c=.o)MAIN_SRC = main.cMAIN_OBJ = $(MAIN_SRC:.c=.o)MPEG_SRC = common.c \ decode.c \ huffman.c \ ieeefloat.c \ musicout.c \ portableio.c \ out_audio.c \ upcall.c MPEG_OBJ = $(MPEG_SRC:.c=.o)LIB_OBJ = ${RTP_OBJ} ${RTCP_OBJ} ${UTIL_OBJ} ${SYNCH_OBJ} ${SAMP_OBJ} ${PACK_OBJ} ${FRAME_OBJ}all: ${A_OUT}${A_OUT}: ${RTP_LIB} ${MAIN_OBJ} ${CC} ${DEFS} ${RTP_LIB} ${MAIN_OBJ} -o ${A_OUT} ${LIBS}${A_OUT}-mpeg: ${RTP_LIB} ${MAIN_OBJ} ${MPEG_OBJ} ${CC} ${DEFS} ${RTP_LIB} ${MAIN_OBJ} ${MPEG_OBJ} -o ${A_OUT} ${LIBS}synctest: ${RTP_LIB} ${STEST_OBJ} ${MPEG_OBJ} ${CC} ${DEFS} ${RTP_LIB} ${MPEG_OBJ} ${STEST_OBJ} -o synctest ${LIBS}${RTP_LIB}: ${LIB_OBJ} ${LD} -r -o ${RTP_LIB} ${LIB_OBJ}${RTP_OBJ}: ${CC} ${INCLUDE} ${FLAGS} ${DEFS} ${RTP_DIR}/`basename $@ .o`.[c]${RTCP_OBJ}: ${CC} ${INCLUDE} ${FLAGS} ${DEFS} ${RTCP_DIR}/`basename $@ .o`.[c]${UTIL_OBJ}: ${CC} ${INCLUDE} ${FLAGS} ${DEFS} ${UTIL_DIR}/`basename $@ .o`.[c]${SYNCH_OBJ}: ${CC} ${INCLUDE} ${FLAGS} ${DEFS} ${SYNCH_DIR}/`basename $@ .o`.[c]${SAMP_OBJ}: ${CC} ${INCLUDE} ${FLAGS} ${DEFS} ${SAMP_DIR}/`basename $@ .o`.[c]${PACK_OBJ}: ${CC} ${INCLUDE} ${FLAGS} ${DEFS} ${PACK_DIR}/`basename $@ .o`.[c]${FRAME_OBJ}: ${CC} ${INCLUDE} ${FLAGS} ${DEFS} ${FRAME_DIR}/`basename $@ .o`.[c]# Special definitions from dist10 Makefile# No -Wall for ISO/IEC code because it generates many warnings${MPEG_OBJ}: ${CC} ${INCLUDE} -g -c -O ${DEFS} -DUNIX -DBS_FORMAT=BINARY $(NINT_SWITCH) -DNDEBUG ${MPEG_DIR}/`basename $@ .o`.[c]${MAIN_OBJ}: ${CC} ${INCLUDE} ${FLAGS} ${DEFS} ${MAIN_DIR}/`basename $@ .o`.[c]clean: \rm -rf *.o core ${RTP_LIB} ${A_OUT}depend: makedep echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep echo '$$r makedep' >>eddep echo 'w' >>eddep cp Makefile Makefile.bak ex - Makefile < eddep rm eddep makedep makedep1 makedeperrsCFILES = ${RTP_DIR}/*.c ${RTCP_DIR}/*.c ${UTIL_DIR}/*.c ${SYNCH_DIR}/*.c ${SAMP_DIR}/*.c ${PACK_DIR}/*.c ${FRAME_DIR}/*.c ${MAIN_DIR}/*.c ${MPEG_DIR}/*.cmakedep: FRC @cat /dev/null >makedep -(for i in ${CFILES} ; do \ ${CPP} -M ${DEFS} -I../h ./$$i >> makedep; done) \ 2>makedeperrs sed -e 's,^\(.*\)\.o:,\1.o:,' makedep > makedep1 ${AWK} ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \ else { if (length(rec $$3) > 78) { print rec; rec = $$0; } \ else rec = rec " " $$3 } } \ END { print rec } ' makedep1 > makedep @cat makedeperrs @(if [ -s makedeperrs ]; then false; fi)xdepend: FRC ${MAKETD} ${DEFS} -I../h ${CFILES}FRC:#------------------------------------------------------------------------# DO NOT DELETE THIS LINE - maketd DEPENDS ON ITrtpcheckcollision.o: ./../rtp/rtpcheckcollision.c ../h/rtp.h \ ../h/rtplibcommon.h ../h/linux.h /usr/include/time.h \ /usr/include/features.h /usr/include/sys/cdefs.h \ /usr/include/gnu/stubs.h \ /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h \ /usr/include/bits/time.h /usr/include/bits/types.h \ /usr/include/netinet/in.h \ /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h \ /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/syslimits.h \ /usr/include/limits.h /usr/include/bits/posix1_lim.h \ /usr/include/bits/local_lim.h /usr/include/linux/limits.h \ /usr/include/bits/posix2_lim.h /usr/include/stdint.h \ /usr/include/bits/wordsize.h /usr/include/sys/types.h \ /usr/include/endian.h /usr/include/bits/endian.h \ /usr/include/sys/select.h /usr/include/bits/select.h \ /usr/include/bits/sigset.h /usr/include/sys/sysmacros.h \ /usr/include/bits/socket.h /usr/include/bits/sockaddr.h \ /usr/include/asm/socket.h /usr/include/asm/sockios.h \ /usr/include/bits/in.h /usr/include/bits/byteswap.h ../h/event.h \ /usr/include/semaphore.h /usr/include/pthread.h /usr/include/sched.h \ /usr/include/bits/sched.h /usr/include/signal.h \ /usr/include/bits/pthreadtypes.h /usr/include/bits/sigthread.h \ ../h/bufpool.h ../h/rtcp.hrtpclose.o: ./../rtp/rtpclose.c ../h/rtp.h ../h/rtplibcommon.h \ ../h/linux.h /usr/include/time.h /usr/include/features.h \ /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h \ /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h \ /usr/include/bits/time.h /usr/include/bits/types.h \ /usr/include/netinet/in.h \ /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h \ /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/syslimits.h \ /usr/include/limits.h /usr/include/bits/posix1_lim.h \ /usr/include/bits/local_lim.h /usr/include/linux/limits.h \ /usr/include/bits/posix2_lim.h /usr/include/stdint.h \ /usr/include/bits/wordsize.h /usr/include/sys/types.h \ /usr/include/endian.h /usr/include/bits/endian.h \ /usr/include/sys/select.h /usr/include/bits/select.h \ /usr/include/bits/sigset.h /usr/include/sys/sysmacros.h \ /usr/include/bits/socket.h /usr/include/bits/sockaddr.h \ /usr/include/asm/socket.h /usr/include/asm/sockios.h \ /usr/include/bits/in.h /usr/include/bits/byteswap.h ../h/event.h \
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -