From f37a754e2252fabc537d397953789a08064fcc60 Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Sun, 15 May 2016 13:19:52 +0200 Subject: [PATCH] Library/6809: Copy userstructs.h from kernel tree Signed-off-by: Tormod Volden --- Library/libs/Makefile.6809 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Library/libs/Makefile.6809 b/Library/libs/Makefile.6809 index b69fd6aa..f419a264 100644 --- a/Library/libs/Makefile.6809 +++ b/Library/libs/Makefile.6809 @@ -7,6 +7,10 @@ CC_OPT = -c -Os -I../include -I../include/6502 # for stuff that gives gcc nightmares CC_NOOPT = $(CC_OPT) ASM_OPT = -o +# copied in from kernel tree +KRN_HEADERS = userstructs.h +KRN_HEADERS_SRC = $(addprefix ../../Kernel/include/,$(KRN_HEADERS)) +KRN_HEADERS_COPY = $(addprefix ../include/sys/,$(KRN_HEADERS)) SRC_CRT0 = crt0_$(PLATFORM).s OBJ_CRT0 = $(SRC_CRT0:.s=.o) SRC_ASM = setjmp_6809.s ashlsi3_6809.s @@ -62,6 +66,11 @@ OBJ_ALL = $(OBJ_ASM) $(OBJ_C) $(OBJ_HARD) all: syslib$(PLATFORM).lib liberror.txt $(OBJ_CRT0) +$(OBJ_ALL): $(KRN_HEADERS_COPY) + +$(KRN_HEADERS_COPY): $(KRN_HEADERS_SRC) + cp ../../Kernel/include/$(notdir $@) $@ + libc.l:%.l:$(OBJ_ALL) ls $(OBJ_ALL) > libc.l @@ -105,3 +114,4 @@ clean: libc$(PLATFORM).a liberror.txt -cd fuzix$(PLATFORM) && make clean rm -rf fuzix$(PLATFORM)/Makefile + rm -f $(KRN_HEADERS_COPY) -- 2.34.1