LIBSH = libshutils.a

CFLAGS += -DHAVE_CONFIG_H
CFLAGS += -I. -I../src/
# CFLAGS += -I../src/

SRCS	+= group-member.c closeout.c xmalloc.c quotearg.c long-options.c
SRCS	+= version-etc.c 
#-----------------------------------------------------------------------------
# __fpending.c addext.c alloca.c argmatch.c atexit.c backupfile.c basename.c
# canon-host.c chown.c diacrit.c dirname.c dup2.c error.c
# euidaccess.c exclude.c fileblocks.c filemode.c fnmatch.c fsusage.c
# ftruncate.c full-write.c getdate.c getgroups.c gethostname.c getline.c
# getloadavg.c getopt.c getopt1.c getpass.c getstr.c getugroups.c
# getusershell.c hard-locale.c hash.c human.c idcache.c isdir.c lchown.c
# linebuffer.c localcharset.c makepath.c malloc.c mbswidth.c
# md5.c memcasecmp.c memchr.c memcmp.c memcoll.c memcpy.c memmove.c memrchr.c
# memset.c mktime.c modechange.c mountlist.c nanosleep.c obstack.c
# path-concat.c posixtm.c putenv.c quote.c readtokens.c readutmp.c
# realloc.c regex.c rmdir.c rpmatch.c safe-read.c same.c save-cwd.c savedir.c
# sha.c stime.c stpcpy.c strcasecmp.c strcspn.c strdup.c strftime.c
# stripslash.c strncasecmp.c strndup.c strnlen.c strpbrk.c strstr.c strtod.c
# strtol.c strtoul.c strtoull.c strtoumax.c strverscmp.c unicodeio.c
# userspec.c utime.c xgetcwd.c xgethostname.c
# xstrdup.c xstrtod.c xstrtol.c xstrtoul.c xstrtoumax.c yesno.c

OBJS    += ${SRCS:.c=.o}

#-----------------------------------------------------------------------------
all:	${LIBSH}
#---------------
${LIBSH}: ${OBJS}
	${AR} $(ARFLAGS) ${LIBSH} ${OBJS}
#---------------
clean:
	rm -f ${LIBSH} *.o
#-----------------------------------------------------------------------------
