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_OBJDIR = $(BUILDDIR)/apps/plugins/puzzles
|
||||
|
||||
PUZZLES_SHARED_SRC := $(call preprocess, $(PUZZLES_SRCDIR)/SOURCES)
|
||||
PUZZLES_SHARED_OBJ := $(call c2obj, $(PUZZLES_SHARED_SRC))
|
||||
PUZZLES_SHARED_SRC = $(call preprocess, $(PUZZLES_SRCDIR)/SOURCES)
|
||||
PUZZLES_SHARED_OBJ = $(call c2obj, $(PUZZLES_SHARED_SRC))
|
||||
|
||||
PUZZLES_GAMES_SRC := $(call preprocess, $(PUZZLES_SRCDIR)/SOURCES.games)
|
||||
PUZZLES_GAMES_OBJ := $(call c2obj, $(PUZZLES_GAMES_SRC))
|
||||
PUZZLES_GAMES_SRC = $(call preprocess, $(PUZZLES_SRCDIR)/SOURCES.games)
|
||||
PUZZLES_GAMES_OBJ = $(call c2obj, $(PUZZLES_GAMES_SRC))
|
||||
|
||||
PUZZLES_SRC := $(PUZZLES_GAMES_SRC) $(PUZZLES_SHARED_SRC)
|
||||
PUZZLES_OBJ := $(call c2obj, $(PUZZLES_SRC))
|
||||
PUZZLES_SRC = $(PUZZLES_GAMES_SRC) $(PUZZLES_SHARED_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)
|
||||
ROCKS += $(PUZZLES_ROCKS)
|
||||
|
||||
PUZZLES_OPTIMIZE := -O2
|
||||
PUZZLES_OPTIMIZE = -O2
|
||||
|
||||
ifeq ($(MODELNAME), sansac200v2)
|
||||
PUZZLES_OPTIMIZE := -Os # tiny plugin buffer
|
||||
PUZZLES_OPTIMIZE = -Os # tiny plugin buffer
|
||||
endif
|
||||
|
||||
# we suppress all warnings
|
||||
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 \
|
||||
-DFOR_REAL -I$(PUZZLES_SRCDIR)/src -I$(PUZZLES_SRCDIR) -include \
|
||||
$(PUZZLES_SRCDIR)/rbcompat.h
|
||||
|
|
Loading…
Reference in a new issue