Jason Jin | ece92f8 | 2007-07-06 08:34:56 +0800 | [diff] [blame] | 1 | include $(TOPDIR)/config.mk |
| 2 | |
Jason Jin | 0dc4279 | 2007-08-08 09:01:46 +0800 | [diff] [blame^] | 3 | LIB := $(obj)libatibiosemu.a |
Jason Jin | ece92f8 | 2007-07-06 08:34:56 +0800 | [diff] [blame] | 4 | |
| 5 | X86DIR = ./x86emu |
| 6 | |
| 7 | OBJS = atibios.o biosemu.o besys.o bios.o \ |
| 8 | $(X86DIR)/decode.o \ |
| 9 | $(X86DIR)/ops2.o \ |
| 10 | $(X86DIR)/ops.o \ |
| 11 | $(X86DIR)/prim_ops.o \ |
| 12 | $(X86DIR)/sys.o \ |
| 13 | $(X86DIR)/debug.o |
| 14 | |
| 15 | CFLAGS += -I. -I./include -I$(X86DIR) -I$(TOPDIR)/include \ |
| 16 | -D__PPC__ -D__BIG_ENDIAN__ |
| 17 | |
| 18 | all: $(LIB) |
| 19 | |
| 20 | $(LIB): $(OBJS) |
| 21 | $(AR) crv $@ $(OBJS) |
| 22 | |
| 23 | ######################################################################### |
| 24 | |
| 25 | .depend: Makefile $(OBJS:.o=.c) |
| 26 | $(CC) -M $(CFLAGS) $(OBJS:.o=.c) > $@ |
| 27 | |
| 28 | sinclude .depend |
| 29 | |
| 30 | ######################################################################### |