#
# $Id: Makefile.in,v 1.5 2000/05/01 21:18:05 haba Exp $
#

SHELL = /bin/sh

srcdir = @srcdir@
VPATH = @srcdir@

CC = @CC@
AR = ar
LN_S = @LN_S@
RANLIB = @RANLIB@
DEFS = @DEFS@
CFLAGS = @CFLAGS@

INSTALL = @INSTALL@
INSTALL_DATA	= @INSTALL_DATA@
MKINSTALLDIRS = @top_srcdir@/mkinstalldirs

prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@

INCLUDES = -I../../include \
	   -I$(srcdir)/../../include \
	   -I$(srcdir) \
	   -I.

REALCFLAGS = $(INCLUDES) @KRB4_INC_FLAGS@ $(CFLAGS)
LIBNAME = $(LIBPREFIX)acl
LIBEXT = a
LIBPREFIX = lib
LIB = $(LIBNAME).$(LIBEXT)

SOURCES = acl_files.c

OBJECTS = acl_files.o

all: $(LIB)

Wall:
	make CFLAGS="-g -Wall -Wno-comment -Wmissing-prototypes -Wmissing-declarations -D__USE_FIXED_PROTOTYPES__"

.c.o:
	$(CC) -c $(DEFS) $(REALCFLAGS) $(PICFLAGS) $(CPPFLAGS) $<

install: all
	$(MKINSTALLDIRS) $(DESTDIR)$(libdir)
	$(INSTALL_DATA) -m 0555 $(LIB) $(DESTDIR)$(libdir)/$(LIB)

uninstall:
	rm -f $(DESTDIR)$(libdir)/$(LIB)

TAGS: $(SOURCES)
	etags $(SOURCES)

check:

clean:
	rm -f $(LIB) *.o *.a

mostlyclean: clean

distclean: clean
	rm -f Makefile *.tab.c *~ roken_rename.h

realclean: distclean
	rm -f TAGS

$(LIBNAME).a: $(OBJECTS)
	rm -f $@
	$(AR) cr $@ $(OBJECTS)
	-$(RANLIB) $@

$(OBJECTS): ../../include/config.h

Makefile: ../../config.status Makefile.in
	cd ../.. ; CONFIG_FILES=lib/acl/Makefile CONFIG_HEADERS= $(SHELL) config.status

.PHONY: all Wall install uninstall check clean mostlyclean distclean realclean
