# # $Header: # # File: makefile.sgi # By: Alex Theo de Jong, NIST # Created: September 1995 # Description: # Makefile for utilities and support functions/classes # OS = -DIRIX # Directories PIDRDIR = . INSTBIN = ../../Bin/Irix INSTLIB = /home/vod/Code/Lib # ../../Lib INSTINC = /home/vod/Code/Inc # ../../Inc ATMINC = /usr/fore/include ATMLIB = /usr/fore/lib # Tools CP = cp MV = mv CHMOD = chmod 666 RM = rm -f CC = gcc CPP = g++ -V2.6.3 # Compiler options EXTERNAL = # -fexternal-templates ATM = -DFORE_ATM PROTOTYPE = # -fno-strict-prototype DEBUG = -ggdb -DTRACE # -DDEBUG WARNINGS = -Wall # List all warnings # -w # Suppress warnings # OPTIMIZE = # -O6 # -O2 # Compiler flags CPPFLAGS = $(DEBUG) $(WARNINGS) $(OPTIMIZE) $(OS) $(ATM) \ $(EXTERNAL) $(PROTOTYPE) -I$(PIDRDIR) -I$(INSTINC) -I$(ATMINC) # Loader/linker flags LDFLAGS = -L$(INSTLIB) -L$(ATMLIB) LDLIBS = -lutil -latm # Things to compile # when using Sparc Compiler: SGIHDRS = String.h Regex.h SGIOBJS = String.o Regex.o gnu_error.o xexit.o xmalloc.o alloca.o rx.o OBJECTS = $(SGIOBJS) athread.o network.o HEADERS = $(SGIHDRS) athread.hh network.hh debug.hh error.hh util.hh TDPList.hh PROGRAMS = test LIBRARY = libutil.a # Compile lines all: $(PROGRAMS) install: $(LIBRARY) clean: installclean installclean: $(RM) *.a *.o *.tmp *.~?~ core $(PROGRAMS) %.a: $(OBJECTS) $(AR) vrus $(INSTLIB)/$*.a $(OBJECTS) $(CP) *.hh $(INSTINC) $(CHMOD) $(INSTINC)/*.hh $(CP) *.h $(INSTINC) $(CHMOD) $(INSTINC)/*.h .cc.o: $(RM) $@ $(CPP) $(CPPFLAGS) -c $< test: test.cc $(LIBRARY) $(RM) $@ $(CPP) $(CPPFLAGS) -o test test.cc $(LDFLAGS) $(LDLIBS) # Dependencies network.o: athread.hh network.hh athread.o: athread.hh String.o: String.h Regex.o: Regex.h ansidecl.h libiberty.h builtin.h rx.o: rx.h ansidecl.h libiberty.h alloca.o: ansidecl.h libiberty.h xmalloc.o: ansidecl.h libiberty.h xexit.o: ansidecl.h libiberty.h gnu_error.o: ansidecl.h