esp32-lora/test/lora32/components/esp32-uart-cmdr/Makefile
2018-07-28 13:49:13 -07:00

18 lines
579 B
Makefile

CC=gcc
src := $(wildcard *.c) test/test.c main/cmdr.c
obj = $(src:.c=.o)
CFLAGS=-I. -Iinclude -std=gnu99 -Og -ggdb -Wall -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-old-style-declaration
LDFLAGS = -Wno-error=unused-but-set-variable -lcheck -lsubunit -pthread -pthread -lrt -lm -lsubunit -ggdb -Og
all: tst
test.o:
$(CC) -o $@ *.o $(CFLAGS) $(LDFLAGS)
tst: $(obj)
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
.PHONY: clean
clean:
rm -f $(obj) tst