mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
puzzles: fix optimization flags
Change-Id: Ib0524fd4594e9524612eca0da54b3d13dc79b22c
This commit is contained in:
parent
4bc3bfe612
commit
f15c117a8f
1 changed files with 10 additions and 10 deletions
|
|
@ -10,29 +10,29 @@
|
||||||
PUZZLES_SRCDIR = $(APPSDIR)/plugins/puzzles
|
PUZZLES_SRCDIR = $(APPSDIR)/plugins/puzzles
|
||||||
PUZZLES_OBJDIR = $(BUILDDIR)/apps/plugins/puzzles
|
PUZZLES_OBJDIR = $(BUILDDIR)/apps/plugins/puzzles
|
||||||
|
|
||||||
PUZZLES_SHARED_SRC := $(call preprocess, $(PUZZLES_SRCDIR)/SOURCES)
|
PUZZLES_SHARED_SRC = $(call preprocess, $(PUZZLES_SRCDIR)/SOURCES)
|
||||||
PUZZLES_SHARED_OBJ := $(call c2obj, $(PUZZLES_SHARED_SRC))
|
PUZZLES_SHARED_OBJ = $(call c2obj, $(PUZZLES_SHARED_SRC))
|
||||||
|
|
||||||
PUZZLES_GAMES_SRC := $(call preprocess, $(PUZZLES_SRCDIR)/SOURCES.games)
|
PUZZLES_GAMES_SRC = $(call preprocess, $(PUZZLES_SRCDIR)/SOURCES.games)
|
||||||
PUZZLES_GAMES_OBJ := $(call c2obj, $(PUZZLES_GAMES_SRC))
|
PUZZLES_GAMES_OBJ = $(call c2obj, $(PUZZLES_GAMES_SRC))
|
||||||
|
|
||||||
PUZZLES_SRC := $(PUZZLES_GAMES_SRC) $(PUZZLES_SHARED_SRC)
|
PUZZLES_SRC = $(PUZZLES_GAMES_SRC) $(PUZZLES_SHARED_SRC)
|
||||||
PUZZLES_OBJ := $(call c2obj, $(PUZZLES_SRC))
|
PUZZLES_OBJ = $(call c2obj, $(PUZZLES_SRC))
|
||||||
|
|
||||||
PUZZLES_ROCKS := $(addprefix $(PUZZLES_OBJDIR)/sgt-, $(notdir $(PUZZLES_GAMES_SRC:.c=.rock)))
|
PUZZLES_ROCKS = $(addprefix $(PUZZLES_OBJDIR)/sgt-, $(notdir $(PUZZLES_GAMES_SRC:.c=.rock)))
|
||||||
|
|
||||||
OTHER_SRC += $(PUZZLES_SRC)
|
OTHER_SRC += $(PUZZLES_SRC)
|
||||||
ROCKS += $(PUZZLES_ROCKS)
|
ROCKS += $(PUZZLES_ROCKS)
|
||||||
|
|
||||||
PUZZLES_OPTIMIZE := -O2
|
PUZZLES_OPTIMIZE = -O2
|
||||||
|
|
||||||
ifeq ($(MODELNAME), sansac200v2)
|
ifeq ($(MODELNAME), sansac200v2)
|
||||||
PUZZLES_OPTIMIZE := -Os # tiny plugin buffer
|
PUZZLES_OPTIMIZE = -Os # tiny plugin buffer
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# we suppress all warnings
|
# we suppress all warnings
|
||||||
PUZZLESFLAGS = -I$(PUZZLES_SRCDIR)/dummy \
|
PUZZLESFLAGS = -I$(PUZZLES_SRCDIR)/dummy \
|
||||||
$(filter-out -O%,$(PLUGINFLAGS)) $(PUZZLESOPTIMIZE) \
|
$(filter-out -O%,$(PLUGINFLAGS)) $(PUZZLES_OPTIMIZE) \
|
||||||
-Wno-unused-parameter -Wno-sign-compare -Wno-strict-aliasing -w \
|
-Wno-unused-parameter -Wno-sign-compare -Wno-strict-aliasing -w \
|
||||||
-DFOR_REAL -I$(PUZZLES_SRCDIR)/src -I$(PUZZLES_SRCDIR) -include \
|
-DFOR_REAL -I$(PUZZLES_SRCDIR)/src -I$(PUZZLES_SRCDIR) -include \
|
||||||
$(PUZZLES_SRCDIR)/rbcompat.h
|
$(PUZZLES_SRCDIR)/rbcompat.h
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue