# # File: makefile # By: Alex Theo de Jong, NIST # Description: # Makefile for MPEG 2 Demultiplexer implementation for SUN Solaris # OS = -DSOLARIS # -DSOLARIS_PTHREAD # Use Solaris Multi-Threading THREADLIB = -lthread -lxil # -L/opt/pthread/lib/libpthread.a THREADINC = # -I/opt/pthread/include # none # Directories PIDRDIR = . INSTBIN = ../../../Bin/Solaris2.5 INSTLIB = ../../../Lib INSTINC = ../../../Inc ATMINC = /usr/fore/include # Tools CP = cp MV = mv RM = rm -f CHMOD = chmod 666 CPP = CC # Sparc C++ Compiler # g++ -V2.7.2 # -V2.6.3 # GNU Compiler version AR = ar STRP = strip # Compiler options ATM = -DFORE_ATM PROTOTYPE = # -fno-strict-prototype DEBUG = # -ggdb -DTRACE # -DDEBUG WARNINGS = -w # -Wall # List all warnings # -w # Suppress warnings # OPTIMIZE = -O # -O6 # # -O2 # # Compiler flags CPPFLAGS = $(DEBUG) $(WARNINGS) $(OPTIMIZE) $(OS) $(ATM) \ $(PROTOTYPE) -I$(PIDRDIR) -I$(INSTINC) -I$(ATMINC) \ $(THREADINC) # Loader/linker flags LDFLAGS = -L$(INSTLIB) LDLIBS = -lsocket -lnsl -lmpeg -lutil -lX11 -lXext -latm $(THREADLIB) # Things to compile OBJECTS = mpeg2demux.o HEADERS = mpeg2demux.hh PROGRAM = mpeg2player LIBRARY = libmpeg.a # Compile lines all: $(PROGRAM) install: bin 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): $(RM) $(PROGRAM) $(CPP) -o $(PROGRAM) $(PROGRAM).o $(LDFLAGS) $(LDLIBS) bin: $(PROGRAM) $(CP) $(PROGRAM) $(INSTBIN) $(STRP) $(INSTBIN)/$(PROGRAM) # Dependencies mpeg2demux.o: mpeg2demux.hh $(PROGRAM).o: mpeg2demux.hh $(PROGRAM): $(LIBRARY) $(PROGRAM).o