diff --git a/Makefile b/Makefile index 701fbf1..d7d59dc 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ include $(DEVKITARM)/gba_rules # the makefile is found # #--------------------------------------------------------------------------------- -TARGET := $(notdir $(CURDIR)) +TARGET := ezkernel BUILD := build SOURCES := source source/ff13b INCLUDES := include source/ff13b @@ -65,7 +65,7 @@ LIBDIRS := $(LIBGBA) ifneq ($(BUILDDIR), $(CURDIR)) #--------------------------------------------------------------------------------- - + export OUTPUT := $(CURDIR)/$(TARGET) export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \ @@ -122,7 +122,7 @@ $(BUILD): #--------------------------------------------------------------------------------- clean: @echo clean ... - @rm -fr $(BUILD) $(TARGET).elf $(TARGET).gba + @rm -fr $(BUILD) $(TARGET).elf $(TARGET).gba $(TARGET).bin #--------------------------------------------------------------------------------- @@ -132,6 +132,11 @@ else # main targets #--------------------------------------------------------------------------------- +all : $(OUTPUT).bin + +$(OUTPUT).bin : $(OUTPUT).gba + cp $< $@ + $(OUTPUT).gba : $(OUTPUT).elf $(OUTPUT).elf : $(OFILES) @@ -158,8 +163,6 @@ soundbank.bin soundbank.h : $(AUDIOFILES) @echo $(notdir $<) @$(bin2o) - - -include $(DEPSDIR)/*.d #--------------------------------------------------------------------------------------- diff --git a/README.md b/README.md index f600e75..e59a196 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,12 @@ -#EZ-FLASH OMEGA Kernel +# EZ-FLASH OMEGA Kernel -### How to build +## How to build - 1.We use devkitARM_r47, you can use the current version or newer. - 2.Set the following environment variables in system, or modify the value in build.bat, based on your installation path - - PATH,DEVKITARM,DEVKITPRO,LIBGBA +1. We use devkitARM_r47. You can use the current version or newer. +2. Set the following environment variables in system, or modify the value in `build.bat` (if you use Windows), based on your installation path. - 3.Double click on build.bat under winodws. If it goes well, you will get ezkernel.gba - 4.Rename the ezkernel.gba to ezkernel.bin, that is the omega kernel upgrade file \ No newline at end of file +``` +PATH,DEVKITARM,DEVKITPRO,LIBGBA +``` + +3. Double click on `build.bat` under Windows (or run make if you use Linux). If it goes well, you will get `ezkernel.gba` and, `ezkernel.bin`, which is the omega kernel upgrade file. diff --git a/source/draw.c b/source/draw.c index a30718c..eea55a8 100644 --- a/source/draw.c +++ b/source/draw.c @@ -5,7 +5,7 @@ #include -#include "hzk12.h" +#include "HZK12.h" #include "asc126.h" @@ -226,4 +226,4 @@ void ShowbootProgress(char *str) u8 str_len = strlen(str); Clear(60,160-15,120,15,gl_color_cheat_black,1); DrawHZText12(str,0,(240-str_len*6)/2,160-15,gl_color_text,1); -} \ No newline at end of file +}