Newer
Older
barebox / arch / sandbox / os / Makefile
@Masahiro Yamada Masahiro Yamada on 27 Apr 2020 549 bytes kbuild: prefix compiler flag variables with KBUILD_
machine-y := sandbox

machdirs := $(patsubst %,arch/sandbox/mach-%/,$(machine-y))

ifeq ($(KBUILD_SRC),)
KBUILD_CPPFLAGS := $(patsubst %,-I%include,$(machdirs))
else
KBUILD_CPPFLAGS = $(patsubst %,-I$(srctree)/%include,$(machdirs))
endif

KBUILD_CPPFLAGS += -DCONFIG_MALLOC_SIZE=$(CONFIG_MALLOC_SIZE)

KBUILD_CFLAGS := -Wall
NOSTDINC_FLAGS :=

obj-y = common.o tap.o

CFLAGS_sdl.o = $(shell pkg-config sdl --cflags)
obj-$(CONFIG_DRIVER_VIDEO_SDL) += sdl.o

CFLAGS_ftdi.o = $(shell pkg-config libftdi1 --cflags)
obj-$(CONFIG_GPIO_LIBFTDI1) += ftdi.o