makefile.sgi
上传用户:aoeyumen
上传日期:2007-01-06
资源大小:3329k
文件大小:2k
- #
- # $Header:
- # By: Alex Theo de Jong, NIST
- # Description:
- # Makefile for MPEG 2 Buffer implementation for SGI Irix 5.3
- #
- # Operation System
- OS = -DIRIX # -DIRIX_PTHREAD # -DSOLARIS # -DSOLARIS_PTHREAD
- # Use Multi-Porcessing on Irix
- THREADLIB = # -L/opt/pthread/lib/libpthread.a # thread
- THREADINC = # -I/opt/pthread/include
- # Directories
- PIDRDIR = .
- INSTBIN = ../../../Bin
- INSTLIB = ../../../Lib
- INSTINC = ../../../Inc
- # Tools
- CP = cp
- MV = mv
- CHMOD = chmod 666
- RM = rm -f
- CPP = CC # g++ -V2.6.3 # GNU Compiler version
- AR = ar
- # Compiler options
- EXTERNAL = # -fexternal-templates
- PROTOTYPE = # -fno-strict-prototype
- DEBUG = # -DTRACE -DDEBUG # -ggdb #
- WARNINGS = # -Wall # List all warnings # -w # Suppress warnings #
- OPTIMIZE = -O2 # # # -O6 # # -O #
- # Compiler flags
- CPPFLAGS = $(DEBUG) $(WARNINGS) $(OPTIMIZE) $(OS)
- $(PROTOTYPE) $(EXTERNAL) -I$(PIDRDIR) -I$(INSTINC)
- # Loader/linker flags
- LDFLAGS = -L$(INSTLIB)
- LDLIBS = -lmpeg -lutil $(THREADLIB)
- # Things to compile
- OBJECTS = sync.o mpeg2buff.o
- HEADERS = sync.hh mpeg2buff.hh mpeg2const.hh
- PROGRAM = main
- LIBRARY = libmpeg.a
- # Compile lines
- all: $(PROGRAM)
- install: $(LIBRARY) $(PROGRAM)
- clean: installclean
- installclean:
- $(RM) *.o *~ *.~?~ core $(PROGRAM)
- .cc.o:
- $(RM) $@
- $(CPP) $(CPPFLAGS) -c $<
- $(PROGRAM):
- $(CPP) -o $(PROGRAM) $(PROGRAM).o $(LDFLAGS) $(LDLIBS)
- testbuffer:
- $(CPP) $(CPPFLAGS) -DMAIN -o testbuffer mpeg2buff.cc $(LDFLAGS) -lutil
- %.a: $(OBJECTS)
- $(AR) vrus $(INSTLIB)/$*.a $(OBJECTS)
- $(CP) *.hh $(INSTINC)
- $(CHMOD) $(INSTINC)/*.hh
- # Dependencies
- mpeg2buff.o: mpeg2buff.hh
- sync.o: sync.hh
- $(PROGRAM): $(LIBRARY) $(PROGRAM).o
- testbuffer: mpeg2buff.cc mpeg2buff.hh