makefile.sgi
上传用户:aoeyumen
上传日期:2007-01-06
资源大小:3329k
文件大小:2k
源码类别:

DVD

开发平台:

Unix_Linux

  1. #
  2. # $Header: 
  3. # File: makefile.sgi
  4. # By: Alex Theo de Jong, NIST
  5. # Description:
  6. # Makefile for MPEG 2 Demultiplexor implementation for SGI Irix 5.3
  7. #
  8. OS        = -DIRIX # -DIRIX_PTHREAD
  9. # Use Multi-Processing on Irix; pthread library does not work with X11
  10. THREADLIB = # -L/opt/pthread/lib/libpthread.a
  11. THREADINC = # -I/opt/pthread/include
  12. # Directories
  13. PIDRDIR   = .
  14. INSTBIN   = ../../../Bin/Irix
  15. INSTLIB   = ../../../Lib
  16. INSTINC   = ../../../Inc
  17. ATMINC    = /usr/fore/include
  18. ATMLIB    = /usr/fore/lib
  19. # Tools
  20. CP        = cp
  21. MV        = mv
  22. RM        = rm -f
  23. CHMOD     = chmod 666
  24. CPP       = CC # SGI Native compiler # 
  25. # CPP     = g++ -V2.6.3 # GNU Compiler version
  26. AR        = ar
  27. STRP      = /bin/strip
  28. # Compiler options
  29. EXTERNAL  = # -fexternal-templates
  30. ATM       = -DFORE_ATM
  31. PROTOTYPE = # -fno-strict-prototype
  32. DEBUG     = # -ggdb -DTRACE #  -DDEBUG
  33. WARNINGS  = # -Wall # List all warnings # -w # Suppress warnings #
  34. OPTIMIZE  = # -O6 # -O2  # -O6 #
  35. # Compiler flags
  36. CPPFLAGS  = $(DEBUG) $(WARNINGS) $(OPTIMIZE) $(OS) $(ATM) 
  37.             $(PROTOTYPE) $(EXTERNAL) -I$(PIDRDIR) -I$(INSTINC) $(THREADINC) 
  38.          -I$(ATMINC)
  39. # Loader/linker flags
  40. LDFLAGS   = -L$(INSTLIB) -L$(ATMLIB)
  41. LDLIBS    = -lmpeg -lutil -lXext -lX11 -laudio -latm $(THREADLIB)
  42. # Things to compile
  43. OBJECTS   = mpeg2demux.o
  44. HEADERS   = mpeg2demux.hh
  45. PROGRAM   = mpeg2player
  46. LIBRARY   = libmpeg.a
  47. # Compile lines
  48. all: $(PROGRAM)
  49. install: bin
  50. clean: installclean
  51. installclean:
  52. $(RM) *.o *~ *.~?~ core $(PROGRAM)
  53. %.a: $(OBJECTS)
  54. $(AR) vrus $(INSTLIB)/$*.a $(OBJECTS)
  55. $(CP) *.hh $(INSTINC)
  56. $(CHMOD) $(INSTINC)/*.hh
  57. .cc.o:
  58. $(RM) $@
  59. $(CPP) $(CPPFLAGS) -c $<
  60. $(PROGRAM):
  61. $(RM) $(PROGRAM)
  62. $(CPP) -o $(PROGRAM) $(PROGRAM).o $(LDFLAGS) $(LDLIBS)
  63. bin: $(PROGRAM)
  64. $(CP) $(PROGRAM) $(INSTBIN)
  65. $(STRP) $(INSTBIN)/$(PROGRAM)
  66. # Dependencies
  67. mpeg2demux.o: mpeg2demux.hh
  68. $(PROGRAM).o: mpeg2demux.hh
  69. $(PROGRAM): $(LIBRARY) $(PROGRAM).o