Skip to content

Commit

Permalink
3ds: explicitly exclude music/gfx instead of add
Browse files Browse the repository at this point in the history
  • Loading branch information
vgmoose committed Jun 12, 2024
1 parent ce3f288 commit 7cbed99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
3 changes: 3 additions & 0 deletions helpers/Makefile.3ds
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ BUILD := build_3ds

NO_SMDH := 1 # idk how this broke

# remove some libs/flags not used yet on 3DS
LIBS := $(filter-out -lSDL2_gfx -lSDL2_mixer,$(LIBS))
CFLAGS := $(filter-out -DMUSIC,$(CFLAGS))

#---------------------------------------------------------------------------------
ifneq ($(BUILD),$(notdir $(CURDIR)))
Expand Down
11 changes: 5 additions & 6 deletions helpers/Makefile.sdl2
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ ifeq (pc,$(MAKECMDGOALS))
endif
endif

LIBS += -lSDL2_ttf -lSDL2_image -lmpg123 -lSDL2 -lSDL2main -lfreetype -lpng -lbz2 -ljpeg -lz
CFLAGS += -DSDL2
LIBS += -lSDL2_ttf -lSDL2_image -lSDL2_gfx -lSDL2_mixer -lmpg123 -lSDL2 -lSDL2main -lfreetype -lpng -lbz2 -ljpeg -lz
CFLAGS += -DSDL2 -DMUSIC

ifneq (3ds,$(MAKECMDGOALS))
CFLAGS += -DMUSIC
LIBS += -lSDL2_gfx -lSDL2_mixer
endif
$(info MAKECMDGOALS: $(MAKECMDGOALS))
$(info CFLAGS: $(CFLAGS))
$(info LIBS: $(LIBS))

0 comments on commit 7cbed99

Please sign in to comment.