makefile.sgi
上传用户:aoeyumen
上传日期:2007-01-06
资源大小:3329k
文件大小:3k
- #
- # $HEADER$
- #
- # Makefile for MPEG 2 Player
- #
- # By: Alex Th. de Jong
- # Created: February 1996
- # Description:
- # Makefile for MPEG 2 Transport Stream player for SGI Irix 5.3
- #
- # Operating System
- OS = -DIRIX # -DIRIX_PTHREAD
- # Use Multi-Processing on Irix 5.3
- THREADLIB = # -L/opt/pthread/lib/libpthread.a
- THREADINC = # -I/opt/pthread/include
- USE_SHMEM = -DSH_MEM # Use shared memory?
- ATM = -DFORE_ATM # Use Fore ATM?
- EOFEXIT = # -DEOFEXIT
- # This option is useful for network receivers. The decoder is
- # terminated when an EOF is receiver (no proper clean-up)
- # Tool directories
- TOOLDIR = Util
- Buffer
- Video
- Audio
- Demux
- # Directories
- PIDRDIR = .
- INSTINC = ../Inc
- INSTLIB = ../Lib/Irix # 5.3 # 6.2
- INSTBIN = ../Bin/Irix # 5.3 # 6.2
- ATMINC = /usr/fore/include
- X11INC = /usr/include
- # SetTop Unit Player
- TARNAME = mpeg2tsplayer
- # Tools
- CP = cp
- MV = mv
- RM = rm -f
- SED = sed
- CHMOD = chmod 666
- CPP = CC # g++ -V2.7.2.1 # # g++ -V2.6.3 ## GNU Compiler version
- CC = cc # gcc -V2.7.2.1 # gcc
- AR = ar
- STRP = /bin/strip
- # Compiler options
- EXTERNAL = # -fexternal-templates # Keep out of compiler flags: they need to be generated somewhere!
- PROTOTYPE = # -fno-strict-prototype
- DEBUG = # -ggdb # -DTRACE # -DDEBUG
- WARNINGS = -w # -Wall # -w Supress warnings # -Wall # List all warnings
- OPTIMIZE = -O2 # -O6 # -O2 # # -O #
- CPPFLAGS = $(DEBUG) $(WARNINGS) $(OPTIMIZE) $(OS)
- $(USE_SHMEM)
- $(PROTOTYPE) -I$(PIDRDIR) -I$(INSTINC) -I$(PTHREADINC)
- -I$(OPENWINHOME)/include
- LDFLAGS = -L$(INSTLIB) -L/usr/people/dejong
- LDLIBS = -lmpeg -lutil -lXext -lX11 $(THREADLIB)
- # Compile lines
- all:
- for i in ${TOOLDIR}; do (cd $$i; gmake -f makefile.sgi
- INSTBIN=../$(INSTBIN) INSTINC=../$(INSTINC) INSTLIB=../$(INSTLIB)
- ATMINC=$(ATMINC) X11INC=$(X11INC)
- AR=$(AR) CC="$(CC)" CPP="$(CPP)" STRP=$(STRP) CHMOD="$(CHMOD)"
- EXTERNAL=$(EXTERNAL) USE_SHMEM=$(USE_SHMEM) ATM=$(ATM)
- OS="$(OS)" EOFEXIT="$(EOFEXIT)" THREADINC=$(THREADINC) THREADLIB=$(THREADLIB)
- OPTIMIZE=$(OPTIMIZE) WARNINGS=$(WARNINGS) DEBUG="$(DEBUG)"
- all); done
- install:
- for i in ${TOOLDIR}; do (cd $$i; gmake -f makefile.sgi
- INSTBIN=../$(INSTBIN) INSTINC=../$(INSTINC) INSTLIB=../$(INSTLIB)
- ATMINC=$(ATMINC) X11INC=$(X11INC)
- AR=$(AR) CC="$(CC)" CPP="$(CPP)" STRP=$(STRP) CHMOD="$(CHMOD)"
- EXTERNAL=$(EXTERNAL) USE_SHMEM=$(USE_SHMEM) ATM=$(ATM)
- OS="$(OS)" EOFEXIT="$(EOFEXIT)" THREADINC=$(THREADINC) THREADLIB=$(THREADLIB)
- OPTIMIZE=$(OPTIMIZE) WARNINGS=$(WARNINGS) DEBUG="$(DEBUG)"
- install); done
- clean:
- for i in ${TOOLDIR}; do (cd $$i; gmake -f makefile.sgi clean); done
- $(RM) *~ *.~?~ *%
- installclean:
- for i in ${TOOLDIR}; do (cd $$i; gmake -f makefile.sgi installclean); done
- $(RM) *~ *.~?~ *% $(INSTLIB)/*.a $(INSTINC)/*