Makefile: allow alternative platforms, try make PLATFORM=foo

This commit is contained in:
Philippe Teuwen
2019-03-11 00:21:14 +01:00
parent 7f26ed6e9f
commit 119e3f0ed9
5 changed files with 112 additions and 9 deletions

View File

@@ -21,13 +21,13 @@ platform = $(shell uname)
all:
CROSS ?= arm-none-eabi-
CC = $(CROSS)gcc
AS = $(CROSS)as
LD = $(CROSS)ld
CC = $(CROSS)gcc
AS = $(CROSS)as
LD = $(CROSS)ld
OBJCOPY = $(CROSS)objcopy
GZIP=gzip
OBJDIR = obj
OBJDIR = obj
INCLUDE = -I../include -I../common -I.