關於Makefile的問題

看板FreeBSD作者時間17年前 (2008/03/21 15:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/8 (看更多)
我在編譯一個程式的時候出現了這個問題 %make menuconfig "arch/arm/Makefile", line 152: Need an operator "arch/arm/Makefile", line 154: Missing dependency operator "arch/arm/Makefile", line 157: Need an operator "arch/arm/Makefile", line 159: Missing dependency operator "arch/arm/Makefile", line 161: Need an operator "arch/arm/Makefile", line 163: Missing dependency operator "arch/arm/Makefile", line 165: Need an operator "arch/arm/Makefile", line 167: Missing dependency operator "arch/arm/Makefile", line 169: Need an operator "arch/arm/Makefile", line 171: Need an operator "arch/arm/Makefile", line 175: Missing dependency operator "arch/arm/Makefile", line 177: Need an operator "arch/arm/Makefile", line 179: Missing dependency operator "arch/arm/Makefile", line 181: Need an operator "arch/arm/Makefile", line 185: Missing dependency operator "arch/arm/Makefile", line 188: Need an operator "arch/arm/Makefile", line 196: Missing dependency operator "arch/arm/Makefile", line 198: Need an operator "arch/arm/Makefile", line 202: Missing dependency operator "arch/arm/Makefile", line 204: Missing dependency operator "arch/arm/Makefile", line 206: Need an operator "arch/arm/Makefile", line 207: Need an operator Error expanding embedded variable. ================================================================== 我回去找這個Makefile: 150 ifeq ($(CONFIG_ARCH_CAMELOT),y) 151 MACHINE = epxa 152 endif 153 154 ifeq ($(CONFIG_ARCH_CLPS711X),y) 155 TEXTADDR = 0xc0028000 156 MACHINE = clps711x 157 endif 158 159 ifeq ($(CONFIG_ARCH_FORTUNET),y) 160 TEXTADDR = 0xc0208000 161 endif 162 163 ifeq ($(CONFIG_ARCH_ANAKIN),y) 164 MACHINE = anakin 165 endif 166 167 ifeq ($(CONFIG_ARCH_OMAHA),y) 168 MACHINE = omaha 169 endif 170 171 export MACHINE PROCESSOR TEXTADDR GZFLAGS CFLAGS_BOOT OBJCOPYFLAGS 172 173 # Only set INCDIR if its not already defined above 174 # Grr, ?= doesn't work as all the other assignment operators do. Make bug? 175 ifeq ($(origin INCDIR), undefined) 176 INCDIR :=$(MACHINE) 177 endif 178 179 ifeq ($(origin DATAADDR), undefined) 180 DATAADDR := . 181 endif 182 183 # If we have a machine-specific directory, then include it in the build. 184 MACHDIR := arch/arm/mach-$(MACHINE) 185 ifeq ($(MACHDIR),$(wildcard $(MACHDIR))) 186 SUBDIRS += $(MACHDIR) 187 CORE_FILES := $(MACHDIR)/$(MACHINE).o $(CORE_FILES) 188 endif 189 190 HEAD :=arch/arm/kernel/head-$(PROCESSOR).o \ 191 arch/arm/kernel/init_task.o 192 SUBDIRS +=arch/arm/kernel arch/arm/mm arch/arm/lib arch/arm/nwfpe 193 CORE_FILES :=arch/arm/kernel/kernel.o arch/arm/mm/mm.o $(CORE_FILES) 194 LIBS :=arch/arm/lib/lib.a $(LIBS) .. .. .. .. .. -- 請問是發生了什麼問題呢? 該怎樣修改Makefile 我對Makefile不太熟 XD -- □ 本文章由 catchingccbsd1.csie.nctu.edu.tw 發表
文章代碼(AID): #17urql00 (FreeBSD)
文章代碼(AID): #17urql00 (FreeBSD)