From db7781c54aa7f192e657b8f5d9cc7bdf7a4c1213 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 4 Mar 2012 16:04:12 +0100 Subject: [PATCH] Install headers in sysroot. --- sortix/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/sortix/Makefile b/sortix/Makefile index d96fa872..e5f123a8 100644 --- a/sortix/Makefile +++ b/sortix/Makefile @@ -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