blob: ee1eee80ce92a7266da5ab9930a52f371e0db925 [file] [log] [blame]
CC = gcc
AR = ar
CFLAGS = -Wall -Wextra -Werror -ggdb
CPPFLAGS = -DMCTP_LOG_STDERR -DMCTP_FILEIO -I$(LIBMCTP_DIR)
LIBMCTP_DIR=./
include Makefile.inc
all: $(LIBMCTP)
libmctp.a:
$(AR) rcsTPD $@ $^
tests/%: tests/%.o libmctp.a
$(LINK.o) -o $@ $^
clean:
rm -f $(LIBMCTP)
rm -f $(LIBMCTP_OBJS)
rm -f tests/*.o