|
|
1.1 ! root 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 ! 8: # * ! 9: # * Contributors: ! 10: # * IBM Corporation - initial implementation ! 11: # ****************************************************************************/ ! 12: ! 13: ifndef TOP ! 14: TOP = $(shell while ! test -e make.rules; do cd .. ; done; pwd) ! 15: export TOP ! 16: endif ! 17: include $(TOP)/make.rules ! 18: ! 19: ROOTDIR ?= ../.. ! 20: ! 21: LDFLAGS = ! 22: ASFLAGS = -I./include -Wa,-mregnames ! 23: ! 24: #NOTE: -DDEBUG only needed for debugging/tracing... ! 25: #CFLAGS = -DDEBUG -I. -I./include -I./include/x86emu -I$(ROOTDIR)/include -I$(ROOTDIR)/lib/libc/include -g -O2 -msoft-float -Wall -save-temps -nostdinc -fno-builtin -ffreestanding ! 26: CFLAGS = -UDEBUG -m64 -I. -I./include -I./include/x86emu -I$(TOP)/clients/net-snk/include -I$(ROOTDIR)/include -I$(ROOTDIR)/lib/libc/include -O3 -Wall -nostdinc -fno-builtin -ffreestanding ! 27: ! 28: X86EMU_OBJS = debug.o decode.o fpu.o ops2.o ops.o prim_ops.o sys.o ! 29: ! 30: %.o: %.S ! 31: $(CC) $(ASFLAGS) -c -o $@ $^ ! 32: ! 33: %.o: %.c ! 34: $(CC) $(CFLAGS) -c -o $@ $^ ! 35: ! 36: all: libx86emu.a ! 37: ! 38: libx86emu.a: $(X86EMU_OBJS) ! 39: $(AR) -rc $@ $^ ! 40: $(RANLIB) $@ ! 41: ! 42: clean: ! 43: $(RM) *.o *.i *.s libx86emu.a ! 44: ! 45: distclean: clean ! 46:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.