wolfBoot/tools/check_config/Makefile

24 lines
396 B
Makefile

# Configuration values: see tools/config.mk
-include ../../.config
include ../config.mk
include ../../options.mk
HOSTCC?=gcc
CFLAGS+=-I. -I../../ -I../../include
.PHONY: run clean
run:
$(Q)$(RM) check_config.o
$(Q)$(MAKE) check_config
check_config: check_config.o
$(Q)$(HOSTCC) -o $@ $^ $(CFLAGS)
$(Q)./$@
%.o:%.c
$(Q)$(HOSTCC) -c -o $@ $^ $(CFLAGS)
clean:
$(Q)rm -f check_config *.o