#
# libdebug Makefile
#
# $Header: /usr/local/libdata/cvs/c-lib/libdebug/Makefile,v 1.3 1998/08/16 21:36:28 simons Exp $
#

# Make Rules:
# ===========
#
.c.o:
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $<


# Compiler Flags:
# ===============
#
CFLAGS  = -Wall
CPPFLAGS= -DDEBUG


#
# Labels:
# =======
#
SRCS 	= debug.c
OBJS	= $(SRCS:.c=.o)
MANFILES= $(SRCS:.c=.3)


#
# Targets
#
.PHONY: all man clean realclean distclean depend

all:		libdebug.a

test:		test.o libdebug.a
	$(CC) test.o libdebug.a -o test

man:
	c2man -idebug.h -g debug.c

clean:
	rm -f libdebug.a test *.o *.3 *.core

realclean:	clean

distclean:	realclean

depend:


#
# Actions
#
libdebug.a:	$(OBJS)
	rm -f $@
	$(AR) cr $@ $(OBJS)
	$(RANLIB) $@


#
# Dependencies
#
