#
# Utilities 
#
# Copyright (c) Compaq Computer Corporation, 1999
#
# Use consistent with the GNU GPL is permitted,
# provided that this copyright notice is
# preserved in its entirety in all copies and derived works.
#
# COMPAQ COMPUTER CORPORATION MAKES NO WARRANTIES, EXPRESSED OR IMPLIED,
# AS TO THE USEFULNESS OR CORRECTNESS OF THIS CODE OR ITS
# FITNESS FOR ANY PARTICULAR PURPOSE.
#

LINUXHOME = ../../kernel
TOOLSHOME  = ..

INCLUDES = -I${LINUXHOME}/include -I${TOOLSHOME}/include

PREFIX = arm-linux-

CC      = ${PREFIX}gcc 
LD	= $(PREFIX)gcc
AR      = ${PREFIX}ar
RANLIB  = ${PREFIX}ranlib
STRIP   = ${PREFIX}strip
RM	= /bin/rm -f

CFLAGS	= $(INCLUDES) -O2 -Wall 

all:	libutilities.a 

OBJS = array.o log.o htable_generic.o 

libutilities.a:	$(OBJS)
		$(AR) rc libutilities.a $(OBJS)
		$(RANLIB) libutilities.a

htest:		htest_generic.o libutilities.a
		${CC} -o $@ htest_generic.o libutilities.a

clean:
	/bin/rm -f $(OBJS) htest_generic.o libutilities.a htest
