⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile.common

📁 LINUX 下NACHOS 系统的页面调度算法的实现
💻 COMMON
字号:
# This is part of a GNU Makefile, included by the Makefiles in# each of the subdirectories.  ## This file includes all of the baseline code provided by Nachos.# Whenever you add a .h or .cpp file, put it in the appropriate # _H,_C, or _O list.## The dependency graph between assignments is:#   1. THREADS before everything else#   2. USERPROG must come before VM#   3. USERPROG can come before or after FILESYS, but if USERPROG comes #	before (as in this distribution), then it must define FILESYS_STUB##   Other than that, you have complete flexibility.## Also whenever you change the include structure of your program, you should # do a gmake depend in the subdirectory -- this will modify the Makefile# to keep track of the new dependency.# You might want to play with the CFLAGS, but if you use -O it may# break the thread system.  You might want to use -fno-inline if# you need to call some inline functions from the debugger.# Copyright (c) 1992 The Regents of the University of California.# All rights reserved.  See copyright.h for copyright notice and limitation # of liability and disclaimer of warranty provisions.CFLAGS = -g -Wall -Wshadow  $(INCPATH) $(DEFINES) $(HOST) -DCHANGEDLDFLAGS =# These definitions may change as the software is updated.# Some of them are also system dependentCPP= /lib/cppCC = g++LD = g++#modify by blueworm 2003/3/15AS =asPROGRAM = nachosTHREAD_H =../threads/copyright.h\	../threads/list.h\	../threads/scheduler.h\	../threads/synch.h \	../threads/synchlist.h\	../threads/system.h\	../threads/thread.h\	../threads/utility.h\	../machine/interrupt.h\	../machine/sysdep.h\	../machine/stats.h\	../machine/timer.hTHREAD_C =../threads/main.cpp\	../threads/scheduler.cpp\	../threads/synch.cpp \	../threads/system.cpp\	../threads/thread.cpp\	../threads/utility.cpp\	../machine/interrupt.cpp\	../machine/sysdep.cpp\	../machine/stats.cpp\	../machine/timer.cppTHREAD_S = ../threads/switch.sTHREAD_O =main.o scheduler.o synch.o system.o thread.o \	utility.o interrupt.o stats.o sysdep.o timer.oUSERPROG_H = ../userprog/addrspace.h\	../userprog/bitmap.h\	../userprog/memmanager.h\	../machine/console.h\	../machine/machine.h\	../machine/mipssim.h\	../machine/translate.h\	../filesys/filesys.h\	../filesys/openfile.hUSERPROG_C = ../userprog/addrspace.cpp\	../userprog/bitmap.cpp\	../userprog/exception.cpp\	../userprog/progtest.cpp\	../userprog/memmanager.cpp\	../machine/console.cpp\	../machine/machine.cpp\	../machine/mipssim.cpp\	../machine/translate.cpp\	../userprog/testcase.cppUSERPROG_O = addrspace.o bitmap.o exception.o progtest.o console.o machine.o \	mipssim.o translate.o memmanager.o testcase.oVM_H = VM_C = VM_O = FILESYS_H =../filesys/directory.h \	../filesys/filehdr.h\	../filesys/filesys.h \	../filesys/openfile.h\	../filesys/synchdisk.h\	../machine/disk.hFILESYS_C =../filesys/directory.cpp\	../filesys/filehdr.cpp\	../filesys/filesys.cpp\	../filesys/fstest.cpp\	../filesys/openfile.cpp\	../filesys/synchdisk.cpp\	../machine/disk.cppFILESYS_O =directory.o filehdr.o filesys.o fstest.o openfile.o synchdisk.o\	disk.oS_OFILES = switch.oOFILES = $(C_OFILES) $(S_OFILES)$(PROGRAM): $(OFILES)	$(LD) $(OFILES) $(LDFLAGS) -o $(PROGRAM)$(C_OFILES): %.o:	$(CC) $(CFLAGS) -c $<switch.o: ../threads/switch.s	$(CPP) $(CPP_AS_FLAGS) -P $(INCPATH) $(HOST) ../threads/switch.s > swtch.s	$(AS) -o switch.o swtch.sclean:	rm -f nachos swtch.s *.odepend: $(CFILES) $(HFILES)	$(CC) $(INCPATH) $(DEFINES) $(HOST) -DCHANGED -M $(CFILES) > makedep	echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep	echo '$$r makedep' >>eddep	echo 'w' >>eddep	ed - Makefile < eddep	rm eddep makedep 	echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile	echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile	echo '# see make depend above' >> Makefile

⌨️ 快捷键说明

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