]> git.sur5r.net Git - u-boot/blobdiff - drivers/bios_emulator/Makefile
SPDX: Convert all of our single license tags to Linux Kernel style
[u-boot] / drivers / bios_emulator / Makefile
index 586e83be8f2abec30cb0d0cb41a1d1c5dbf86635..d9cf6ad5d1b67a62c9af7d6b2dd44b2b1bf7a252 100644 (file)
@@ -1,10 +1,8 @@
-include $(TOPDIR)/config.mk
+# SPDX-License-Identifier: GPL-2.0+
 
-LIB := $(obj)libatibiosemu.a
+X86DIR  = x86emu
 
-X86DIR  = ./x86emu
-
-OBJS   = atibios.o biosemu.o besys.o bios.o  \
+obj-y = atibios.o biosemu.o besys.o bios.o \
        $(X86DIR)/decode.o \
        $(X86DIR)/ops2.o \
        $(X86DIR)/ops.o \
@@ -12,19 +10,5 @@ OBJS = atibios.o biosemu.o besys.o bios.o  \
        $(X86DIR)/sys.o \
        $(X86DIR)/debug.o
 
-CFLAGS += -I. -I./include  -I$(X86DIR) -I$(TOPDIR)/include \
-       -D__PPC__  -D__BIG_ENDIAN__
-
-all:   $(LIB)
-
-$(LIB): $(OBJS)
-       $(AR) crv $@ $(OBJS)
-
-#########################################################################
-
-.depend:       Makefile $(OBJS:.o=.c)
-               $(CC) -M $(CFLAGS) $(OBJS:.o=.c) > $@
-
-sinclude .depend
-
-#########################################################################
+ccflags-y := -I$(srctree)/$(src) -I$(srctree)/$(src)/include \
+       $(if $(CONFIG_PPC),-D__PPC__  -D__BIG_ENDIAN__)