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

default headers install clean clobber runtests:

#
# In the exports phase, import just the ELF files needed to build
# a full kernel from the BCC build results tree
#
# Note that they don't end up in $(ROOT)/usr/bin/sc, since that would
# pollute the NC build results tree.
#

headers:
	chmod 440 rsync.pw
	mkdir -p $(ROOT)/import/usr/include
	rsync -avz --password-file=rsync.pw scbuild@filestore.routefree.com::build/NC_vn/latest/usr/include $(ROOT)/import/usr

exports:
	chmod 440 rsync.pw
	mkdir -p $(ROOT)/import/usr/bin
	rsync -avz --password-file=rsync.pw scbuild@filestore.routefree.com::build/NC_vn/latest/usr/bin/sc $(ROOT)/import/usr/bin
	mkdir -p $(ROOT)/import/usr/lib
	rsync -avz --password-file=rsync.pw scbuild@filestore.routefree.com::build/NC_vn/latest/usr/lib/sc $(ROOT)/import/usr/lib
	rsync -avz --password-file=rsync.pw scbuild@filestore.routefree.com::build/NC_vn/latest/usr/lib/gba $(ROOT)/import/usr/lib
