[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

@ -19,6 +19,7 @@
##
LIBNAME = libopencm3_efm32g
SRCLIBDIR ?= ../..
FAMILY = EFM32G
PREFIX ?= arm-none-eabi

View File

@ -19,6 +19,7 @@
##
LIBNAME = libopencm3_efm32gg
SRCLIBDIR ?= ../..
FAMILY = EFM32GG
PREFIX ?= arm-none-eabi

View File

@ -19,6 +19,7 @@
##
LIBNAME = libopencm3_efm32lg
SRCLIBDIR ?= ../..
FAMILY = EFM32LG
PREFIX ?= arm-none-eabi

View File

@ -19,6 +19,7 @@
##
LIBNAME = libopencm3_efm32tg
SRCLIBDIR ?= ../..
FAMILY = EFM32TG
PREFIX ?= arm-none-eabi

View File

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

View File

@ -19,6 +19,7 @@
##
LIBNAME = libopencm3_lm4f
SRCLIBDIR ?= ..
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
PREFIX ?= arm-none-eabi

View File

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

View File

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

View File

@ -20,6 +20,7 @@
##
LIBNAME = libopencm3_lpc43xx_m0
SRCLIBDIR ?= ../..
PREFIX ?= arm-none-eabi
#PREFIX ?= arm-elf

View File

@ -21,6 +21,7 @@
##
LIBNAME = libopencm3_lpc43xx
SRCLIBDIR ?= ../..
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
PREFIX ?= arm-none-eabi

View File

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

View File

@ -19,6 +19,7 @@
##
LIBNAME = libopencm3_sam3s
SRCLIBDIR ?= ../..
PREFIX ?= arm-none-eabi

View File

@ -19,6 +19,7 @@
##
LIBNAME = libopencm3_sam3u
SRCLIBDIR ?= ../..
PREFIX ?= arm-none-eabi

View File

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

View File

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

View File

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

View File

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

View File

@ -18,6 +18,7 @@
##
LIBNAME = libopencm3_stm32f3
SRCLIBDIR ?= ../..
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
PREFIX ?= arm-none-eabi

View File

@ -19,6 +19,7 @@
##
LIBNAME = libopencm3_stm32f4
SRCLIBDIR ?= ../..
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
PREFIX ?= arm-none-eabi

View File

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