# # Makefile # # Unix Macros OBJ = .o EXE = RM = rm -fr # g++ on any unix CC = g++ CFLAGS = -g LIST = # CC on HP unix machines #CC = CC #CFLAGS = -g #LIST = list.o # Borland C++ Macros #CC = bcc #CFLAGS = -I$(ILIB) -P -N -D__GNUG__ #LIST = list.obj #OBJ = .obj #EXE = .exe #RM = del # # library routines # all: $(LIST) random$(OBJ) clstring$(OBJ) rational$(OBJ) list$(OBJ): list.h list.C vector.h $(CC) $(CFLAGS) -c list.C random$(OBJ): random.h random.C vector.h $(CC) $(CFLAGS) -c random.C clstring$(OBJ): clstring.h clstring.C $(CC) $(CFLAGS) -c clstring.C rational$(OBJ): rational.h rational.C $(CC) $(CFLAGS) -c rational.C # # other stuff # clean: $(RM) *$(OBJ) tar: tar cvf lib.tar ./*.C ./*.h ./Makefile zip: zip -l lib.zip ./*.C ./*.h ./Makefile