1CFLAGS += -fshort-wchar 2 3efi := y$(shell rm -f disabled) 4efi := $(if $(efi),$(shell $(CC) $(filter-out $(CFLAGS-y) .%.d,$(CFLAGS)) -c check.c 2>disabled && echo y)) 5efi := $(if $(efi),$(shell $(LD) -mi386pep --subsystem=10 -o check.efi check.o 2>disabled && echo y)) 6efi := $(if $(efi),$(shell rm disabled)y) 7 8%.o: %.ihex 9 $(OBJCOPY) -I ihex -O binary $< $@ 10 11boot.init.o: buildid.o 12 13obj-y := stub.o 14obj-$(efi) := boot.init.o compat.o relocs-dummy.o runtime.o 15extra-$(efi) += buildid.o 16nogcov-$(efi) += stub.o 17