# Uncomment the following for SunOS-4.1.x (Solaris-1.x) Sun's # AR = /bin/ar # RANLIB = /bin/ranlib # CC = cc # Uncomment the following for Solaris-2.x Sun's # Note that "ar" subsumes the "ranlib" functions on Solaris2.x machines AR = /usr/ccs/bin/ar RANLIB = /bin/true CC = gcc # Uncomment the following for hpux # Note that "ar" subsumes the "ranlib" functions on the hp machines # AR = /bin/ar # RANLIB = /bin/true # CC = gcc CFLAGS= -O # for debugging, change -O to -g LDFLAGS = -L. -s # for debugging, comment out -s LOADLIBES = -ltree -lm # Suffix rules .SUFFIXES: .SUFFIXES: .o .c .c: ; $(CC) $(CFLAGS) $(LDFLAGS) $*.c $(LOADLIBES) -o $@ .c.o: ; $(CC) $(CFLAGS) -c $< # the next two lines were added for SUN and GNU make functions %: %.c $(CC) $(CFLAGS) $(LDFLAGS) $*.c $(LOADLIBES) -o $@ all: wpt_bitalloc clean: rm *.o *.a # LIBTREE_OBJ = wpt_node_util.o \ wpt_util.o \ wpt_bitalloc_util.o libtree.a: $(LIBTREE_OBJ) $(AR) rv $@ $(LIBTREE_OBJ) $(RANLIB) $@ wpt_bitalloc : libtree.a wpt.h wpt_node_util.o wpt_util.o wpt_bitalloc_util.o : wpt.h