9 Star 63 Fork 4

RubyMetric / chsrc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 915 Bytes
一键复制 编辑 原始数据 按行查看 历史
ccmywish 提交于 2024-06-05 15:35 . Update Makefile
# ---------------------------------------------------------------
# File : Makefile
# License : GPLv3
# Authors : Aoran Zeng <ccmywish@qq.com>
# Created on : <2023-08-28>
# Last modified : <2024-06-05>
# ---------------------------------------------------------------
CFLAGS = -Iinclude # -Wall
# 只有Windows会定义该变量
ifeq ($(OS), Windows_NT)
CLANG_FLAGS = -Target x86_64-pc-windows-gnu
endif
ifeq ($(CC), clang)
CFLAGS += $(CLANG_FLAGS)
endif
ifeq ($(shell uname), Linux)
CFLAGS += -static
endif
Target = chsrc
CI_Build_Name = chsrc
#=======================
all:
@$(CC) src/chsrc.c $(CFLAGS) -o $(Target)
@echo; echo Compile done using \'$(CC)\' $(CFLAGS)
CI: all
@mv $(Target) $(CI_Build_Name)
test: $(Target)
@perl ./test/cli.pl
test-xy:
@$(CC) test/xy.c $(CFLAGS) -o xy
@./xy
clean:
-@rm *.exe 2>/dev/null
-@rm xy 2>/dev/null
-@rm chsrc 2>/dev/null
C
1
https://gitee.com/RubyMetric/chsrc.git
git@gitee.com:RubyMetric/chsrc.git
RubyMetric
chsrc
chsrc
main

搜索帮助