# Makefile options inherited from Configure
###############
EXTRA_CFLAGS=
EXTRA_LDFLAGS=
EXTRA_LIBS=
EXTRA_INCLUDES=
##Rule:STATUS=yes
##Rule:SOCKS4=no
##Rule:IRIXNIS=no
##Rule:IRIXN32=yes
##Rule:WANTHSREGEX=default
###############
###############
# Platform: NeXT
# Final Rules:
#  Rule WANTHSREGEX=yes
###############
CC=cc
OPTIM=-O2
CFLAGS1= -DNEXT
INCLUDES1= -Iregex
LDFLAGS1=
BROKEN_BPRINTF_FLAGS=
REGLIB=regex/libregex.a
RANLIB=sleep 5; /bin/ranlib
SHELL=/bin/sh
LIBS1=

#### End of Configure created section ####
# Apache makefile template (well, suffix).

# This is combined with the information in the "Configuration" file
# by the configure script to make the actual Makefile.

CFLAGS=$(OPTIM) $(CFLAGS1) $(EXTRA_CFLAGS)
LIBS=$(EXTRA_LIBS) $(LIBS1)
INCLUDES=-I../src -I../src/regex $(INCLUDES1) $(EXTRA_INCLUDES)
LDFLAGS=$(LDFLAGS1) $(EXTRA_LDFLAGS)

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

TARGETS=htpasswd htdigest httpd_monitor rotatelogs logresolve

all: $(TARGETS)

htpasswd: htpasswd.c
	$(CC) $(CFLAGS) htpasswd.c -o htpasswd $(LIBS)

htdigest: htdigest.c
	$(CC) $(CFLAGS) htdigest.c -o htdigest $(LIBS)

httpd_monitor: httpd_monitor.c
	$(CC) $(INCLUDES) $(CFLAGS) httpd_monitor.c -o httpd_monitor

rotatelogs: rotatelogs.c
	$(CC) $(INCLUDES) $(CFLAGS) rotatelogs.c -o rotatelogs

logresolve: logresolve.c
	$(CC) $(INCLUDES) $(CFLAGS) logresolve.c -o logresolve $(LIBS)

clean:
	rm -f $(TARGETS)

