SHELL = /bin/sh

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

# Turn down the optimization level to work around BBC #22373
OPTIMIZER	= -O

TARGET		= $(OBJ_DIR)/libsed.a

# On ppc, libroot doesn't have re_search, for example.
# Use our package local version of regexp for now.
# FIXME: Why is this?
#ifeq ($(CPU), ppc)
REGEX = regex.c
#endif

SRCS		= $(REGEX)

OBJS		= $(SRCS_LIST_TO_OBJS)

CFLAGS		+= -DHAVE_CONFIG_H

INCLUDES 	+= -I. -I..

MY_INSTALL_DIR	= $(BELIBRARIES)

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

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