makefile

来自「LINUX 下NACHOS 系统的页面调度算法的实现」· 代码 · 共 73 行

TXT
73
字号
# use normal make for this Makefile## Makefile for building user programs to run on top of Nachos## Several things to be aware of:##    Nachos assumes that the location of the program startup routine (the#       location the kernel jumps to when the program initially starts up)#       is at location 0.  This means: start.o must be the first .o passed #       to ld, in order for the routine "Start" to be loaded at location 0## if you are cross-compiling, you need to point to the right executables# and change the flags to ld and the build procedure for as#modify by blueworm 2003/3/15GCCDIR =/usr/local/nachos/current/decstation-ultrix/bin/LDFLAGS = -T script -NASFLAGS = -mips3CPPFLAGS = $(INCDIR)#add by blueworm 2003/3/19COFF2NOFF =../bin/coff2noff# if you aren't cross-compiling:#GCCDIR =#LDFLAGS = -N -T 0#ASFLAGS =#CPPFLAGS = -P $(INCDIR)CC = $(GCCDIR)gccAS = $(GCCDIR)asLD = $(GCCDIR)ldCPP = /lib/cppINCDIR =-I../userprog -I../threadsCFLAGS = -G 0 -c $(INCDIR)all: test1 test2 test3 dumpclean:	rm -f dump test1 test2 test3 *.coff *.o strt.sstart.o: start.s ../userprog/syscall.h	$(CPP) $(CPPFLAGS) start.s > strt.s	$(AS) $(ASFLAGS) -o start.o strt.s	rm strt.stest1.o: test1.c	$(CC) $(CFLAGS) -c test1.ctest1: test1.o start.o	$(LD) $(LDFLAGS) start.o test1.o -o test1.coff	$(COFF2NOFF) test1.coff test1test2.o: test2.c	$(CC) $(CFLAGS) -c test2.ctest2: test2.o start.o	$(LD) $(LDFLAGS) start.o test2.o -o test2.coff	$(COFF2NOFF)  test2.coff test2test3.o: test3.c	$(CC) $(CFLAGS) -c test3.ctest3: test3.o start.o	$(LD) $(LDFLAGS) start.o test3.o -o test3.coff	$(COFF2NOFF)  test3.coff test3dump.o: dump.c	$(CC) $(CFLAGS) -c dump.cdump: dump.o start.o	$(LD) $(LDFLAGS) start.o dump.o -o dump.coff	$(COFF2NOFF)  dump.coff dump 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?