2007-07-06 00:34:56 +00:00
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2007-08-08 01:01:46 +00:00
|
|
|
LIB := $(obj)libatibiosemu.a
|
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)
|
|
|
|
HOST_CFLAGS += $(EXTRA_CFLAGS)
|
|
|
|
|
2007-07-06 00:34:56 +00:00
|
|
|
all: $(LIB)
|
|
|
|
|
2007-08-30 10:19:05 +00:00
|
|
|
$(LIB): $(obj).depend $(OBJS)
|
|
|
|
$(AR) $(ARFLAGS) $@ $(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
|
|
|
|
|
|
|
#########################################################################
|