blob: 86b6c2fdea47f241a5a32c55644a68030dd43e19 [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
Jeremy Kerrbd4e3622019-03-13 15:20:42 +080016utils/%: utils/%.o libmctp.a
Jeremy Kerr4cdc2002019-02-07 16:49:12 +080017 $(LINK.o) -o $@ $^
18
19clean:
20 rm -f $(LIBMCTP)
21 rm -f $(LIBMCTP_OBJS)
22 rm -f tests/*.o