blob: 90c64dad60213fd3eec691e6dbf3e39621dcea59 [file] [log] [blame]
Jason Jina63ce952007-07-06 08:34:56 +08001include $(TOPDIR)/config.mk
2
Jason Jind59890b2007-08-08 09:01:46 +08003LIB := $(obj)libatibiosemu.a
Jason Jina63ce952007-07-06 08:34:56 +08004
Jason Jin66c757b2007-08-30 18:19:05 +08005X86DIR = x86emu
Jason Jina63ce952007-07-06 08:34:56 +08006
Jason Jin66c757b2007-08-30 18:19:05 +08007$(shell mkdir -p $(obj)$(X86DIR))
8
9COBJS = atibios.o biosemu.o besys.o bios.o \
Jason Jina63ce952007-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
Jason Jin66c757b2007-08-30 18:19:05 +080017SRCS := $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(COBJS))
19
20EXTRA_CFLAGS += -I. -I./include -I$(TOPDIR)/include \
Jason Jina63ce952007-07-06 08:34:56 +080021 -D__PPC__ -D__BIG_ENDIAN__
22
Jason Jin66c757b2007-08-30 18:19:05 +080023CFLAGS += $(EXTRA_CFLAGS)
24HOST_CFLAGS += $(EXTRA_CFLAGS)
25
Jason Jina63ce952007-07-06 08:34:56 +080026all: $(LIB)
27
Jason Jin66c757b2007-08-30 18:19:05 +080028$(LIB): $(obj).depend $(OBJS)
29 $(AR) $(ARFLAGS) $@ $(OBJS)
Jason Jina63ce952007-07-06 08:34:56 +080030
31#########################################################################
32
Jason Jin66c757b2007-08-30 18:19:05 +080033include $(SRCTREE)/rules.mk
Jason Jina63ce952007-07-06 08:34:56 +080034
Jason Jin66c757b2007-08-30 18:19:05 +080035sinclude $(obj).depend
Jason Jina63ce952007-07-06 08:34:56 +080036
37#########################################################################