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

OPTIMIZER = -O2

TARGETS = libiossyscall.a

ASFILES = syscall.s

default: $(TARGETS)

exports install: $(TARGETS)
	$(INSTALL) -m 444 $(TARGETS) $(ROOT)/usr/lib/rvl

sdk-install: default
	$(INSTALL) -d $(SDK_ROOT)/usr/lib/rvl
	$(INSTALL) $(TARGETS) $(SDK_ROOT)/usr/lib/rvl


$(TARGETS): %: %($(OBJECTS))
	ar cru $@ $?

LDIRT += syscall.s

syscall.s: $(ROOT)/usr/include/rvl/syscalls syscall.py
	./syscall.py $(ROOT)/usr/include/rvl/syscalls $@

include $(COMMONRULES)
