blob: d94a144292948e774c3ee0b1549d961efa45cf6c [file] [log] [blame]
Jason Jinece92f82007-07-06 08:34:56 +08001include $(TOPDIR)/config.mk
2
Sebastien Carlier6d8962e2010-11-05 15:48:07 +01003LIB := $(obj)libatibiosemu.o
Jason Jinece92f82007-07-06 08:34:56 +08004
Jason Jin1d2ca442007-08-30 18:19:05 +08005X86DIR = x86emu
Jason Jinece92f82007-07-06 08:34:56 +08006
Jason Jin1d2ca442007-08-30 18:19:05 +08007$(shell mkdir -p $(obj)$(X86DIR))
8
Jean-Christophe PLAGNIOL-VILLARD1cb82a92008-11-07 22:46:22 +01009COBJS-$(CONFIG_BIOSEMU) = atibios.o biosemu.o besys.o bios.o \
Jason Jinece92f82007-07-06 08:34:56 +080010 $(X86DIR)/decode.o \
11 $(X86DIR)/ops2.o \
12 $(X86DIR)/ops.o \
13 $(X86DIR)/prim_ops.o \
14 $(X86DIR)/sys.o \
15 $(X86DIR)/debug.o
16
Jean-Christophe PLAGNIOL-VILLARD1cb82a92008-11-07 22:46:22 +010017COBJS := $(COBJS-y)
Jason Jin1d2ca442007-08-30 18:19:05 +080018SRCS := $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS))
20
21EXTRA_CFLAGS += -I. -I./include -I$(TOPDIR)/include \
Jason Jinece92f82007-07-06 08:34:56 +080022 -D__PPC__ -D__BIG_ENDIAN__
23
Jason Jin1d2ca442007-08-30 18:19:05 +080024CFLAGS += $(EXTRA_CFLAGS)
Mike Frysinger9aef7382009-07-19 15:17:03 -040025HOSTCFLAGS += $(EXTRA_CFLAGS)
Kumar Galad02ffbf2009-12-16 14:12:11 -060026CPPFLAGS += $(EXTRA_CFLAGS)
Jason Jin1d2ca442007-08-30 18:19:05 +080027
Jason Jinece92f82007-07-06 08:34:56 +080028all: $(LIB)
29
Jason Jin1d2ca442007-08-30 18:19:05 +080030$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010031 $(call cmd_link_o_target, $(OBJS))
Jason Jinece92f82007-07-06 08:34:56 +080032
33#########################################################################
34
Jason Jin1d2ca442007-08-30 18:19:05 +080035include $(SRCTREE)/rules.mk
Jason Jinece92f82007-07-06 08:34:56 +080036
Jason Jin1d2ca442007-08-30 18:19:05 +080037sinclude $(obj).depend
Jason Jinece92f82007-07-06 08:34:56 +080038
39#########################################################################