makefile
来自「操作系统课程设计。在UNIX平台下实现Solary操作系统的一些功能」· 代码 · 共 69 行
TXT
69 行
# 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 asGCCDIR = ../../../gnu-decstation-ultrix/decstation-ultrix/2.95.3/LDFLAGS = -T script -NASFLAGS = -mips2CPPFLAGS = $(INCDIR)# if you aren't cross-compiling:# GCCDIR =# LDFLAGS = -N -T 0# ASFLAGS =# CPPFLAGS = -P $(INCDIR)PATH = $(GCCDIR):/lib:/usr/bin:/binCC = $(GCCDIR)gcc -B../../../gnu-decstation-ultrix/AS = $(GCCDIR)asLD = $(GCCDIR)ldCPP = gcc -EINCDIR =-I../userprog -I../threadsCFLAGS = -G 0 -c $(INCDIR)all: halt shell matmult sortstart.o: start.s ../userprog/syscall.h $(CPP) $(CPPFLAGS) start.c > strt.s $(AS) $(ASFLAGS) -o start.o strt.s rm strt.shalt.o: halt.c $(CC) $(CFLAGS) -c halt.chalt: halt.o start.o $(LD) $(LDFLAGS) start.o halt.o -o halt.coff ../bin/coff2noff halt.coff haltshell.o: shell.c $(CC) $(CFLAGS) -c shell.cshell: shell.o start.o $(LD) $(LDFLAGS) start.o shell.o -o shell.coff ../bin/coff2noff shell.coff shellsort.o: sort.c $(CC) $(CFLAGS) -c sort.csort: sort.o start.o $(LD) $(LDFLAGS) start.o sort.o -o sort.coff ../bin/coff2noff sort.coff sortmatmult.o: matmult.c $(CC) $(CFLAGS) -c matmult.cmatmult: matmult.o start.o $(LD) $(LDFLAGS) start.o matmult.o -o matmult.coff ../bin/coff2noff matmult.coff matmult
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?