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 |