1 #-----------------------------------------------------------------------------
2 # Copyright (c) 1995 Regents of the University of Michigan.
5 # Redistribution and use in source and binary forms are permitted
6 # provided that this notice is preserved and that due credit is given
7 # to the University of Michigan at Ann Arbor. The name of the University
8 # may not be used to endorse or promote products derived from this
9 # software without specific prior written permission. This software
10 # is provided ``as is'' without express or implied warranty.
12 # avl library makefile
14 #-----------------------------------------------------------------------------
26 CFLAGS = $(INCLUDES) $(DEFINES) $(ACFLAGS)
31 $(AR) ruv $@ $(OBJS) version.o
32 @if [ ! -z "$(RANLIB)" ]; then \
38 testavl: libavl.a testavl.o
39 $(CC) $(ALDFLAGS) -o $@ testavl.o -L. -lavl $(ALIBS)
43 (u=$${USER-root} v=`$(CAT) ../../build/version` d=`$(PWD)` \
44 h=`$(HOSTNAME)` t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
45 -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
46 -e "s|%VERSION%|$${v}|" \
52 $(LINT) $(INCLUDES) $(DEFINES) $(SRCS)
55 $(5LINT) $(INCLUDES) $(DEFINES) $(SRCS)
58 $(RM) libavl.a ../libavl.a testavl *.o core a.out version.c
61 $(MKDEP) $(INCLUDES) $(DEFINES) $(SRCS)
66 # DO NOT DELETE THIS LINE -- mkdep uses it.
67 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
69 avl.o: avl.c ../../include/avl.h
71 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY