makefile 实验
来源:互联网 发布:csgo弹道优化参数 编辑:程序博客网 时间:2024/05/29 04:34
makefile 功能学习:
vim makefile,然后粘贴以下内容,退出vim后分别输入make和make linux命令:
PLAT ?= none
$(warning A top-level warning $(PLAT))
PLATS = linux freebsd macosx
CC ?= gcc
.PHONY : none $(PLATS) clean all cleanall
$(warning B top-level warning $(PLAT))
ifeq ($(PLAT), none) #注释掉也可以
.PHONY : default
$(warning C top-level warning $(PLAT))
default :
@echo "PLAT="$(PLAT)
$(MAKE) $(PLAT)
$(warning D top-level warning $(PLAT))
endif #注释掉也可以
none :
@echo "Please do 'make PLATFORM' where PLATFORM is one of these:"
@echo " $(PLATS)"
$(warning E top-level warning $(PLAT))
linux:PLAT = linux
macosx:PLAT = macosx
linux:$(warning G top-level warning $(PLAT)) \
linux:LANGUAGE := CHINESE
#linux:
# @echo "1 PLAT="$(LANGUAGE)
linux:LANGUAGE += ENGLISH
linux:
@echo "2 PLAT="$(LANGUAGE)
$(warning F top-level warning $(PLAT))
- makefile 实验
- Linux实验之Makefile
- 多级Makefile嵌套实验
- 实验6 makefile文件
- 4412驱动实验之04 Makefile 编译
- 【实验楼系列】【makefile】编译,链接基础实验
- make与makefile项目管理实验 ---对“$^ $@ $<”参数的说明
- 编写包含多文件的Makefile以及Makefile的嵌套实验
- 编写包含多文件的Makefile以及Makefile的嵌套实验
- 编写包含多文件的Makefile以及Makefile的嵌套实验
- Makefile
- Makefile
- makefile
- makefile
- makefile
- Makefile
- Makefile
- Makefile
- 暴力拆解《Numerical Optimization》之线搜索
- Idea破解
- RabbitMQ的元数据重建
- 581. Shortest Unsorted Continuous Subarray
- Leetcode练习<十四> 求最大子序列的和
- makefile 实验
- HTML系列之外联式(六)
- 专题一关键字的剖析----5.const,volatile分析
- codevs1250 Fibonacci数列
- 随机背景颜色的生成
- Coderforces String Task
- android binder机制---servicemanager进程启动
- JPS数据交互
- HTML系列之内联式(七)