当前位置:网站首页>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)
边栏推荐
- Query the table name used by kettle in Oracle
- C WinForm [display real-time time in the status bar] - practical exercise 1
- Gradle composite construction
- Function and usage of function pointer
- Acwing-宠物小精灵之收服-(多维01背包+正序倒序+两种形式dp求答案)
- solver. Learning notes of prototxt file parameters
- Shell script basic syntax
- Markdown tips
- Hardware 1 -- relationship between gain and magnification
- 如何进行导电滑环选型
猜你喜欢

Introduction of air gap, etc

Altium designer learning (I)
![Shape template matching based on Halcon learning [VII] reuse_ model. Hdev routine](/img/55/0f05291755dc1c3c03db8e991a1ba1.jpg)
Shape template matching based on Halcon learning [VII] reuse_ model. Hdev routine

Altium Designer 19.1.18 - 导入板框

MLPerf Training v2.0 榜单发布,在同等GPU配置下百度飞桨性能世界第一

Factors affecting the quality of slip rings in production

UEFI development learning 5 - simple use of protocol

Network port usage
![Measurement fitting based on Halcon learning [III] PM_ measure_ board. Hdev routine](/img/f9/fc4f0bbce36b3c1368d838d723b027.jpg)
Measurement fitting based on Halcon learning [III] PM_ measure_ board. Hdev routine
![Halcon's practice based on shape template matching [2]](/img/70/3e905661785e570fb406b8e97d41e6.jpg)
Halcon's practice based on shape template matching [2]
随机推荐
Shape template matching based on Halcon learning [vi] find_ mirror_ dies. Hdev routine
Win10 shortcut key
Record the torch encountered by win10 cuda. is_ False problem in available()
Global and Chinese market of resistivity meter 2022-2028: Research Report on technology, participants, trends, market size and share
Embedded AI intelligent technology liquid particle counter
Gradle composite construction
Relationship between line voltage and phase voltage, line current and phase current
STM32 learning method
MySQL - storage engine
C WinForm [change the position of the form after running] - Practical Exercise 4
Altium Designer 19.1.18 - 隐藏某一个网络的飞线
Measurement fitting based on Halcon learning [III] PM_ measure_ board. Hdev routine
Embedded composition and route
Measurement fitting based on Halcon learning [II] meaure_ pin. Hdev routine
1089 Insert or Merge 含测试点5
Screen record of the opening ceremony of the Beijing winter olympics 2
Beijing Winter Olympics opening ceremony display equipment record 3
1089 insert or merge, including test point 5
Matlab2018b problem solving when installing embedded coder support package for stmicroelectronic
C language # and #