makefile.sgi
上传用户:aoeyumen
上传日期:2007-01-06
资源大小:3329k
文件大小:2k
- #
- # $Header:
- # File: makefile.sgi
- # By: Alex Theo de Jong, NIST
- # Description:
- # Makefile for MPEG 2 Demultiplexor implementation for SGI Irix 5.3
- #
- OS = -DIRIX # -DIRIX_PTHREAD
- # Use Multi-Processing on Irix; pthread library does not work with X11
- THREADLIB = # -L/opt/pthread/lib/libpthread.a
- THREADINC = # -I/opt/pthread/include
- # Directories
- PIDRDIR = .
- INSTBIN = ../../../Bin/Irix
- INSTLIB = ../../../Lib
- INSTINC = ../../../Inc
- ATMINC = /usr/fore/include
- ATMLIB = /usr/fore/lib
- # Tools
- CP = cp
- MV = mv
- RM = rm -f
- CHMOD = chmod 666
- CPP = CC # SGI Native compiler #
- # CPP = g++ -V2.6.3 # GNU Compiler version
- AR = ar
- STRP = /bin/strip
- # Compiler options
- EXTERNAL = # -fexternal-templates
- ATM = -DFORE_ATM
- PROTOTYPE = # -fno-strict-prototype
- DEBUG = # -ggdb -DTRACE # -DDEBUG
- WARNINGS = # -Wall # List all warnings # -w # Suppress warnings #
- OPTIMIZE = # -O6 # -O2 # -O6 #
- # Compiler flags
- CPPFLAGS = $(DEBUG) $(WARNINGS) $(OPTIMIZE) $(OS) $(ATM)
- $(PROTOTYPE) $(EXTERNAL) -I$(PIDRDIR) -I$(INSTINC) $(THREADINC)
- -I$(ATMINC)
- # Loader/linker flags
- LDFLAGS = -L$(INSTLIB) -L$(ATMLIB)
- LDLIBS = -lmpeg -lutil -lXext -lX11 -laudio -latm $(THREADLIB)
- # Things to compile
- OBJECTS = mpeg2demux.o
- HEADERS = mpeg2demux.hh
- PROGRAM = mpeg2player
- LIBRARY = libmpeg.a
- # Compile lines
- all: $(PROGRAM)
- install: bin
- clean: installclean
-
- installclean:
- $(RM) *.o *~ *.~?~ core $(PROGRAM)
- %.a: $(OBJECTS)
- $(AR) vrus $(INSTLIB)/$*.a $(OBJECTS)
- $(CP) *.hh $(INSTINC)
- $(CHMOD) $(INSTINC)/*.hh
- .cc.o:
- $(RM) $@
- $(CPP) $(CPPFLAGS) -c $<
- $(PROGRAM):
- $(RM) $(PROGRAM)
- $(CPP) -o $(PROGRAM) $(PROGRAM).o $(LDFLAGS) $(LDLIBS)
- bin: $(PROGRAM)
- $(CP) $(PROGRAM) $(INSTBIN)
- $(STRP) $(INSTBIN)/$(PROGRAM)
- # Dependencies
- mpeg2demux.o: mpeg2demux.hh
- $(PROGRAM).o: mpeg2demux.hh
- $(PROGRAM): $(LIBRARY) $(PROGRAM).o