# Generated automatically from Makefile.in by configure.
#
#  Makefile for the Squid Object Cache server
#
#  $Id: Makefile.in,v 1.1 1998/08/17 23:22:46 wessels Exp $
#
#  Uncomment and customize the following to suit your needs:
#

prefix		= /squid
exec_prefix	= ${prefix}
exec_suffix	= .exe
cgi_suffix	= .exe
top_srcdir	= ../..
bindir		= ${exec_prefix}/bin
libexecdir      = ${bindir}
sysconfdir	= ${prefix}/etc
localstatedir   = ${prefix}
srcdir		= .

# Gotta love the DOS legacy
#
NCSA_AUTH_EXE	= ncsa_auth$(exec_suffix)

DEFAULT_PASSWD_FILE     = $(sysconfdir)/passwd

CC		= gcc.exe
MAKEDEPEND	= true
INSTALL		= ../../cfgaux/install-sh -c
INSTALL_BIN 	= ${INSTALL}
INSTALL_FILE 	= ${INSTALL} -m 644
INSTALL_SUID	= ${INSTALL} -o root -m 4755
RANLIB		= emxomf.exe
LN_S		= ln
PERL            = perl5x.exe
CRYPTLIB	= -lcrypt
REGEXLIB	= -lregex
PTHREADLIB	= 
SNMPLIB		= 
MALLOCLIB	= 
AC_CFLAGS	= -O3 -Wall -mpentium
LDFLAGS		= -s -Zcrtdll
XTRA_LIBS	= -lsyslog -lm -lbsd -lsocket
XTRA_OBJS 	= 
MV		= mv.exe
RM		= rm.exe
#SHELL		= /bin/sh


INCLUDE		= -I. -I../../include -I$(top_srcdir)/include
CFLAGS 		= $(AC_CFLAGS) $(INCLUDE) $(DEFINES)
AUTH_LIBS	= -L../../lib -lmiscutil $(CRYPTLIB) $(XTRA_LIBS)

PROGS           = $(NCSA_AUTH_EXE)
OBJS	 	= ncsa_auth.o

all:    $(NCSA_AUTH_EXE)

$(OBJS): $(top_srcdir)/include/version.h

$(NCSA_AUTH_EXE): ncsa_auth.c
	$(CC) $(INCLUDE) $(LDFLAGS) -Zomf ncsa_auth.c -o $@ $(AUTH_LIBS)

install-mkdirs:
	-@if test ! -d $(prefix); then \
		echo "mkdir $(prefix)"; \
		mkdir $(prefix); \
	fi
	-@if test ! -d $(bindir); then \
		echo "mkdir $(bindir)"; \
		mkdir $(bindir); \
	fi

# Michael Lupp <mike@nemesis.saar.de> wants to know about additions
# to the install target.
install: all install-mkdirs
	@for f in $(PROGS); do \
		if test -f $(bindir)/$$f; then \
			echo $(MV) $(bindir)/$$f $(bindir)/-$$f; \
			$(MV) $(bindir)/$$f $(bindir)/-$$f; \
		fi; \
		echo $(INSTALL_BIN) $$f $(bindir); \
		$(INSTALL_BIN) $$f $(bindir); \
		if test -f $(bindir)/-$$f; then \
			echo $(RM) -f $(bindir)/-$$f; \
			$(RM) -f $(bindir)/-$$f; \
		fi; \
	done

clean: 
	-rm -rf *.o *pure_* core $(PROGS)

distclean:	clean
	-rm -f Makefile

tags:
	ctags *.[ch] ../include/*.h ../lib/*.[ch]

depend:
	$(MAKEDEPEND) -I../include -I. -fMakefile *.c
