当前位置:网站首页>General makefile (I) single C language compilation template
General makefile (I) single C language compilation template
2022-07-05 08:00:00 【Drink more hot water-】
[email protected] Represents the target file
$^ Represents all dependent files
$< Represents the first dependent file
$? Represents a list of dependent files that are newer than the target
A single C Language compilation :
#set a name as compile target
TARGET=main
CC=gcc
CFLAGS= -c -Wall
LDFLAGS=
SRCS=$(wildcard *.c)
OBJS=$(patsubst %.c,%.o,$(SRCS))
.PHONY: clean
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $^ $(LDFLAGS) -o [email protected]
$(OBJS):%.o:%.c
$(CC) $(CFLAGS) $< -o [email protected]
clean:
rm -f $(OBJS) $(TARGET)
边栏推荐
- Shape template matching based on Halcon learning [viii] PM_ multiple_ models. Hdev routine
- Development tools -- gcc compiler usage
- Mlperf training v2.0 list released, with the same GPU configuration, the performance of Baidu PaddlePaddle ranks first in the world
- C language # and #
- Consul安装
- Measurement fitting based on Halcon learning [II] meaure_ pin. Hdev routine
- The browser cannot access Baidu
- C # joint configuration with Halcon
- Temperature sensor DS18B20 principle, with STM32 routine code
- The firmware of the connected j-link does not support the following memory access
猜你喜欢
Shape template matching based on Halcon learning [vi] find_ mirror_ dies. Hdev routine
1-stm32 operation environment construction
Correlation based template matching based on Halcon learning [II] find_ ncc_ model_ defocused_ precision. hdev
C WinForm [view status bar -- statusstrip] - Practice 2
C WinForm [exit application] - practice 3
Shape template matching based on Halcon learning [v] find_ cocoa_ packages_ max_ deformation. Hdev routine
The research found that the cross-border e-commerce customer service system has these five functions!
Summary -st2.0 Hall angle estimation
UEFI development learning 5 - simple use of protocol
L'étude a révélé que le système de service à la clientèle du commerce électronique transfrontalier a ces cinq fonctions!
随机推荐
软件设计师:03-数据库系统
Factors affecting the quality of slip rings in production
Screen record of the opening ceremony of the Beijing winter olympics 2
MLPerf Training v2.0 榜单发布,在同等GPU配置下百度飞桨性能世界第一
UEFI development learning series
Global and Chinese markets for flexible endoscopic lithotripsy devices 2022-2028: Research Report on technology, participants, trends, market size and share
Shell脚本基本语法
Global and Chinese markets for medical oxygen machines 2022-2028: Research Report on technology, participants, trends, market size and share
Carrier period, electrical speed, carrier period variation
Makefile application
Ten thousand words detailed eight sorting must read (code + dynamic diagram demonstration)
Mlperf training v2.0 list released, with the same GPU configuration, the performance of Baidu PaddlePaddle ranks first in the world
研究发现,跨境电商客服系统都有这五点功能!
找不到实时聊天软件?给你推荐电商企业都在用的!
Development tools -- gcc compiler usage
C language enhancement -- pointer
Global and Chinese market of rammers 2022-2028: Research Report on technology, participants, trends, market size and share
The printer encountered an abnormal configuration problem 0x8007007e (win10)
Consul安装
Temperature sensor DS18B20 principle, with STM32 routine code