add BTA_modbusmeteo

This commit is contained in:
2022-06-08 17:02:43 +03:00
parent f870b4d036
commit db1c4eb8b6
15 changed files with 2156 additions and 0 deletions

23
BTA_modbusmeteo/Makefile Normal file
View File

@@ -0,0 +1,23 @@
PROGRAM = bta_meteo_modbus
LDFLAGS = -lcrypt
SRCS = $(wildcard *.c)
CC = gcc
DEFINES = -D_XOPEN_SOURCE=1111 -D_GNU_SOURCE
DEFINES += -DEBUG
CXX = gcc
CFLAGS = -std=gnu99 -Wall -Werror -Wextra $(DEFINES) -pthread
OBJS = $(SRCS:.c=.o)
all : $(PROGRAM)
$(PROGRAM) : $(OBJS)
$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) -o $(PROGRAM)
# some addition dependencies
# %.o: %.c
# $(CC) $(LDFLAGS) $(CFLAGS) $< -o $@
#$(SRCS) : %.c : %.h $(INDEPENDENT_HEADERS)
# @touch $@
clean:
/bin/rm -f *.o *~
depend:
$(CXX) -MM $(CXX.SRCS)