[BUILD] Fix the correct make behavior if compiling inside tree

On linux, the output of CP rule was try to write to / which is - of course, forbidden for write.

This solution adds to each part of lib correct pointer to the root of lib where the libs should be written.

Bug found by Kuldeep Singh Dhaka.
This commit is contained in:
Frantisek Burian
2014-02-06 01:34:38 +01:00
committed by Karl Palsson
parent eb44e7c617
commit 6de1b50c4e
20 changed files with 20 additions and 0 deletions

View File

@@ -18,6 +18,7 @@
##
LIBNAME = libopencm3_lpc17xx
SRCLIBDIR ?= ..
PREFIX ?= arm-none-eabi