2 Star 1 Fork 1

lindabell / AT-commander

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 776 Bytes
一键复制 编辑 原始数据 按行查看 历史
CC = g++
INCLUDES = -I. -Iatcommander
CFLAGS = $(INCLUDES) -c -w -Wall -Werror -g -ggdb
LDFLAGS =
LDLIBS = -lcheck
TEST_DIR = tests
# Guard against \r\n line endings only in Cygwin
OSTYPE := $(shell uname)
ifneq ($(OSTYPE),Darwin)
OSTYPE := $(shell uname -o)
ifeq ($(OSTYPE),Cygwin)
TEST_SET_OPTS = igncr
endif
endif
SRC = $(wildcard atcommander/*.c)
OBJS = $(SRC:.c=.o)
TEST_SRC = $(wildcard $(TEST_DIR)/*.c)
TEST_OBJS = $(TEST_SRC:.c=.o)
all: $(OBJS)
test: $(TEST_DIR)/tests.bin
@set -o $(TEST_SET_OPTS) >/dev/null 2>&1
@export SHELLOPTS
@sh runtests.sh $(TEST_DIR)
$(TEST_DIR)/tests.bin: $(TEST_OBJS) $(OBJS)
@mkdir -p $(dir $@)
$(CC) $(LDFLAGS) $(CC_SYMBOLS) $(INCLUDES) -o $@ $^ $(LDLIBS)
clean:
rm -rf atcommander/*.o $(TEST_DIR)/*.o $(TEST_DIR)/*.bin
C
1
https://gitee.com/lindabell/AT-commander.git
git@gitee.com:lindabell/AT-commander.git
lindabell
AT-commander
AT-commander
master

搜索帮助