makefile.sgi
上传用户:aoeyumen
上传日期:2007-01-06
资源大小:3329k
文件大小:2k
- #
- # $HEADER:
- # By: Alex Theo de Jong, NIST
- # Description:
- # Makefile for MPEG 2 Video player for SGI Irix 5.3
- #
- # Operating System
- OS = -DIRIX # -DIRIX_PTHREAD
- # Use Multi-Processing for Irix
- THREADLIB = # -L/opt/pthread/lib/libpthread.a # thread
- THREADINC = # -I/opt/pthread/include
- PIDRDIR = .
- INSTLIB = ../../../Lib
- INSTINC = ../../../Inc
- INSTBIN = ../../../Bin
- X11INC = /usr/include
- # Tools
- CP = cp
- RM = rm -f
- CHMOD = chmod 666
- CPP = g++ -V2.6.3
- AR = ar
- STRP = /bin/strip
- # Flags and options
- USE_SHMEM = -DSH_MEM # Use shared memory for faster display
- EXTERNAL = # -fexternal-templates
- OPTIMIZE = -O6 # -O2 # -O #
- WARNINGS = -Wall
- DEBUG = # -ggdb -DTRACE
- CPPFLAGS = $(VERSION) $(OS) $(USE_SHMEM)
- $(DEBUG) $(WARNINGS) $(OPTIMIZE) $(EXTERNAL)
- -I$(PIDRDIR) -I$(INSTINC) $(THREADINC) -I$(X11INC)
- # linker flags
- LDFLAGS = -L$(INSTLIB)
- LDLIBS = -lmpeg -lutil -lXext -lX11 $(THREADLIB)
- # Things to compile
- PROGRAM = mpeg2video
- OBJECTS = vstream.o display.o idct.o getpic.o motion.o getvlc.o getblk.o
- recon.o gethdr.o mpeg2video.o
- LIBRARY = libmpeg.a
- # Compile lines
- all: $(PROGRAM)
- install: $(PROGRAM) bin
- clean:
- $(RM) *.o *~ *.~?~ *% core $(PROGRAM)
- installclean: clean
- %.a: $(OBJECTS)
- $(AR) vrus $(INSTLIB)/$*.a $(OBJECTS)
- $(CP) *.hh $(INSTINC)
- $(CHMOD) $(INSTINC)/*.hh
- .cc.o:
- $(RM) $@
- $(CPP) $(CPPFLAGS) -c $<
- test: test.o $(LIBRARY)
- $(RM) test
- $(CPP) -o test test.o $(LDFLAGS) $(LDLIBS)
- $(PROGRAM):
- $(RM) $(PROGRAM)
- $(CPP) -o $(PROGRAM) main.o $(LDFLAGS) $(LDLIBS)
- bin: $(PROGRAM)
- $(CP) $(PROGRAM) $(INSTBIN)
- $(STRP) $(INSTBIN)/$(PROGRAM)
- # Dependencies
- getblk.o: vstream.hh global.hh
- gethdr.o: vstream.hh global.hh
- getpic.o: vstream.hh global.hh display.hh
- getvlc.o: vstream.hh global.hh getvlc.hh
- idct.o: idct.hh
- motion.o: vstream.hh global.hh
- recon.o: vstream.hh global.hh
- # spatscal.o: vstream.hh global.hh
- display.o: global.hh display.hh
- mpeg2video.o: mpeg2video.hh display.hh idct.hh vstream.hh global.hh
- vstream.o: vstream.hh
- main.o: display.hh idct.hh global.hh mpeg2video.hh
- $(PROGRAM): $(LIBRARY) main.o