#
# Copyright (c) 1992 Regents of the University of Michigan.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that this notice is preserved and that due credit is given
# to the University of Michigan at Ann Arbor. The name of the University
# may not be used to endorse or promote products derived from this
# software without specific prior written permission. This software
# is provided ``as is'' without express or implied warranty.
#
# Internet Rover miscellaneous "C" Tools
#
DEFINES=
INCLUDES=	-I../../include
CFLAGS=		${INCLUDES} ${DEFINES} ${ACFLAGS}

SRCS=	ctools.c mktime.c
OBJS=	ctools.o mktime.o
HDRS=	ctools.h

default:
	(cd ../.. ; make Ctools)

all:	ctools.a

ctools.a: ${OBJS} ${LIBC}
	  ar cru ctools.a ${OBJS}
	  cp ctools.a ${LIBDIR}/libctools.a
	  ranlib ${LIBDIR}/libctools.a

.c.o:
	${CC} ${CFLAGS} -c $*.c

depend: ${SRCS}
	mkdep ${CFLAGS} ${SRCS}

install:
	cp ctools.a ${LIBDIR}/libctools.a
	ranlib ${LIBDIR}/libctools.a

lint: ${SRCS} ${HDRS}
	lint -Dlint ${DEFINES} ${SRCS}

aixlint: ${SRCS} ${HDRS}
	lint -wK -Dlint ${DEFINES} ${SRCS}

tags:
	ctags -t ${SRCS} ${HDRS}

clean:
	rm -f *.o core *.a 

# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.



# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
