git commit -m "first commit for v2"

This commit is contained in:
2025-12-29 16:21:22 +07:00
commit aa3d832d5c
1807 changed files with 307078 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
# Makefile for CANopenCommand.
APPL_SRC = .
LINK_TARGET = cocomm
INCLUDE_DIRS = -I$(APPL_SRC)
SOURCES = $(APPL_SRC)/cocomm.c
OBJS = $(SOURCES:%.c=%.o)
CC ?= gcc
OPT = -g
#OPT = -g -pedantic -Wshadow -fanalyzer
CFLAGS = -Wall $(OPT) $(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 $@