#
# compat library
#
# $Header: /usr/local/libdata/cvs/c-lib/libcompat/Makefile,v 1.6 1998/08/16 21:36:27 simons Exp $
#

# Make Rules:
# ===========
#

.c.o:
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $<


# Compiler flags:
# ===============
#
CFLAGS	= -Wall -pedantic -ansi
CPPFLAGS=

# Linker flags:
# =============
#
LDFLAGS	=
LIBS	=


#
# Labels:
# =======
#
SRCS	= snprintf.c memmove.c atexit.c strerror.c
OBJS	= $(SRCS:.c=.o)


#
# Targets
#
.PHONY: all clean depend

all:	libcompat.a

clean:
	rm -f test libcompat.a $(OBJS)
	rm -f *.o *.bak

depend:
	makedepend -Y /usr/include $(SRCS)
	@rm -f Makefile.bak


#
# Actions:
#=========
#
libcompat.a:	$(OBJS) dummy.o
	$(AR) cr $@ $(OBJS) dummy.o
	$(RANLIB) $@

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


#
# Dependencies
#
