include $(ROOT)/usr/include/make/NGdefs

LCDEFS += -DSD_DEBUG_LOG -DIOS_ENABLE

LLDLIBS = -lsys -lioslibc -lios
#LLDLIBS = -lapputils -lsys -lioslibc -liossyscall
LDIRT += *.bin *.elf
CFLAGS += -I../ios -I.

TARGETS = sdi_file.elf

SDAPI = \
    $(ROOT)/usr/lib/rvl/libsdi.a
    
CFILES = \
	sdi_file.c \


SDLIB_OBJS = \
    sdi_file.o \

   
default: $(TARGETS)

exports: sdi_file.elf
	$(INSTALL) sdi_file.elf $(ROOT)/usr/bin/rvl

include $(COMMONRULES)

DDR_LDFLAGS =  $(LDLIBS) $(LDFLAGS) -Ttext=0x10040000

sdi_file.elf: $(CRT0) $(OBJECTS) $(SDAPI)
	$(CC) $(CFLAGS) $(DDR_LDFLAGS) -o $@ $^ $(LDLIBS) 
