makefile.solaris
上传用户:aoeyumen
上传日期:2007-01-06
资源大小:3329k
文件大小:2k
- #
- # File: makefile
- #
- # By: Alex Theo de Jong, NIST
- # Description:
- # Makefile for MPEG 2 Video player for SUN Solaris
- #
- # Operating System
- OS = -DSOLARIS -DSOLARIS_SDK_XIL # -DTRUECOLORS
- THREADLIB = -lthread -lxil # -L/opt/pthread/lib/libpthread.a #
- THREADINC = # -I/opt/pthread/include # none
- # Directories
- PIDRDIR = .
- INSTLIB = ../../../Lib
- INSTINC = ../../../Inc
- INSTBIN = ../../../Bin/Solaris2.5
- # Tools
- CP = cp
- RM = rm -f
- CHMOD = chmod 666
- CPP = CC # Sparc Compiler # g++ -V2.7.2 # -V2.6.3
- AR = ar
- STRP = strip
- # Flags and options
- USE_SHMEM = -DSH_MEM # Use shared memory for faster display
- OPTIMIZE = -O # 6 # -O2 # # #
- WARNINGS = # -Wall
- DEBUG = # -ggdb # -DTRACE # -DDEBUG
- CPPFLAGS = $(DEBUG) $(WARNINGS) $(OPTIMIZE) $(OS)
- $(USE_SHMEM)
- -I$(PIDRDIR) -I$(INSTINC) $(THREADINC) -I$(OPENWINHOME)/include
- # linker flags
- LDFLAGS = -L$(INSTLIB)
- LDLIBS = -lmpeg -lutil -lXext -lX11 -ldl -ldga $(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_disp.cc
- $(CPP) -o test test_disp.cc $(CPPFLAGS) -I$(OPENWINHOME)/include -lX11 -lXmu
- $(PROGRAM): $(LIBRARY) main.o
- $(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