SHELL		= /bin/sh

###
include $(BUILDHOME)/buildprefs/make.pre
###

TARGET		= $(OBJ_DIR)/libglob.a

SRCS		= \
				glob.c \
				fnmatch.c

OBJS		= $(SRCS_LIST_TO_OBJS)

CFLAGS		+= \
				-DSTDC_HEADERS=1 \
				-DHAVE_MEMORY_H=1 \
				-DHAVE_UNISTD_H=1 \
				-DHAVE_STRING_H=1 \
				-DHAVE_DIRENT_H=1 \
				-DHAVE_ALLOCA_H=1 \
				-DHAVE_ALLOCA=1 \
				-DHAVE_STRCOLL=1

INCLUDES 	+= -I.

MY_INSTALL_DIR	= $(BELIBRARIES)

$(TARGET):	$(OBJ_DIR) $(OBJS)
		$(AR) $(ARFLAGS) $@ $(OBJS)

###
include $(BUILDHOME)/buildprefs/make.post
###
