diff --git a/Graphics/3D/3D_Both_Screens/Makefile b/Graphics/3D/3D_Both_Screens/Makefile index cedceed..b5dcfd0 100644 --- a/Graphics/3D/3D_Both_Screens/Makefile +++ b/Graphics/3D/3D_Both_Screens/Makefile @@ -31,7 +31,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/3D/BoxTest/Makefile b/Graphics/3D/BoxTest/Makefile index 5c5ee02..e88c88a 100644 --- a/Graphics/3D/BoxTest/Makefile +++ b/Graphics/3D/BoxTest/Makefile @@ -31,7 +31,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/3D/Display_List/Makefile b/Graphics/3D/Display_List/Makefile index d61b3d3..3c62c30 100644 --- a/Graphics/3D/Display_List/Makefile +++ b/Graphics/3D/Display_List/Makefile @@ -29,7 +29,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/3D/Display_List_2/Makefile b/Graphics/3D/Display_List_2/Makefile index 5416e1d..20feb04 100644 --- a/Graphics/3D/Display_List_2/Makefile +++ b/Graphics/3D/Display_List_2/Makefile @@ -43,7 +43,7 @@ GAME_SUBTITLE2 := http://devitpro.org ARCH := -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s CFLAGS := -g -Wall -O3\ - $(ARCH) $(INCLUDE) -DARM9 + $(ARCH) $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) @@ -217,4 +217,4 @@ $(GAME_ICON): $(notdir $(ICON)) #--------------------------------------------------------------------------------------- endif -#--------------------------------------------------------------------------------------- \ No newline at end of file +#--------------------------------------------------------------------------------------- diff --git a/Graphics/3D/Env_Mapping/Makefile b/Graphics/3D/Env_Mapping/Makefile index f865eff..79b7741 100644 --- a/Graphics/3D/Env_Mapping/Makefile +++ b/Graphics/3D/Env_Mapping/Makefile @@ -38,7 +38,7 @@ NITRO := ARCH := -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s CFLAGS := -g -Wall -O3\ - $(ARCH) $(INCLUDE) -DARM9 + $(ARCH) $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) @@ -212,4 +212,4 @@ $(GAME_ICON): $(notdir $(ICON)) #--------------------------------------------------------------------------------------- endif -#--------------------------------------------------------------------------------------- \ No newline at end of file +#--------------------------------------------------------------------------------------- diff --git a/Graphics/3D/Mixed_Text_3D/Makefile b/Graphics/3D/Mixed_Text_3D/Makefile index 7fc9ff7..50e4785 100644 --- a/Graphics/3D/Mixed_Text_3D/Makefile +++ b/Graphics/3D/Mixed_Text_3D/Makefile @@ -30,7 +30,7 @@ CFLAGS := -g -Wall -O2 \ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/3D/Ortho/Makefile b/Graphics/3D/Ortho/Makefile index c72315f..ed62902 100644 --- a/Graphics/3D/Ortho/Makefile +++ b/Graphics/3D/Ortho/Makefile @@ -38,7 +38,7 @@ NITRO := ARCH := -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s CFLAGS := -g -Wall -O3\ - $(ARCH) $(INCLUDE) -DARM9 + $(ARCH) $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) @@ -218,4 +218,4 @@ $(GAME_ICON): $(notdir $(ICON)) #--------------------------------------------------------------------------------------- endif -#--------------------------------------------------------------------------------------- \ No newline at end of file +#--------------------------------------------------------------------------------------- diff --git a/Graphics/3D/Paletted_Cube/Makefile b/Graphics/3D/Paletted_Cube/Makefile index c6b89d9..30726b3 100644 --- a/Graphics/3D/Paletted_Cube/Makefile +++ b/Graphics/3D/Paletted_Cube/Makefile @@ -38,7 +38,7 @@ NITRO := ARCH := -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s CFLAGS := -g -Wall -O3\ - $(ARCH) $(INCLUDE) -DARM9 + $(ARCH) $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) @@ -218,4 +218,4 @@ $(GAME_ICON): $(notdir $(ICON)) #--------------------------------------------------------------------------------------- endif -#--------------------------------------------------------------------------------------- \ No newline at end of file +#--------------------------------------------------------------------------------------- diff --git a/Graphics/3D/Picking/Makefile b/Graphics/3D/Picking/Makefile index c72315f..ed62902 100644 --- a/Graphics/3D/Picking/Makefile +++ b/Graphics/3D/Picking/Makefile @@ -38,7 +38,7 @@ NITRO := ARCH := -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s CFLAGS := -g -Wall -O3\ - $(ARCH) $(INCLUDE) -DARM9 + $(ARCH) $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) @@ -218,4 +218,4 @@ $(GAME_ICON): $(notdir $(ICON)) #--------------------------------------------------------------------------------------- endif -#--------------------------------------------------------------------------------------- \ No newline at end of file +#--------------------------------------------------------------------------------------- diff --git a/Graphics/3D/Simple_Quad/Makefile b/Graphics/3D/Simple_Quad/Makefile index 6b5f2e2..292faad 100644 --- a/Graphics/3D/Simple_Quad/Makefile +++ b/Graphics/3D/Simple_Quad/Makefile @@ -30,7 +30,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/3D/Simple_Tri/Makefile b/Graphics/3D/Simple_Tri/Makefile index 6b5f2e2..292faad 100644 --- a/Graphics/3D/Simple_Tri/Makefile +++ b/Graphics/3D/Simple_Tri/Makefile @@ -30,7 +30,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/3D/Textured_Cube/Makefile b/Graphics/3D/Textured_Cube/Makefile index c72315f..ed62902 100644 --- a/Graphics/3D/Textured_Cube/Makefile +++ b/Graphics/3D/Textured_Cube/Makefile @@ -38,7 +38,7 @@ NITRO := ARCH := -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s CFLAGS := -g -Wall -O3\ - $(ARCH) $(INCLUDE) -DARM9 + $(ARCH) $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) @@ -218,4 +218,4 @@ $(GAME_ICON): $(notdir $(ICON)) #--------------------------------------------------------------------------------------- endif -#--------------------------------------------------------------------------------------- \ No newline at end of file +#--------------------------------------------------------------------------------------- diff --git a/Graphics/3D/Textured_Quad/Makefile b/Graphics/3D/Textured_Quad/Makefile index c72315f..ed62902 100644 --- a/Graphics/3D/Textured_Quad/Makefile +++ b/Graphics/3D/Textured_Quad/Makefile @@ -38,7 +38,7 @@ NITRO := ARCH := -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s CFLAGS := -g -Wall -O3\ - $(ARCH) $(INCLUDE) -DARM9 + $(ARCH) $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) @@ -218,4 +218,4 @@ $(GAME_ICON): $(notdir $(ICON)) #--------------------------------------------------------------------------------------- endif -#--------------------------------------------------------------------------------------- \ No newline at end of file +#--------------------------------------------------------------------------------------- diff --git a/Graphics/3D/Toon_Shading/Makefile b/Graphics/3D/Toon_Shading/Makefile index c72315f..ed62902 100644 --- a/Graphics/3D/Toon_Shading/Makefile +++ b/Graphics/3D/Toon_Shading/Makefile @@ -38,7 +38,7 @@ NITRO := ARCH := -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s CFLAGS := -g -Wall -O3\ - $(ARCH) $(INCLUDE) -DARM9 + $(ARCH) $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) @@ -218,4 +218,4 @@ $(GAME_ICON): $(notdir $(ICON)) #--------------------------------------------------------------------------------------- endif -#--------------------------------------------------------------------------------------- \ No newline at end of file +#--------------------------------------------------------------------------------------- diff --git a/Graphics/3D/nehe/lesson01/Makefile b/Graphics/3D/nehe/lesson01/Makefile index 6b5f2e2..292faad 100644 --- a/Graphics/3D/nehe/lesson01/Makefile +++ b/Graphics/3D/nehe/lesson01/Makefile @@ -30,7 +30,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/3D/nehe/lesson02/Makefile b/Graphics/3D/nehe/lesson02/Makefile index 6b5f2e2..292faad 100644 --- a/Graphics/3D/nehe/lesson02/Makefile +++ b/Graphics/3D/nehe/lesson02/Makefile @@ -30,7 +30,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/3D/nehe/lesson03/Makefile b/Graphics/3D/nehe/lesson03/Makefile index 6b5f2e2..292faad 100644 --- a/Graphics/3D/nehe/lesson03/Makefile +++ b/Graphics/3D/nehe/lesson03/Makefile @@ -30,7 +30,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/3D/nehe/lesson04/Makefile b/Graphics/3D/nehe/lesson04/Makefile index 6b5f2e2..292faad 100644 --- a/Graphics/3D/nehe/lesson04/Makefile +++ b/Graphics/3D/nehe/lesson04/Makefile @@ -30,7 +30,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/3D/nehe/lesson05/Makefile b/Graphics/3D/nehe/lesson05/Makefile index 6b5f2e2..292faad 100644 --- a/Graphics/3D/nehe/lesson05/Makefile +++ b/Graphics/3D/nehe/lesson05/Makefile @@ -30,7 +30,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/3D/nehe/lesson06/Makefile b/Graphics/3D/nehe/lesson06/Makefile index c72315f..ed62902 100644 --- a/Graphics/3D/nehe/lesson06/Makefile +++ b/Graphics/3D/nehe/lesson06/Makefile @@ -38,7 +38,7 @@ NITRO := ARCH := -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s CFLAGS := -g -Wall -O3\ - $(ARCH) $(INCLUDE) -DARM9 + $(ARCH) $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) @@ -218,4 +218,4 @@ $(GAME_ICON): $(notdir $(ICON)) #--------------------------------------------------------------------------------------- endif -#--------------------------------------------------------------------------------------- \ No newline at end of file +#--------------------------------------------------------------------------------------- diff --git a/Graphics/3D/nehe/lesson07/Makefile b/Graphics/3D/nehe/lesson07/Makefile index c72315f..ed62902 100644 --- a/Graphics/3D/nehe/lesson07/Makefile +++ b/Graphics/3D/nehe/lesson07/Makefile @@ -38,7 +38,7 @@ NITRO := ARCH := -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s CFLAGS := -g -Wall -O3\ - $(ARCH) $(INCLUDE) -DARM9 + $(ARCH) $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) @@ -218,4 +218,4 @@ $(GAME_ICON): $(notdir $(ICON)) #--------------------------------------------------------------------------------------- endif -#--------------------------------------------------------------------------------------- \ No newline at end of file +#--------------------------------------------------------------------------------------- diff --git a/Graphics/3D/nehe/lesson08/Makefile b/Graphics/3D/nehe/lesson08/Makefile index c72315f..ed62902 100644 --- a/Graphics/3D/nehe/lesson08/Makefile +++ b/Graphics/3D/nehe/lesson08/Makefile @@ -38,7 +38,7 @@ NITRO := ARCH := -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s CFLAGS := -g -Wall -O3\ - $(ARCH) $(INCLUDE) -DARM9 + $(ARCH) $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) @@ -218,4 +218,4 @@ $(GAME_ICON): $(notdir $(ICON)) #--------------------------------------------------------------------------------------- endif -#--------------------------------------------------------------------------------------- \ No newline at end of file +#--------------------------------------------------------------------------------------- diff --git a/Graphics/3D/nehe/lesson09/Makefile b/Graphics/3D/nehe/lesson09/Makefile index c72315f..ed62902 100644 --- a/Graphics/3D/nehe/lesson09/Makefile +++ b/Graphics/3D/nehe/lesson09/Makefile @@ -38,7 +38,7 @@ NITRO := ARCH := -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s CFLAGS := -g -Wall -O3\ - $(ARCH) $(INCLUDE) -DARM9 + $(ARCH) $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) @@ -218,4 +218,4 @@ $(GAME_ICON): $(notdir $(ICON)) #--------------------------------------------------------------------------------------- endif -#--------------------------------------------------------------------------------------- \ No newline at end of file +#--------------------------------------------------------------------------------------- diff --git a/Graphics/3D/nehe/lesson10/Makefile b/Graphics/3D/nehe/lesson10/Makefile index a3d852d..8461a94 100644 --- a/Graphics/3D/nehe/lesson10/Makefile +++ b/Graphics/3D/nehe/lesson10/Makefile @@ -38,7 +38,7 @@ NITRO := ARCH := -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s CFLAGS := -g -Wall -O3\ - $(ARCH) $(INCLUDE) -DARM9 + $(ARCH) $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) @@ -224,4 +224,4 @@ $(GAME_ICON): $(notdir $(ICON)) #--------------------------------------------------------------------------------------- endif -#--------------------------------------------------------------------------------------- \ No newline at end of file +#--------------------------------------------------------------------------------------- diff --git a/Graphics/3D/nehe/lesson10b/Makefile b/Graphics/3D/nehe/lesson10b/Makefile index a3d852d..8461a94 100644 --- a/Graphics/3D/nehe/lesson10b/Makefile +++ b/Graphics/3D/nehe/lesson10b/Makefile @@ -38,7 +38,7 @@ NITRO := ARCH := -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s CFLAGS := -g -Wall -O3\ - $(ARCH) $(INCLUDE) -DARM9 + $(ARCH) $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) @@ -224,4 +224,4 @@ $(GAME_ICON): $(notdir $(ICON)) #--------------------------------------------------------------------------------------- endif -#--------------------------------------------------------------------------------------- \ No newline at end of file +#--------------------------------------------------------------------------------------- diff --git a/Graphics/3D/nehe/lesson11/Makefile b/Graphics/3D/nehe/lesson11/Makefile index c72315f..ed62902 100644 --- a/Graphics/3D/nehe/lesson11/Makefile +++ b/Graphics/3D/nehe/lesson11/Makefile @@ -38,7 +38,7 @@ NITRO := ARCH := -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s CFLAGS := -g -Wall -O3\ - $(ARCH) $(INCLUDE) -DARM9 + $(ARCH) $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) @@ -218,4 +218,4 @@ $(GAME_ICON): $(notdir $(ICON)) #--------------------------------------------------------------------------------------- endif -#--------------------------------------------------------------------------------------- \ No newline at end of file +#--------------------------------------------------------------------------------------- diff --git a/Graphics/Backgrounds/16bit_color_bmp/Makefile b/Graphics/Backgrounds/16bit_color_bmp/Makefile index 4580c87..a23d05e 100644 --- a/Graphics/Backgrounds/16bit_color_bmp/Makefile +++ b/Graphics/Backgrounds/16bit_color_bmp/Makefile @@ -33,7 +33,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/Backgrounds/256_color_bmp/Makefile b/Graphics/Backgrounds/256_color_bmp/Makefile index 5452820..bae2471 100644 --- a/Graphics/Backgrounds/256_color_bmp/Makefile +++ b/Graphics/Backgrounds/256_color_bmp/Makefile @@ -31,7 +31,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/Backgrounds/Double_Buffer/Makefile b/Graphics/Backgrounds/Double_Buffer/Makefile index 6b5f2e2..292faad 100644 --- a/Graphics/Backgrounds/Double_Buffer/Makefile +++ b/Graphics/Backgrounds/Double_Buffer/Makefile @@ -30,7 +30,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/Backgrounds/all_in_one/Makefile b/Graphics/Backgrounds/all_in_one/Makefile index 738b7c4..d76a5fe 100644 --- a/Graphics/Backgrounds/all_in_one/Makefile +++ b/Graphics/Backgrounds/all_in_one/Makefile @@ -37,7 +37,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 -DDEBUG +CFLAGS += $(INCLUDE) -DARM9 -DDEBUG -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/Backgrounds/rotation/Makefile b/Graphics/Backgrounds/rotation/Makefile index e68cafd..b9c5082 100644 --- a/Graphics/Backgrounds/rotation/Makefile +++ b/Graphics/Backgrounds/rotation/Makefile @@ -43,7 +43,7 @@ GAME_SUBTITLE2 := http://devitpro.org ARCH := -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s CFLAGS := -g -Wall -O3\ - $(ARCH) $(INCLUDE) -DARM9 + $(ARCH) $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) @@ -217,4 +217,4 @@ $(GAME_ICON): $(notdir $(ICON)) #--------------------------------------------------------------------------------------- endif -#--------------------------------------------------------------------------------------- \ No newline at end of file +#--------------------------------------------------------------------------------------- diff --git a/Graphics/Effects/windows/Makefile b/Graphics/Effects/windows/Makefile index c4f5d03..8c598e2 100644 --- a/Graphics/Effects/windows/Makefile +++ b/Graphics/Effects/windows/Makefile @@ -33,7 +33,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/Ext_Palettes/backgrounds/Makefile b/Graphics/Ext_Palettes/backgrounds/Makefile index f42ba40..3173aff 100644 --- a/Graphics/Ext_Palettes/backgrounds/Makefile +++ b/Graphics/Ext_Palettes/backgrounds/Makefile @@ -45,7 +45,7 @@ ARCH := -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s CFLAGS := -g -Wall -O2\ -fomit-frame-pointer\ -ffast-math\ - $(ARCH) $(INCLUDE) -DARM9 + $(ARCH) $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) diff --git a/Graphics/Printing/ansi_console/Makefile b/Graphics/Printing/ansi_console/Makefile index a085fd4..9df794a 100644 --- a/Graphics/Printing/ansi_console/Makefile +++ b/Graphics/Printing/ansi_console/Makefile @@ -29,7 +29,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/Printing/console_windows/Makefile b/Graphics/Printing/console_windows/Makefile index cedceed..b5dcfd0 100644 --- a/Graphics/Printing/console_windows/Makefile +++ b/Graphics/Printing/console_windows/Makefile @@ -31,7 +31,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/Printing/custom_font/Makefile b/Graphics/Printing/custom_font/Makefile index af192e4..f9bbd79 100644 --- a/Graphics/Printing/custom_font/Makefile +++ b/Graphics/Printing/custom_font/Makefile @@ -37,7 +37,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/Printing/print_both_screens/Makefile b/Graphics/Printing/print_both_screens/Makefile index 3d3e967..b04d5e8 100644 --- a/Graphics/Printing/print_both_screens/Makefile +++ b/Graphics/Printing/print_both_screens/Makefile @@ -31,7 +31,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/Printing/rotscale_text/Makefile b/Graphics/Printing/rotscale_text/Makefile index af192e4..f9bbd79 100644 --- a/Graphics/Printing/rotscale_text/Makefile +++ b/Graphics/Printing/rotscale_text/Makefile @@ -37,7 +37,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/Sprites/allocation_test/Makefile b/Graphics/Sprites/allocation_test/Makefile index af192e4..f9bbd79 100644 --- a/Graphics/Sprites/allocation_test/Makefile +++ b/Graphics/Sprites/allocation_test/Makefile @@ -37,7 +37,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/Sprites/animate_simple/Makefile b/Graphics/Sprites/animate_simple/Makefile index 824c9bb..e1bec92 100644 --- a/Graphics/Sprites/animate_simple/Makefile +++ b/Graphics/Sprites/animate_simple/Makefile @@ -32,7 +32,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/Sprites/bitmap_sprites/Makefile b/Graphics/Sprites/bitmap_sprites/Makefile index c4d279e..4109ab9 100644 --- a/Graphics/Sprites/bitmap_sprites/Makefile +++ b/Graphics/Sprites/bitmap_sprites/Makefile @@ -30,7 +30,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/Sprites/fire_and_sprites/Makefile b/Graphics/Sprites/fire_and_sprites/Makefile index c72315f..ed62902 100644 --- a/Graphics/Sprites/fire_and_sprites/Makefile +++ b/Graphics/Sprites/fire_and_sprites/Makefile @@ -38,7 +38,7 @@ NITRO := ARCH := -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s CFLAGS := -g -Wall -O3\ - $(ARCH) $(INCLUDE) -DARM9 + $(ARCH) $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) @@ -218,4 +218,4 @@ $(GAME_ICON): $(notdir $(ICON)) #--------------------------------------------------------------------------------------- endif -#--------------------------------------------------------------------------------------- \ No newline at end of file +#--------------------------------------------------------------------------------------- diff --git a/Graphics/Sprites/simple/Makefile b/Graphics/Sprites/simple/Makefile index 59228d8..f312cb7 100644 --- a/Graphics/Sprites/simple/Makefile +++ b/Graphics/Sprites/simple/Makefile @@ -37,7 +37,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/Sprites/sprite_extended_palettes/Makefile b/Graphics/Sprites/sprite_extended_palettes/Makefile index cedceed..b5dcfd0 100644 --- a/Graphics/Sprites/sprite_extended_palettes/Makefile +++ b/Graphics/Sprites/sprite_extended_palettes/Makefile @@ -31,7 +31,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/Sprites/sprite_rotate/Makefile b/Graphics/Sprites/sprite_rotate/Makefile index cedceed..b5dcfd0 100644 --- a/Graphics/Sprites/sprite_rotate/Makefile +++ b/Graphics/Sprites/sprite_rotate/Makefile @@ -31,7 +31,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/capture/ScreenShot/Makefile b/Graphics/capture/ScreenShot/Makefile index 4de9001..933dce6 100644 --- a/Graphics/capture/ScreenShot/Makefile +++ b/Graphics/capture/ScreenShot/Makefile @@ -30,7 +30,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) ASFLAGS := -g $(ARCH) -march=armv5te -mtune=arm946e-s diff --git a/Graphics/gl2d/2Dplus3D/Makefile b/Graphics/gl2d/2Dplus3D/Makefile index a4fedf5..943c7ba 100644 --- a/Graphics/gl2d/2Dplus3D/Makefile +++ b/Graphics/gl2d/2Dplus3D/Makefile @@ -36,7 +36,7 @@ CFLAGS := -g -Wall -O2\ -march=armv5te -mtune=arm946e-s \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/gl2d/dual_screen/Makefile b/Graphics/gl2d/dual_screen/Makefile index a4fedf5..943c7ba 100644 --- a/Graphics/gl2d/dual_screen/Makefile +++ b/Graphics/gl2d/dual_screen/Makefile @@ -36,7 +36,7 @@ CFLAGS := -g -Wall -O2\ -march=armv5te -mtune=arm946e-s \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/gl2d/fonts/Makefile b/Graphics/gl2d/fonts/Makefile index a4fedf5..943c7ba 100644 --- a/Graphics/gl2d/fonts/Makefile +++ b/Graphics/gl2d/fonts/Makefile @@ -36,7 +36,7 @@ CFLAGS := -g -Wall -O2\ -march=armv5te -mtune=arm946e-s \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/gl2d/primitives/Makefile b/Graphics/gl2d/primitives/Makefile index a4fedf5..943c7ba 100644 --- a/Graphics/gl2d/primitives/Makefile +++ b/Graphics/gl2d/primitives/Makefile @@ -36,7 +36,7 @@ CFLAGS := -g -Wall -O2\ -march=armv5te -mtune=arm946e-s \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/gl2d/scrolling/Makefile b/Graphics/gl2d/scrolling/Makefile index a4fedf5..943c7ba 100644 --- a/Graphics/gl2d/scrolling/Makefile +++ b/Graphics/gl2d/scrolling/Makefile @@ -36,7 +36,7 @@ CFLAGS := -g -Wall -O2\ -march=armv5te -mtune=arm946e-s \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/gl2d/sprites/Makefile b/Graphics/gl2d/sprites/Makefile index a4fedf5..943c7ba 100644 --- a/Graphics/gl2d/sprites/Makefile +++ b/Graphics/gl2d/sprites/Makefile @@ -36,7 +36,7 @@ CFLAGS := -g -Wall -O2\ -march=armv5te -mtune=arm946e-s \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/Graphics/grit/256colorTilemap/Makefile b/Graphics/grit/256colorTilemap/Makefile index 256a03a..4024a6a 100644 --- a/Graphics/grit/256colorTilemap/Makefile +++ b/Graphics/grit/256colorTilemap/Makefile @@ -38,7 +38,7 @@ NITRO := ARCH := -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s CFLAGS := -g -Wall -O3\ - $(ARCH) $(INCLUDE) -DARM9 + $(ARCH) $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) @@ -204,4 +204,4 @@ $(GAME_ICON): $(notdir $(ICON)) #--------------------------------------------------------------------------------------- endif -#--------------------------------------------------------------------------------------- \ No newline at end of file +#--------------------------------------------------------------------------------------- diff --git a/audio/maxmod/audio_modes/Makefile b/audio/maxmod/audio_modes/Makefile index c06a982..1428ea7 100644 --- a/audio/maxmod/audio_modes/Makefile +++ b/audio/maxmod/audio_modes/Makefile @@ -36,7 +36,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/audio/maxmod/basic_sound/Makefile b/audio/maxmod/basic_sound/Makefile index 526e292..1fea092 100644 --- a/audio/maxmod/basic_sound/Makefile +++ b/audio/maxmod/basic_sound/Makefile @@ -36,7 +36,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/audio/maxmod/reverb/Makefile b/audio/maxmod/reverb/Makefile index c06a982..1428ea7 100644 --- a/audio/maxmod/reverb/Makefile +++ b/audio/maxmod/reverb/Makefile @@ -36,7 +36,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/audio/maxmod/song_events_example/Makefile b/audio/maxmod/song_events_example/Makefile index cba6125..8effe59 100644 --- a/audio/maxmod/song_events_example/Makefile +++ b/audio/maxmod/song_events_example/Makefile @@ -38,7 +38,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/audio/maxmod/song_events_example2/Makefile b/audio/maxmod/song_events_example2/Makefile index fa581e1..297b253 100644 --- a/audio/maxmod/song_events_example2/Makefile +++ b/audio/maxmod/song_events_example2/Makefile @@ -37,7 +37,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/audio/maxmod/streaming/Makefile b/audio/maxmod/streaming/Makefile index 43a10b0..f1356a6 100644 --- a/audio/maxmod/streaming/Makefile +++ b/audio/maxmod/streaming/Makefile @@ -36,7 +36,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/audio/micrecord/Makefile b/audio/micrecord/Makefile index 0d74eed..ec236cc 100644 --- a/audio/micrecord/Makefile +++ b/audio/micrecord/Makefile @@ -31,7 +31,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/card/eeprom/Makefile b/card/eeprom/Makefile index cedceed..b5dcfd0 100644 --- a/card/eeprom/Makefile +++ b/card/eeprom/Makefile @@ -31,7 +31,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/debugging/exceptionTest/Makefile b/debugging/exceptionTest/Makefile index 0715bae..0e31d4e 100644 --- a/debugging/exceptionTest/Makefile +++ b/debugging/exceptionTest/Makefile @@ -32,7 +32,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) ASFLAGS := -g $(ARCH) -march=armv5te -mtune=arm946e-s diff --git a/ds_motion/Makefile b/ds_motion/Makefile index 7a932e9..ed4dbde 100644 --- a/ds_motion/Makefile +++ b/ds_motion/Makefile @@ -31,7 +31,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/dswifi/ap_search/Makefile b/dswifi/ap_search/Makefile index 69deb5e..1ce276b 100644 --- a/dswifi/ap_search/Makefile +++ b/dswifi/ap_search/Makefile @@ -31,7 +31,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/dswifi/autoconnect/Makefile b/dswifi/autoconnect/Makefile index 795006b..319b257 100644 --- a/dswifi/autoconnect/Makefile +++ b/dswifi/autoconnect/Makefile @@ -31,7 +31,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/dswifi/httpget/Makefile b/dswifi/httpget/Makefile index 69deb5e..1ce276b 100644 --- a/dswifi/httpget/Makefile +++ b/dswifi/httpget/Makefile @@ -31,7 +31,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/filesystem/libfat/libfatdir/Makefile b/filesystem/libfat/libfatdir/Makefile index 40cc84e..6c51c8d 100644 --- a/filesystem/libfat/libfatdir/Makefile +++ b/filesystem/libfat/libfatdir/Makefile @@ -31,7 +31,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/filesystem/nitrofs/nitrodir/Makefile b/filesystem/nitrofs/nitrodir/Makefile index 512c88f..febea2c 100644 --- a/filesystem/nitrofs/nitrodir/Makefile +++ b/filesystem/nitrofs/nitrodir/Makefile @@ -32,7 +32,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/hello_world/Makefile b/hello_world/Makefile index 3ad623b..d7a82fe 100644 --- a/hello_world/Makefile +++ b/hello_world/Makefile @@ -29,7 +29,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/input/Touch_Pad/touch_area/Makefile b/input/Touch_Pad/touch_area/Makefile index cedceed..b5dcfd0 100644 --- a/input/Touch_Pad/touch_area/Makefile +++ b/input/Touch_Pad/touch_area/Makefile @@ -31,7 +31,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/input/Touch_Pad/touch_look/Makefile b/input/Touch_Pad/touch_look/Makefile index a3d852d..8461a94 100644 --- a/input/Touch_Pad/touch_look/Makefile +++ b/input/Touch_Pad/touch_look/Makefile @@ -38,7 +38,7 @@ NITRO := ARCH := -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s CFLAGS := -g -Wall -O3\ - $(ARCH) $(INCLUDE) -DARM9 + $(ARCH) $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) @@ -224,4 +224,4 @@ $(GAME_ICON): $(notdir $(ICON)) #--------------------------------------------------------------------------------------- endif -#--------------------------------------------------------------------------------------- \ No newline at end of file +#--------------------------------------------------------------------------------------- diff --git a/input/Touch_Pad/touch_test/Makefile b/input/Touch_Pad/touch_test/Makefile index 729f0c6..5bf2940 100644 --- a/input/Touch_Pad/touch_test/Makefile +++ b/input/Touch_Pad/touch_test/Makefile @@ -43,7 +43,7 @@ GAME_SUBTITLE2 := http://devitpro.org ARCH := -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s CFLAGS := -g -Wall -O3\ - $(ARCH) $(INCLUDE) -DARM9 + $(ARCH) $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) @@ -217,4 +217,4 @@ $(GAME_ICON): $(notdir $(ICON)) #--------------------------------------------------------------------------------------- endif -#--------------------------------------------------------------------------------------- \ No newline at end of file +#--------------------------------------------------------------------------------------- diff --git a/input/addon/Makefile b/input/addon/Makefile index 01d69b2..39dbedf 100644 --- a/input/addon/Makefile +++ b/input/addon/Makefile @@ -37,7 +37,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/input/keyboard/keyboard_async/Makefile b/input/keyboard/keyboard_async/Makefile index 0070ddf..7941d59 100644 --- a/input/keyboard/keyboard_async/Makefile +++ b/input/keyboard/keyboard_async/Makefile @@ -31,7 +31,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/input/keyboard/keyboard_stdin/Makefile b/input/keyboard/keyboard_stdin/Makefile index 01d69b2..39dbedf 100644 --- a/input/keyboard/keyboard_stdin/Makefile +++ b/input/keyboard/keyboard_stdin/Makefile @@ -37,7 +37,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/templates/arm9/Makefile b/templates/arm9/Makefile index cd019f6..f20e715 100644 --- a/templates/arm9/Makefile +++ b/templates/arm9/Makefile @@ -43,7 +43,7 @@ NITRO := ARCH := -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s CFLAGS := -g -Wall -O3\ - $(ARCH) $(INCLUDE) -DARM9 + $(ARCH) $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) @@ -217,4 +217,4 @@ $(GAME_ICON): $(notdir $(ICON)) #--------------------------------------------------------------------------------------- endif -#--------------------------------------------------------------------------------------- \ No newline at end of file +#--------------------------------------------------------------------------------------- diff --git a/templates/arm9lib/Makefile b/templates/arm9lib/Makefile index 5f96070..ed01737 100644 --- a/templates/arm9lib/Makefile +++ b/templates/arm9lib/Makefile @@ -31,7 +31,7 @@ CFLAGS := -g -Wall -O2\ -fomit-frame-pointer -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) -march=armv5te -mtune=arm946e-s diff --git a/templates/combined/arm7/Makefile b/templates/combined/arm7/Makefile index 253d378..3cf0f73 100644 --- a/templates/combined/arm7/Makefile +++ b/templates/combined/arm7/Makefile @@ -25,7 +25,7 @@ DATA := ARCH := -mthumb-interwork CFLAGS := -g -Wall -O3\ - $(ARCH) $(INCLUDE) -DARM7 + $(ARCH) $(INCLUDE) -DARM7 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm7.specs -g $(ARCH) -Wl,--nmagic -Wl,-Map,$(notdir $*).map diff --git a/templates/combined/arm9/Makefile b/templates/combined/arm9/Makefile index a99425f..75b3d1f 100644 --- a/templates/combined/arm9/Makefile +++ b/templates/combined/arm9/Makefile @@ -27,7 +27,7 @@ GRAPHICS := ARCH := -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s CFLAGS := -g -Wall -O3\ - $(ARCH) $(INCLUDE) -DARM9 + $(ARCH) $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) diff --git a/templates/dldi/Makefile b/templates/dldi/Makefile index cb469ee..26f31ed 100644 --- a/templates/dldi/Makefile +++ b/templates/dldi/Makefile @@ -33,7 +33,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM7 -fPIC +CFLAGS += $(INCLUDE) -DARM7 -fPIC -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions diff --git a/templates/dldi/source/iointerface.c b/templates/dldi/source/iointerface.c index c25a218..7167c9c 100644 --- a/templates/dldi/source/iointerface.c +++ b/templates/dldi/source/iointerface.c @@ -23,18 +23,7 @@ */ -// When compiling for NDS, make sure NDS is defined -#ifndef NDS - #if defined ARM9 || defined ARM7 - #define NDS - #endif -#endif - -#ifdef NDS - #include -#else - #include "gba_types.h" -#endif +#include #define BYTES_PER_READ 512 diff --git a/time/RealTimeClock/Makefile b/time/RealTimeClock/Makefile index 5c5ee02..e88c88a 100644 --- a/time/RealTimeClock/Makefile +++ b/time/RealTimeClock/Makefile @@ -31,7 +31,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/time/stopwatch/Makefile b/time/stopwatch/Makefile index 5c5ee02..e88c88a 100644 --- a/time/stopwatch/Makefile +++ b/time/stopwatch/Makefile @@ -31,7 +31,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/time/timercallback/Makefile b/time/timercallback/Makefile index 5c5ee02..e88c88a 100644 --- a/time/timercallback/Makefile +++ b/time/timercallback/Makefile @@ -31,7 +31,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) diff --git a/userfifo/arm7/Makefile b/userfifo/arm7/Makefile index 6284db7..7fe6f3d 100644 --- a/userfifo/arm7/Makefile +++ b/userfifo/arm7/Makefile @@ -29,7 +29,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM7 +CFLAGS += $(INCLUDE) -DARM7 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -fno-rtti diff --git a/userfifo/arm9/Makefile b/userfifo/arm9/Makefile index 0e4fbdf..a6ca21f 100644 --- a/userfifo/arm9/Makefile +++ b/userfifo/arm9/Makefile @@ -30,7 +30,7 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -D__NDS__ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) -march=armv5te -mtune=arm946e-s