Hello:
Chris Liechti wrote:
Thanks for you kind reply.
> Raúl Sánchez Siles schrieb:
>> I'm building/packaging libc for msp430 and I have some questions about
>> the
>> build process:
>>
>> · Suggestion: msp1 and msp2 dirs are not created by the build system.
>> Find
>> attached a (ugly)patch to solve that.
>
> i guess a "-p" would help preventing an error when you run it a second
> time. i'm usually using packaging/makefile with handles these
> directories too
Find attached a refreshed patch with your suggestion. Tested and worked.
>
> the other questions are still unanswered, sorry
I understand about the libc for gcc-4.x. Sorry to insist, but is it the
same for the repetition issue of msp1 libs in {prefix}/lib and
{prefix}/lib/msp1?
>
> chris
>
Regards,
--
Raúl Sánchez Siles
Index: msp430-libc/src/Makefile
===================================================================
RCS file: /cvsroot/mspgcc/msp430-libc/src/Makefile,v
retrieving revision 1.46
diff -u -r1.46 Makefile
--- msp430-libc/src/Makefile 15 May 2008 00:54:33 -0000 1.46
+++ msp430-libc/src/Makefile 16 May 2008 11:01:32 -0000
@@ -147,7 +147,10 @@
libc_msp430_objs_2 = ${libc_msp430_c_objs_2}
-build-libc: ${libc_libs}
+build-libc: mspdirs ${libc_libs}
+
+mspdirs:
+ mkdir -p msp1 msp2
${libc_msp430_objs_1}: msp1/%.o: stdlib/%.c
${CC} -c ${CPPFLAGS} ${ALL_CFLAGS} -mmcu=msp1 -c $(ABSPATH)$< -o $@