makefile.solaris
上传用户:aoeyumen
上传日期:2007-01-06
资源大小:3329k
文件大小:2k
- #
- # $Header:
- # By: Alex Theo de Jong, NIST
- # Description:
- # Makefile for MPEG 2 Buffer implementation
- #
- # Operating System
- OS = -DSOLARIS # -DSOLARIS_PTHREAD
- # Use Solaris Multi-Threading
- THREADLIB = -lthread # -L/opt/pthread/lib/libpthread.a
- THREADINC = # -I/opt/pthread/include
- # Directories
- PIDRDIR = .
- INSTBIN = ../../../Bin/Solaris
- INSTLIB = ../../../Lib
- INSTINC = ../../../Inc
- # Tools
- CP = cp
- MV = mv
- CHMOD = chmod 666
- RM = rm -f
- CPP = CC # Sparc Compiler # g++ -V2.6.3 # GNU Compiler version
- AR = ar
- # Compiler options
- PROTOTYPE = # -fno-strict-prototype
- DEBUG = -g # gdb -DTRACE -DDEBUG
- WARNINGS = # -Wall # List all warnings # -w # Suppress warnings #
- OPTIMIZE = # -O2 # -O6 #
- # Compiler flags
- CPPFLAGS = $(DEBUG) $(WARNINGS) $(OPTIMIZE) $(OS)
- $(PROTOTYPE) -I$(PIDRDIR) -I$(INSTINC) $(THREADINC)
- # Loader/linker flags
- LDFLAGS = -L$(INSTLIB)
- LDLIBS = -lmpeg -lutil $(THREADLIB)
- # Things to compile
- OBJECTS = sync.o mpeg2buff.o
- HEADERS = sync.hh mpeg2const.hh mpeg2buff.hh
- PROGRAM = main
- LIBRARY = libmpeg.a
- # Compile lines
- all: $(PROGRAM)
- install: $(PROGRAM)
- clean: installclean
- installclean:
- $(RM) *.o *~ *.~?~ core $(PROGRAM)
- %.a: $(OBJECTS)
- $(AR) vrus $(INSTLIB)/$*.a $(OBJECTS)
- $(CP) *.hh $(INSTINC)
- $(CHMOD) $(INSTINC)/*.hh
- .cc.o:
- $(RM) $@
- $(CPP) $(CPPFLAGS) -c $<
- $(PROGRAM):
- $(CPP) -o $(PROGRAM) $(PROGRAM).o $(LDFLAGS) $(LDLIBS)
- #Dependencies
- mpeg2buff.o: mpeg2buff.hh
- sync.o: sync.hh
- $(PROGRAM): $(LIBRARY) $(PROGRAM).o