sbc2410x_config: unconfig
@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
STRING = hello world
all:
@echo $(STRING)
@echo $(STRING:world=Makefile)
$ make
hello world
hello Makefile
$(var:string1=string2)
$ make
hello world
hello world
hello_config: hello.o
gcc -o $(@:_config=) $^
hello.o: hello.c
gcc -Wall -c hello.c -o hello.o
t$ ls
hello hello.c hello.h hello.o Makefile
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |