2007-07-06 00:34:56 +00:00
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2010-11-05 14:48:07 +00:00
|
|
|
LIB := $(obj)libatibiosemu.o
|
2007-07-06 00:34:56 +00:00
|
|
|
|
2007-08-30 10:19:05 +00:00
|
|
|
X86DIR = x86emu
|
2007-07-06 00:34:56 +00:00
|
|
|
|
2007-08-30 10:19:05 +00:00
|
|
|
$(shell mkdir -p $(obj)$(X86DIR))
|
|
|
|
|
2008-11-07 21:46:22 +00:00
|
|
|
COBJS-$(CONFIG_BIOSEMU) = atibios.o biosemu.o besys.o bios.o \
|
2007-07-06 00:34:56 +00:00
|
|
|
$(X86DIR)/decode.o \
|
|
|
|
$(X86DIR)/ops2.o \
|
|
|
|
$(X86DIR)/ops.o \
|
|
|
|
$(X86DIR)/prim_ops.o \
|
|
|
|
$(X86DIR)/sys.o \
|
|
|
|
$(X86DIR)/debug.o
|
|
|
|
|
2008-11-07 21:46:22 +00:00
|
|
|
COBJS := $(COBJS-y)
|
2007-08-30 10:19:05 +00:00
|
|
|
SRCS := $(COBJS:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(COBJS))
|
|
|
|
|
|
|
|
EXTRA_CFLAGS += -I. -I./include -I$(TOPDIR)/include \
|
2007-07-06 00:34:56 +00:00
|
|
|
-D__PPC__ -D__BIG_ENDIAN__
|
|
|
|
|
2007-08-30 10:19:05 +00:00
|
|
|
CFLAGS += $(EXTRA_CFLAGS)
|
2009-07-19 19:17:03 +00:00
|
|
|
HOSTCFLAGS += $(EXTRA_CFLAGS)
|
2009-12-16 20:12:11 +00:00
|
|
|
CPPFLAGS += $(EXTRA_CFLAGS)
|
2007-08-30 10:19:05 +00:00
|
|
|
|
2007-07-06 00:34:56 +00:00
|
|
|
all: $(LIB)
|
|
|
|
|
2007-08-30 10:19:05 +00:00
|
|
|
$(LIB): $(obj).depend $(OBJS)
|
2010-11-05 14:48:07 +00:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2007-07-06 00:34:56 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
2007-08-30 10:19:05 +00:00
|
|
|
include $(SRCTREE)/rules.mk
|
2007-07-06 00:34:56 +00:00
|
|
|
|
2007-08-30 10:19:05 +00:00
|
|
|
sinclude $(obj).depend
|
2007-07-06 00:34:56 +00:00
|
|
|
|
|
|
|
#########################################################################
|