当前位置:网站首页>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)
边栏推荐
- Realization of binary relation of discrete mathematics with C language and its properties
- Correlation based template matching based on Halcon learning [II] find_ ncc_ model_ defocused_ precision. hdev
- Shell脚本基本语法
- Acwing - the collection of pet elves - (multidimensional 01 Backpack + positive and reverse order + two forms of DP for the answer)
- About yolov3, conduct map test directly
- Halcon's practice based on shape template matching [2]
- Class of color image processing based on Halcon learning_ ndim_ norm. hdev
- Hardware 3 -- function of voltage follower
- Global and Chinese market for blood typing 2022-2028: Research Report on technology, participants, trends, market size and share
- Shape template matching based on Halcon learning [VII] reuse_ model. Hdev routine
猜你喜欢
![Shape template matching based on Halcon learning [vi] find_ mirror_ dies. Hdev routine](/img/99/21c228ff5de46c4a42b60f989b10e8.jpg)
Shape template matching based on Halcon learning [vi] find_ mirror_ dies. Hdev routine

Significance and requirements of semiconductor particle control

生产中影响滑环质量的因素

Network communication process

A simple method to prove 1/t Fourier transform

Matlab2018b problem solving when installing embedded coder support package for stmicroelectronic

After installing the new version of keil5 or upgrading the JLINK firmware, you will always be prompted about the firmware update

Shell script basic syntax

UEFI development learning 2 - running ovmf in QEMU

Process communication mode between different hosts -- socket
随机推荐
Some tips for using source insight (solve the problem of selecting all)
Measurement fitting based on Halcon learning [i] fuse Hdev routine
IEEE access personal contribution experience record
C language uses arrays to realize the intersection, union, difference and complement of sets
1089 insert or merge, including test point 5
Gradle复合构建
如何将EasyCVR平台RTSP接入的设备数据迁移到EasyNVR中?
The research found that the cross-border e-commerce customer service system has these five functions!
Matlab2018b problem solving when installing embedded coder support package for stmicroelectronic
如何进行导电滑环选型
Markdown tips
Programming knowledge -- basis of C language
Global and Chinese market for blood typing 2022-2028: Research Report on technology, participants, trends, market size and share
Shape template matching based on Halcon learning [VII] reuse_ model. Hdev routine
How to realize audit trail in particle counter software
Temperature sensor DS18B20 principle, with STM32 routine code
A complete set of indicators for the 10000 class clean room of electronic semiconductors
Global and Chinese market of core pallets 2022-2028: Research Report on technology, participants, trends, market size and share
Win10 shortcut key
UEFI development learning 4 - getting to know variable services