#
# Makefile for AU/X (with gcc)
# $Id: Makefile.aux,v 1.2 1997/08/11 08:03:01 sob Exp $
#
CC     = gcc
AR     = ar cq
RANLIB = ar t
LIBC   = /usr/lib/libc.a
IFLAGS = 
LFLAGS = 
CFLAGS = -O -DISC -DDEBUG ${IFLAGS} ${LFLAGS}

SRCS   = strcasestr.c authuser.c ftw.c fnmatch.c
OBJS   = strcasestr.o authuser.o ftw.o fnmatch.o

all: $(OBJS)
	-rm -f libsupport.a
	${AR} libsupport.a $(OBJS)
	${RANLIB} libsupport.a

clean:
	-rm -f *.o libsupport.a

fnmatch.o: fnmatch.c
	${CC} ${CFLAGS} -c fnmatch.c

getusershell.o: getusershell.c
	${CC} ${CFLAGS} -c getusershell.c

strerror.o: strerror.c
	${CC} ${CFLAGS} -c strerror.c

strdup.o: strdup.c
	${CC} ${CFLAGS} -c strdup.c

strcasestr.o: strcasestr.c
	${CC} ${CFLAGS} -c strcasestr.c

strsep.o: strsep.c
	${CC} ${CFLAGS} -c strsep.c

authuser.o: authuser.c
	${CC} ${CFLAGS} -c authuser.c

ftw.o: ftw.c
	${CC} ${CFLAGS} -c ftw.c
