加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 841 Bytes
一键复制 编辑 原始数据 按行查看 历史
louis_sun 提交于 2021-12-11 14:38 . serial_and_plot
CUR_DIR=.
DEMO_DIR=${CUR_DIR}
SRC_DIR=${CUR_DIR}/src
INC_DIR= -I${CUR_DIR}/include
USER_SRC = $(wildcard ${DEMO_DIR}/*.cpp) \
SRC = ${SRC_DIR}/SerialPortInfo.cpp \
${SRC_DIR}/SerialPortInfoBase.cpp \
${SRC_DIR}/SerialPortInfoWinBase.cpp \
${SRC_DIR}/SerialPort.cpp \
${SRC_DIR}/SerialPortBase.cpp \
${SRC_DIR}/SerialPortWinBase.cpp \
OBJ = ${SRC} ${USER_SRC}
TARGET=SerialPort
CC=g++
# include header
CCFLAGS += ${INC_DIR}
# pthread support
CCFLAGS += -lpthread
CCFLAGS += -lsetupapi
${TARGET}: ${OBJ}
${CC} ${OBJ} ${CCFLAGS} -o ${TARGET}
@echo "Compile done."
print:
$(info $(INC_DIR_T1))
run:
${CC} ${OBJ} ${CCFLAGS} -o ${TARGET}
@echo "Compile done."
./SerialPort.exe
clean:
@rm -f *~ *.out
@echo "Clean tempreator files done."
@rm -f ${TARGET}
@echo "Clean target files done."
@echo "Clean done."
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化