2 Star 2 Fork 2

Zephyr RTOS/canopennode

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
Martin Wagner 提交于 2019-12-18 08:19 . Fix: makefile missed timer compile
# Makefile for CANopenNode, basic compile with no CAN device.
STACKDRV_SRC = stack/drvTemplate
STACK_SRC = stack
CANOPEN_SRC = .
APPL_SRC = example
LINK_TARGET = canopennode
INCLUDE_DIRS = -I$(STACKDRV_SRC) \
-I$(STACK_SRC) \
-I$(CANOPEN_SRC) \
-I$(APPL_SRC)
SOURCES = $(STACKDRV_SRC)/CO_driver.c \
$(STACKDRV_SRC)/eeprom.c \
$(STACK_SRC)/crc16-ccitt.c \
$(STACK_SRC)/CO_SDO.c \
$(STACK_SRC)/CO_Emergency.c \
$(STACK_SRC)/CO_NMT_Heartbeat.c \
$(STACK_SRC)/CO_SYNC.c \
$(STACK_SRC)/CO_TIME.c \
$(STACK_SRC)/CO_PDO.c \
$(STACK_SRC)/CO_HBconsumer.c \
$(STACK_SRC)/CO_SDOmaster.c \
$(STACK_SRC)/CO_LSSmaster.c \
$(STACK_SRC)/CO_LSSslave.c \
$(STACK_SRC)/CO_trace.c \
$(CANOPEN_SRC)/CANopen.c \
$(APPL_SRC)/CO_OD.c \
$(APPL_SRC)/main.c
OBJS = $(SOURCES:%.c=%.o)
CC = gcc
CFLAGS = -Wall $(INCLUDE_DIRS)
LDFLAGS =
.PHONY: all clean
all: clean $(LINK_TARGET)
clean:
rm -f $(OBJS) $(LINK_TARGET)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
$(LINK_TARGET): $(OBJS)
$(CC) $(LDFLAGS) $^ -o $@
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zephyr-rtos/canopennode.git
[email protected]:zephyr-rtos/canopennode.git
zephyr-rtos
canopennode
canopennode
zephyr

搜索帮助