setos

拙OS
Log | Files | Refs | LICENSE

Makefile (364B)


      1 CC = x86_64-w64-mingw32-gcc
      2 CFLAGS = -I ../../include \
      3 	-nostdlib -fpic -mno-red-zone -fno-stack-protector -static \
      4 	-fno-builtin -g -mabi=sysv \
      5 	-mno-stack-arg-probe -Wall -e EfiMain
      6 
      7 all: boot.efi
      8 
      9 boot.efi: boot.dll
     10 	objcopy --target=efi-app-x86_64 boot.dll $@
     11 
     12 boot.dll: boot.c utils.c
     13 	$(CC) $(CFLAGS) -o $@ boot.c utils.c
     14 
     15 clean:
     16 	rm -f boot.efi boot.dll