summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorNathan Ringo <nathan@remexre.com>2024-11-18 00:34:23 -0600
committerNathan Ringo <nathan@remexre.com>2024-11-18 00:34:23 -0600
commit943a6597b2bcd1b3ed208458a5cba61ad5b4051c (patch)
treed0acf34996941417aca241f5f01e399aaa90af39 /src/Makefile
parent57331ba9756df043b5c665aa4952a0a7b38799e5 (diff)
...
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Makefile b/src/Makefile
index 432b331..07f1cb5 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -12,7 +12,7 @@ LDFLAGS =
CC = $(DEVKITPRO)/devkitARM/bin/arm-none-eabi-gcc
-CFLAGS_AUTO = -D__3DS__ -ffunction-sections -flto -g -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -mword-relocations -Og -std=c11 -Wall -Werror=implicit-function-declaration
+CFLAGS_AUTO = -D__3DS__ -ffunction-sections -flto -g -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -mword-relocations -O3 -std=c11 -Wall -Werror=implicit-function-declaration
LDFLAGS_AUTO = -L$(DEVKITPRO)/libctru/lib -specs=3dsx.specs
LDLIBS_AUTO = -lctru -lm
@@ -38,9 +38,7 @@ all: imb3.3dsx
imb3.3dsx: imb3.elf
3dsxtool $< $@
-imb3.elf: $(OBJS) obj/gc/gc.o
- $(CC) $(CFLAGS_ALL) $(LDFLAGS_ALL) -o $@ $^ $(LDLIBS_ALL)
-imb3-debug.elf: $(OBJS) obj/gc/gc-debug.o
+imb3.elf: $(OBJS) obj/gc/gc.o obj/platform/3ds.o
$(CC) $(CFLAGS_ALL) $(LDFLAGS_ALL) -o $@ $^ $(LDLIBS_ALL)
obj/%.o: $(srcdir)/%.c