分类: LINUX
2011-05-31 18:34:17
最大行业软件2012-12-01 10:30:02
PTC Creo Elements/Pro 5.0 M070 Working for Win32-ISO 1DVD(最新多语言正式版包括简、繁体中文)
PTC Creo Elements/Pro 5.0 M070 Working for Win64-ISO 1DVD
PTC Creo Elements View (ex Product View) v10 F000 build 93 Pro Multilanguage Win32 1CD
PTC Creo Elements View (ex Product View) v10 F000 build 93 Pro Multilanguage Win64 1CD
PTC Pro/E WildFire+Pro/Mechancia 4.0 M110 Working for Win32-ISO 1DVD(最新多语言正式版包括简、繁体中文)
PTC Pro/E Wil
snowboy98592012-04-01 22:07:15
如何向make传参数
写了个简单的main.c
编译时键入 make cmd_debug=y 就可向make传递参数,从而达到部分编译的功能。
命令执行之前键入 -@可以在执行时不显示出命令来。
dest: main.o
-@ cc main.o -o target
-@ echo "build"
main.o: main.c
-@ cc -c main.c -o main.o
-@ echo "compile"
ifeq ($(cmd_debug),y)
- @ echo "cmd_debug is "$(cmd_debug)
else
- @ echo "cmd_debug is "$(cmd_debug)
endif