+# SPDX-License-Identifier: GPL-2.0+
+
X86DIR = x86emu
obj-y = atibios.o biosemu.o besys.o bios.o \
$(X86DIR)/sys.o \
$(X86DIR)/debug.o
-EXTRA_CFLAGS += -I. -I./include -I$(TOPDIR)/include \
- -D__PPC__ -D__BIG_ENDIAN__
-
-CFLAGS += $(EXTRA_CFLAGS)
-HOSTCFLAGS += $(EXTRA_CFLAGS)
-CPPFLAGS += $(EXTRA_CFLAGS)
+ccflags-y := -I$(srctree)/$(src) -I$(srctree)/$(src)/include \
+ $(if $(CONFIG_PPC),-D__PPC__ -D__BIG_ENDIAN__)