makefile.solaris
上传用户:aoeyumen
上传日期:2007-01-06
资源大小:3329k
文件大小:3k
- #
- # File: makefile
- # By: Alex Theo de Jong, NIST
- # Description:
- # Makefile for MPEG 2 Transport Stream Player on SUN Solaris
- #
- # Optional variables
- OS = -DSOLARIS -DSOLARIS_SDK_XIL # -DTRUECOLORS # only for MPEG 1!!!
- THREADLIB = -lthread -lxil
- USE_SHMEM = -DSH_MEM # Use shared memory?
- ATM = -DFORE_ATM # 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
- # Install Directories
- INSTINC = ../Inc
- INSTLIB = ../Lib/Solaris # 2.5 # 2.4
- INSTBIN = ../Bin/Solaris # 2.5 # 2.4
- ATMINC = /usr/fore/include
- X11INC = $(OPENWINHOME)/include
- # Tools
- CP = cp
- MV = mv
- RM = rm -f
- SED = sed
- CC = /opt/SUNWspro/bin/cc # gcc
- CPP = CC # Sparc Compiler # g++ -V2.7.2 # -V2.6.3 # GNU Compiler version
- AR = ar
- STRP = strip
- CHMOD = chmod 666
- # Compiler options
- EXTERNAL = # -fexternal-templates
- PROTOTYPE = # -fno-strict-prototype
- DEBUG = # -g # gdb # -DTRACE # -DDEBUG
- WARNINGS = # -Wall # Supress warnings # -Wall # List all warnings
- OPTIMIZE = -fast # -g -O # -O # -O6 # -O6 # -O2 #
- CPPFLAGS = $(DEBUG) $(WARNINGS) $(OPTIMIZE) $(OS) $(USE_SHMEM)
- $(PROTOTYPE) -I$(PIDRDIR) -I$(INSTINC) -I$(ATMDIR) $(THREADINC)
- -I$(X11INC)
- LDFLAGS = -L$(INSTLIB)
- LDLIBS = -lmpeg -lutil -lXext -lX11 $(THREADLIB)
- # Compile lines
- all:
- for i in ${TOOLDIR}; do (cd $$i; make
- INSTLIB=../$(INSTLIB) INSTINC=../$(INSTINC) INSTBIN=../$(INSTBIN)
- ATMINC=$(ATMINC) X11INC=$(X11INC)
- AR=$(AR) CC="$(CC)" CPP="$(CPP)" STRP=$(STRP) CHMOD="$(CHMOD)"
- EXTERNAL=$(EXTERNAL) USE_SHMEM=$(USE_SHMEM) OS="$(OS) $(EOFEXIT)"
- THREADLIB="$(THREADLIB)" THREADINC=$(THREADINC) ATM=$(ATM)
- OPTIMIZE="$(OPTIMIZE)" WARNINGS="$(WARNINGS)" DEBUG="$(DEBUG)"
- all); done
- install:
- for i in ${TOOLDIR}; do (cd $$i; make
- INSTLIB=../$(INSTLIB) INSTINC=../$(INSTINC) INSTBIN=../$(INSTBIN)
- ATMINC=$(ATMINC) X11INC=$(X11INC)
- AR=$(AR) CC="$(CC)" CPP="$(CPP)" STRP=$(STRP) CHMOD="$(CHMOD)"
- EXTERNAL=$(EXTERNAL) USE_SHMEM=$(USE_SHMEM) OS="$(OS) $(EOFEXIT)"
- THREADLIB="$(THREADLIB)" THREADINC=$(THREADINC) ATM=$(ATM)
- OPTIMIZE="$(OPTIMIZE)" WARNINGS="$(WARNINGS)" DEBUG="$(DEBUG)"
- install); done
- clean:
- for i in ${TOOLDIR}; do (cd $$i; make clean); done
- $(RM) *.~?~ *~
- installclean:
- for i in ${TOOLDIR}; do (cd $$i; make clean); done
- $(RM) *.~?~ *~ $(INSTLIB)/* $(INSTINC)/*