makefile.sgi
上传用户:aoeyumen
上传日期:2007-01-06
资源大小:3329k
文件大小:2k
- #
- # $HEADER:
- # By: Alex Theo de Jong, NIST
- # Description:
- # Makefile for MPEG 2 Audio player
- #
- # Operating System
- OS = -DIRIX # -DIRIX_PTHREAD
- # Use Mutli-Processing on Irix
- THREADLIB = # -L/opt/pthread/lib/libpthread.a
- THREADINC = # -I/opt/pthread/include
- PIDRDIR = .
- INSTLIB = ../../../Lib
- INSTINC = ../../../Inc
- INSTBIN = ../../../Bin/Irix
- # Tools
- CP = cp
- RM = rm -f
- CHMOD = chmod 666
- AR = ar
- CPP = CC # g++ -V2.6.3
- STRP = /bin/strip
- # Compiler options
- DEBUG = -DTRACE -DDEBUG # -Wall -ggdb
- OPTIMIZE = # -O2 # -O6 #
- EXTERNAL = # -fexternal-templates
- CPPFLAGS = $(VERSION) $(OS) $(DEBUG) $(OPTIMIZE)
- $(EXTERNAL) -I$(PIDRDIR) -I$(INSTINC) $(THREADINC)
- # Linker flags
- LDFLAGS = -L$(INSTLIB)
- LDLIBS = -lmpeg -lutil -laudio $(THREADLIB)
- # Things to compile
- PROGRAM = mpeg2audio
- OBJECTS = mpeg2audio.o astream.o header.o scalefactors.o subband_layer_1.o
- subband_layer_2.o synthesis_filter.o obuffer.o crc.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
- test: test.o $(LIBRARY)
- $(RM) test
- $(CPP) -o test test.o $(LDFLAGS) $(LDLIBS)
- mpeg2audio: $(LIBRARY) main.o
- $(RM) $(PROGRAM)
- $(CPP) -o $(PROGRAM) main.o $(LDFLAGS) $(LDLIBS)
- bin:
- $(CP) $(PROGRAM) $(INSTBIN)
- $(STRP) $(INSTBIN)/$(PROGRAM)
- .cc.o:
- $(RM) $@
- $(CPP) $(CPPFLAGS) -c $<
- # Dependencies
- crc.o: crc.hh
- header.o: astream.hh header.hh crc.hh
- obuffer.o: obuffer.hh header.hh crc.hh
- scalefactors.o: scalefactors.hh
- subband_layer_1.o: subband_layer_1.hh astream.hh
- subband_layer_1.o: subband.hh header.hh crc.hh synthesis_filter.hh obuffer.hh
- subband_layer_1.o: scalefactors.hh
- subband_layer_2.o: subband_layer_2.hh astream.hh subband.hh header.hh crc.hh
- subband_layer_2.o: synthesis_filter.hh obuffer.hh scalefactors.hh
- synthesis_filter.o: synthesis_filter.hh obuffer.hh header.hh crc.hh
- astream.o: astream.hh
- mpeg2audio.o: mpeg2audio.hh