📄 makefile
字号:
## Makefile## Leendert van Doorn, leendert@watson.ibm.com# Copyright (c) 2005, International Business Machines Corporation.## This program is free software; you can redistribute it and/or modify it# under the terms and conditions of the GNU General Public License,# version 2, as published by the Free Software Foundation.## This program is distributed in the hope it will be useful, but WITHOUT# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for# more details.## You should have received a copy of the GNU General Public License along with# this program; if not, write to the Free Software Foundation, Inc., 59 Temple# Place - Suite 330, Boston, MA 02111-1307 USA.## External CFLAGS can do more harm than good.CFLAGS :=override XEN_TARGET_ARCH = x86_32XEN_ROOT = ../../..include $(XEN_ROOT)/Config.mk# The emulator code lives in ROM spaceTEXTADDR=0x000D0000DEFINES=-DDEBUG -DTEXTADDR=$(TEXTADDR)XENINC=-I$(XEN_ROOT)/tools/libxc# Disable PIE/SSP if GCC supports them. They can break us.CFLAGS += $(call cc-option,$(CC),-nopie,)CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)CFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,)CPP = cpp -PCFLAGS += $(DEFINES) -I. $(XENINC) -fno-builtin -O2 -msoft-floatOBJECTS = head.o trap.o vm86.o setup.o util.o.PHONY: allall: vmxassist.binvmxassist.bin: vmxassist.ld $(OBJECTS) $(CPP) $(DEFINES) vmxassist.ld > vmxassist.tmp $(LD) -o vmxassist $(LDFLAGS_DIRECT) --fatal-warnings -N -T vmxassist.tmp $(OBJECTS) nm -n vmxassist > vmxassist.sym $(OBJCOPY) -p -O binary -R .note -R .comment -R .bss -S --gap-fill=0 vmxassist vmxassist.tmp dd if=vmxassist.tmp of=vmxassist.bin ibs=512 conv=sync rm -f vmxassist.tmphead.o: machine.h vm86.h head.S $(CC) $(CFLAGS) -D__ASSEMBLY__ $(DEFINES) -c head.Strap.o: machine.h vm86.h offsets.h trap.S $(CC) $(CFLAGS) -D__ASSEMBLY__ $(DEFINES) -c trap.Svm86.o: machine.h vm86.h vm86.c $(CC) $(CFLAGS) -c vm86.csetup.o: machine.h vm86.h setup.c $(CC) $(CFLAGS) -c setup.cutil.o: machine.h vm86.h util.c $(CC) $(CFLAGS) -c util.coffsets.h: gen ./gen > offsets.hgen: vm86.h gen.c $(HOSTCC) $(HOSTCFLAGS) -I. $(XENINC) -o gen gen.c.PHONY: cleanclean: rm -f vmxassist vmxassist.tmp vmxassist.bin vmxassist.run vmxassist.sym head.s rm -f $(OBJECTS) rm -f gen gen.o offsets.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -