-SUBDIRS = include host external source patch loader bits
+SUBDIRS = include host external boot patch loader bits
ACLOCAL_AMFLAGS = -I m4
-source: include host external patch
+boot: include host external patch
external: include host
@echo "Please don't call the install target directly, it doesn't work."
@exit 1
-all-local: external loader source bits
+all-local: external loader boot bits
mkdir -p out
mkdir -p out@prefix@
mkdir -p out@libdir@/module
mkdir -p out@libexecdir@
mkdir -p out@sysconfdir@
mkdir -p out@localstatedir@
- cp source/corbenik.bin out/arm9loaderhax.bin
- cp source/corbenik out/corbenik.elf
- cp external/loader/loader.cxi out@libdir@/module/native/loader.cxi
- cp external/bits/*.bin out@libexecdir@/
+ cp boot/corbenik.bin out/arm9loaderhax.bin
+ cp boot/corbenik out/corbenik.elf
+ cp loader/loader.cxi out@libdir@/module/native/loader.cxi
+ cp bits/*.bin out@libexecdir@/
cp host/termfont.bin out@datarootdir@/
cp patch/*.vco out@sbindir@
cp external/contrib_patch/*.vco out@bindir@
-fomit-frame-pointer -ffunction-sections -fdata-sections -fshort-wchar \
$(ARCH)
-CFLAGS += $(INCLUDE) -DARM11 -D_3DS -DLOADER=1 -I../../../include $(PATHARGS)
+CFLAGS += $(INCLUDE) -DARM11 -D_3DS -DLOADER=1 -I../../include $(PATHARGS)
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu99
# list of directories containing libraries, this must be the top level containing
# include and lib
#---------------------------------------------------------------------------------
-LIBDIRS := $(CURDIR)/../ctrulib/libctru
+LIBDIRS := $(CURDIR)/../external/ctrulib/libctru
#---------------------------------------------------------------------------------
+++ /dev/null
-// This is a thin shim used to set the right parameters and include the interpreter from toplevel code.
-#include <3ds.h>
-#include <stdlib.h>
-#include "patcher.h"
-#include <string.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include "memory.h"
-#include "logger.h"
-
-#ifndef PATH_MAX
-#define PATH_MAX 255
-#define _MAX_LFN 255
-#endif
-#include <option.h>
-#include <structures.h>
-
-// Yes, we're including a C file. Problem?
-#include "../../../source/interpreter.c"
-