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