Install <sortix/*.h> headers in sysroot.

This commit is contained in:
Jonas 'Sortie' Termansen 2012-03-04 16:04:12 +01:00
parent f9f59e9536
commit db7781c54a
1 changed files with 13 additions and 1 deletions

View File

@ -80,6 +80,16 @@ NASMFLAGS=$(CPUNASMFLAGS)
STATICLIBS=\
../libmaxsi/libmaxsi-sortix.a \
PUBLICHEADERS=\
$(CPU)/bits.h \
fcntl.h \
initrd.h \
seek.h \
keycodes.h \
termmode.h \
syscallnum.h \
stat.h \
OBJS=$(CPUOBJS) \
kernel.o \
interrupt.o \
@ -169,5 +179,7 @@ clean:
# Installation into sysroot
install:
mkdir -p $(SYSROOT)/usr/include/sortix
cp $(CPU)/bits.h $(SYSROOT)/usr/include/sortix/bits.h
for FILE in $(PUBLICHEADERS); do \
cp $$FILE $(SYSROOT)/usr/include/sortix/`basename $$FILE`; \
done