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

DVD

开发平台:

Unix_Linux

  1. #
  2. # $HEADER: 
  3. # By: Alex Theo de Jong, NIST
  4. # Description:
  5. # Makefile for MPEG 2 Audio player
  6. #
  7. # Operating System
  8. OS        = -DIRIX # -DIRIX_PTHREAD
  9. # Use Mutli-Processing on Irix
  10. THREADLIB = # -L/opt/pthread/lib/libpthread.a
  11. THREADINC = # -I/opt/pthread/include
  12. PIDRDIR      = .
  13. INSTLIB      = ../../../Lib
  14. INSTINC      = ../../../Inc
  15. INSTBIN      = ../../../Bin/Irix
  16. # Tools
  17. CP           = cp
  18. RM           = rm -f
  19. CHMOD        = chmod 666
  20. AR           = ar
  21. CPP          = CC # g++ -V2.6.3
  22. STRP         = /bin/strip
  23. # Compiler options
  24. DEBUG        = -DTRACE -DDEBUG # -Wall  -ggdb  
  25. OPTIMIZE     = # -O2 # -O6 #
  26. EXTERNAL     = # -fexternal-templates
  27. CPPFLAGS     = $(VERSION) $(OS) $(DEBUG) $(OPTIMIZE) 
  28.                $(EXTERNAL) -I$(PIDRDIR) -I$(INSTINC) $(THREADINC)
  29. # Linker flags
  30. LDFLAGS      = -L$(INSTLIB)
  31. LDLIBS       = -lmpeg -lutil -laudio $(THREADLIB)
  32. # Things to compile
  33. PROGRAM      = mpeg2audio
  34. OBJECTS      = mpeg2audio.o astream.o header.o scalefactors.o subband_layer_1.o 
  35.                subband_layer_2.o synthesis_filter.o obuffer.o crc.o
  36. LIBRARY      = libmpeg.a
  37. # compile lines
  38. all: $(PROGRAM)
  39. install: $(PROGRAM) bin
  40. clean:
  41. $(RM) *.o *~ *.~?~ core $(PROGRAM)
  42. installclean: clean
  43. %.a: $(OBJECTS)
  44. $(AR) vrus $(INSTLIB)/$*.a $(OBJECTS)
  45. $(CP) *.hh $(INSTINC)
  46. $(CHMOD) $(INSTINC)/*.hh 
  47. test: test.o $(LIBRARY)
  48. $(RM) test
  49. $(CPP) -o test test.o $(LDFLAGS) $(LDLIBS)
  50. mpeg2audio: $(LIBRARY) main.o
  51. $(RM) $(PROGRAM)
  52. $(CPP) -o $(PROGRAM) main.o $(LDFLAGS) $(LDLIBS)
  53. bin:
  54. $(CP) $(PROGRAM) $(INSTBIN)
  55. $(STRP) $(INSTBIN)/$(PROGRAM)
  56. .cc.o:
  57. $(RM) $@
  58. $(CPP) $(CPPFLAGS) -c $<
  59. # Dependencies
  60. crc.o: crc.hh 
  61. header.o: astream.hh header.hh crc.hh
  62. obuffer.o: obuffer.hh header.hh crc.hh
  63. scalefactors.o: scalefactors.hh 
  64. subband_layer_1.o: subband_layer_1.hh astream.hh 
  65. subband_layer_1.o: subband.hh  header.hh crc.hh synthesis_filter.hh  obuffer.hh
  66. subband_layer_1.o: scalefactors.hh
  67. subband_layer_2.o: subband_layer_2.hh astream.hh subband.hh  header.hh crc.hh
  68. subband_layer_2.o: synthesis_filter.hh obuffer.hh scalefactors.hh
  69. synthesis_filter.o: synthesis_filter.hh obuffer.hh header.hh crc.hh
  70. astream.o: astream.hh
  71. mpeg2audio.o: mpeg2audio.hh