加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
NMakefile 984 Bytes
一键复制 编辑 原始数据 按行查看 历史
10km 提交于 2022-02-26 14:53 . add conana support
# Specify compiler
CC=cl.exe /D WIN32 /D _WINDOWS /I . /I ./src
.PHONY : all
all : regex.lib regex_d.lib regex_mt.lib regex_mt_d.lib
regex.lib : src/regex.c
$(CC) /c /MD /O2 src/regex.c
lib regex.obj
regex_d.lib : src/regex.c
$(CC) /c /MDd /D DEBUG src/regex.c
lib /OUT:regex_d.lib regex.obj
regex_mt.lib : src/regex.c
$(CC) /c /MT /O2 src/regex.c
lib /OUT:regex_mt.lib regex.obj
regex_mt_d.lib : src/regex.c
$(CC) /c /MTd /D DEBUG src/regex.c
lib /OUT:regex_mt_d.lib regex.obj
test1:test_package/src/regex_test.c regex.lib
$(CC) /MD /wd4819 test_package/src/regex_test.c regex.lib
regex_test.exe
test2:test_package/src/gnuregex_test.c regex.lib
$(CC) /MD /wd4819 test_package/src/gnuregex_test.c regex.lib
gnuregex_test.exe
# test rx_serach
test3:test_package/src/rx_search_test.c regex.lib
$(CC) /MD /wd4819 test_package/src/rx_search_test.c regex.lib
rx_search_test.exe
test:test1 test2 test3
clean:
del *.obj 2>nul
del *.lib 2>nul
del *.exe 2>nul
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化