当前位置: 技术问答>linux和unix
那位大虾帮我看一下这个程序(nachos 原程序makefile)
来源: 互联网 发布时间:2015-04-18
本文导语: 36 ifndef MAKEFILE_COMMON 37 define MAKEFILE_COMMON 38 yes 39 endef 44 include ../Makefile.dep 49 vpath %.cc ../network:../filesys:../vm:../userprog:../threads:../machine 50 vpath %.h ../network:../filesys:../vm:../userprog:../threads:../mac...
36 ifndef MAKEFILE_COMMON
37 define MAKEFILE_COMMON
38 yes
39 endef
44 include ../Makefile.dep
49 vpath %.cc ../network:../filesys:../vm:../userprog:../threads:../machine
50 vpath %.h ../network:../filesys:../vm:../userprog:../threads:../machine
51 vpath %.s ../network:../filesys:../vm:../userprog:../threads:../machine
54 CFLAGS = -g -Wall -Wshadow -fwritable-strings $(INCPATH) $(DEFINES) $(HOST) -DCHANGED
55
56 # The variables {C,S,CC}FILES should be initialized by the Makefile
57 # that invokes this makefile. The ofiles variable is used in building
58 # the different versions of nachos corresponding to each assignment; it
59 # is not used by the Makefiles for the bin or test directories.
60
61 s_ofiles = $(SFILES:%.s=$(obj_dir)/%.o)
62 c_ofiles = $(CFILES:%.c=$(obj_dir)/%.o)
63 cc_ofiles = $(CCFILES:%.cc=$(obj_dir)/%.o)
64
65 ofiles = $(cc_ofiles) $(c_ofiles) $(s_ofiles)
66
67 program = $(bin_dir)/nachos
68
88 $(bin_dir)/% :
89 @echo ">>> Linking" $@ ">> Compiling" $
37 define MAKEFILE_COMMON
38 yes
39 endef
44 include ../Makefile.dep
49 vpath %.cc ../network:../filesys:../vm:../userprog:../threads:../machine
50 vpath %.h ../network:../filesys:../vm:../userprog:../threads:../machine
51 vpath %.s ../network:../filesys:../vm:../userprog:../threads:../machine
54 CFLAGS = -g -Wall -Wshadow -fwritable-strings $(INCPATH) $(DEFINES) $(HOST) -DCHANGED
55
56 # The variables {C,S,CC}FILES should be initialized by the Makefile
57 # that invokes this makefile. The ofiles variable is used in building
58 # the different versions of nachos corresponding to each assignment; it
59 # is not used by the Makefiles for the bin or test directories.
60
61 s_ofiles = $(SFILES:%.s=$(obj_dir)/%.o)
62 c_ofiles = $(CFILES:%.c=$(obj_dir)/%.o)
63 cc_ofiles = $(CCFILES:%.cc=$(obj_dir)/%.o)
64
65 ofiles = $(cc_ofiles) $(c_ofiles) $(s_ofiles)
66
67 program = $(bin_dir)/nachos
68
88 $(bin_dir)/% :
89 @echo ">>> Linking" $@ ">> Compiling" $