####
##
##  Trade secret of ATI Technologies Inc.
##  Unpublished work, Copyright 2005 ATI Technologies Inc.
##
##  All rights reserved.  This notice is intended as a precaution against
##  inadvertent publication and does not imply publication or any waiver
##  of confidentiality.  The year included in the foregoing notice is the
##  year of creation of the work.
##
####
include $(ROOT)/usr/include/make/NGdefs
COMMONPREF=ng
include $(COMMONRULES)
INSTALLDIR=$(ROOT)/usr/lib/rvl

# LCDEFS += -DUSE_SRAM_ONLY
LCINCS += -I. -I$(ROOT)/usr/include/rvl -I$(ROOT)/usr/include/rvl/diag
LASINCS += -I. -I$(ROOT)/usr/include/rvl -I$(ROOT)/usr/include/rvl/diag

CFILES = \
	aes_api.c \
	aes.c \
	aes_imp.c \
	sha1.c \
	aes_hal.c \
	aes_sha_sw.c \
	aes_test.c \
	sha_hal.c \
	sha_test.c \
	iop_utils.c \
	getopt.c \
	mmu.c \
	interrupt.c \
	setup.c

ASFILES = \
	util.s \
	int.s \
	mmu1.s 


OBJS = $(CFILES:.c=.o)  $(ASFILES:.s=.o)
LIB_TARGETS = libdiagutils.a

AR = ar rc
DIRT += *.o *.a

default: exports 

exports install: $(LIB_TARGETS)
	$(INSTALL) -m 444 $(LIB_TARGETS) $(INSTALLDIR)

clobber: $(COMMONPREF)clobber
	cd $(INSTALLDIR); $(RM) $(LIB_TARGETS)

clean: $(COMMONPREF)clean

$(LIB_TARGETS): $(OBJS)
	$(AR) $@ $^ 

