2 Star 0 Fork 0

Kenneth-Lee-2012 / card24

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 592 Bytes
一键复制 编辑 原始数据 按行查看 历史
Kenneth Lee 提交于 2023-06-19 15:27 . refine Makefile
EXE=card24 card24_v2
CPPFLAGS=-Wall -O0 -g -gdwarf-2 -MMD
USE_FLOAT_VAL=no
VAL_O = value.o
ifeq ($(USE_FLOAT_VAL),yes)
CPPFLAGS+=-DUSE_FLOAT_VAL
VAL_O += float_val.o
else
VAL_O += ana_val.o
endif
all: $(EXE)
$(foreach exe,$(EXE),$(eval $(exe): $(exe:%=%.o) $(VAL_O)))
-include $(VAL_O:.o=.d)
test: card24
./card24 6 2 3
./card24 24 2 3 4 5
%: %.o
g++ $^ -o $@
clean:
rm -f *.o *.d $(EXE)
make -C ut clean
help:
@echo "make: build card24"
@echo "make clean: clean all"
@echo "make test: do system test"
@echo "make help: show this message"
.PHONY: clean test help all
C++
1
https://gitee.com/Kenneth-Lee-2012/card24.git
git@gitee.com:Kenneth-Lee-2012/card24.git
Kenneth-Lee-2012
card24
card24
master

搜索帮助