# Generated automatically from Makefile.in by configure.
# Makefile for syslog replacement
#
# Generated automatically from Makefile.in by configure.
# 
#	(C) Copyright 1994 by Carnegie Mellon University
# 
#                      All Rights Reserved
# 
# Permission to use, copy, modify, distribute, and sell this software
# and its documentation for any purpose is hereby granted without
# fee, provided that the above copyright notice appear in all copies
# and that both that copyright notice and this permission notice
# appear in supporting documentation, and that the name of Carnegie
# Mellon University not be used in advertising or publicity
# pertaining to distribution of the software without specific,
# written prior permission.  Carnegie Mellon University makes no
# representations about the suitability of this software for any
# purpose.  It is provided "as is" without express or implied
# warranty.
#
# CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO
# THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE
# FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
# AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
# OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
# SOFTWARE.
# 

srcdir = .

CC = gcc

INSTALL = /usr/local/bin/install -c
RANLIB = ranlib

DEFS =  -DHAVE_LONG_FILE_NAMES=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_VPRINTF=1 -DHAS_STRERROR=1 -DSETPROCTITLE=1 -DHAVE_ACTE_KRB=1 -DHAVE_LIBDB=1 
CPPFLAGS =  -I/usr/local/include
LIBS = -ldb  -R/usr/ucblib -L/usr/ucblib -lucb /usr/local/lib/libkrb.a /usr/local/lib/libdes.a -lsocket -lnsl

CFLAGS = -g -O
LDFLAGS = 

SHELL = /bin/sh

all: libsyslog.a syslogd

install:
	@echo "Install syslogd and syslog.conf as appropriate"

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

libsyslog.a: syslog.o
	ar cr libsyslog.a syslog.o
	$(RANLIB) libsyslog.a

syslogd: syslogd.o
	$(CC) $(LDFLAGS) -o syslogd syslogd.o $(LIBS)

clean:
	rm -f *.o *.a Makefile.bak

distclean: clean
	rm -f Makefile

depend:
	makedepend $(CPPFLAGS) $(DEFS) -I$(srcdir) $(CFLAGS) *.c $(srcdir)/*.c

# DO NOT DELETE THIS LINE -- make depend depends on it.


