# # Prototype Makefile for libdist # # add -Iincludedir for any include directories that need to be searched INCS=-I./ # add name of library orderer RANLIB=ranlib # add name of librarian AR=ar # the name of the library LIB=libdist.a CFLAGS=$(OS) $(INCS) -O CC=cc # object files OBJS= point3.o frame3.o rot3.o \ point2.o frame2.o rot2.o \ misc.o bezier2.o \ dist2.o sphere2.o dist3.o \ sphere3.o gilbert.o # header files HDR= dist.h all: $(LIB) test2 test3 lib: $(LIB) test2: test2.o $(LIB) $(CC) -o test2 test2.o $(LIB) -lm test3: test3.o $(LIB) $(CC) -o test3 test3.o $(LIB) -lm clean: rm -f *.o test2 test3 nuke: clean rm -f $(LIB) $(LIB): $(OBJS) $(AR) rv $(LIB) $(OBJS) $(RANLIB) $(LIB) $(LIB)(%.o): %.o $(OBJS): $(HDR)