1 # *****************************************************************************
2 # * Copyright (c) 2004, 2008 IBM Corporation
3 # * All rights reserved.
4 # * This program and the accompanying materials
5 # * are made available under the terms of the BSD License
6 # * which accompanies this distribution, and is available at
7 # * http://www.opensource.org/licenses/bsd-license.php
10 # * IBM Corporation - initial implementation
11 # ****************************************************************************/
14 TOP = $(shell while ! test -e make.rules; do cd .. ; done; pwd)
17 include $(TOP)/make.rules
22 ASFLAGS = -I./include -Wa,-mregnames
24 #NOTE: -DDEBUG only needed for debugging/tracing...
25 CFLAGS = -UDEBUG -m64 -I. -I./include -I./include/x86emu \
26 -I$(TOP)/clients/net-snk/include -I$(ROOTDIR)/include \
27 -I$(ROOTDIR)/lib/libc/include -O3 -nostdinc -fno-builtin \
28 -ffreestanding -Wall -Wno-unused
30 X86EMU_OBJS = debug.o decode.o fpu.o ops2.o ops.o prim_ops.o sys.o
33 $(CC) $(ASFLAGS) -c -o $@ $^
36 $(CC) $(CFLAGS) -c -o $@ $^
40 libx86emu.a: $(X86EMU_OBJS)
45 $(RM) *.o *.i *.s libx86emu.a