blob: ee1eee80ce92a7266da5ab9930a52f371e0db925 [file] [log] [blame]
Jeremy Kerr4cdc2002019-02-07 16:49:12 +08001
2CC = gcc
3AR = ar
4CFLAGS = -Wall -Wextra -Werror -ggdb
5CPPFLAGS = -DMCTP_LOG_STDERR -DMCTP_FILEIO -I$(LIBMCTP_DIR)
6
7LIBMCTP_DIR=./
8
9include Makefile.inc
10
11all: $(LIBMCTP)
12
13libmctp.a:
14 $(AR) rcsTPD $@ $^
15
16tests/%: tests/%.o libmctp.a
17 $(LINK.o) -o $@ $^
18
19clean:
20 rm -f $(LIBMCTP)
21 rm -f $(LIBMCTP_OBJS)
22 rm -f tests/*.o