]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/bios_emulator/Makefile
Merge branch 'master' of git://git.denx.de/u-boot-usb
[karo-tx-uboot.git] / drivers / bios_emulator / Makefile
index ba7d43673f718ed7a440a7c345f797abca7e0675..2ba43ac731842f0f1367ba5d604e1ba58f32c798 100644 (file)
@@ -1,10 +1,6 @@
-include $(TOPDIR)/config.mk
+X86DIR  = x86emu
 
-LIB := libatibiosemu.a
-
-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 +8,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__)