mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-11 06:05:21 -05:00
Now handles both player/ and recorder/ directories
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2146 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
644e4ce792
commit
7f22b84793
1 changed files with 12 additions and 5 deletions
|
|
@ -19,6 +19,13 @@
|
||||||
|
|
||||||
APPDIR = ../../apps
|
APPDIR = ../../apps
|
||||||
RECDIR = $(APPDIR)/recorder
|
RECDIR = $(APPDIR)/recorder
|
||||||
|
PLAYDIR = $(APPDIR)/player
|
||||||
|
|
||||||
|
ifeq ($(DISPLAY),-DHAVE_LCD_BITMAP)
|
||||||
|
MACHINEDIR = $(RECDIR)
|
||||||
|
else
|
||||||
|
MACHINEDIR = $(PLAYDIR)
|
||||||
|
endif
|
||||||
|
|
||||||
PREVAPPDIR= ..
|
PREVAPPDIR= ..
|
||||||
FIRMWAREDIR = ../../firmware
|
FIRMWAREDIR = ../../firmware
|
||||||
|
|
@ -42,8 +49,8 @@ $(KEYPAD) $(DISPLAY) $(EXTRA_DEFINES)
|
||||||
LDFLAGS = -lX11 -lm -lXt -lXmu -lnsl
|
LDFLAGS = -lX11 -lm -lXt -lXmu -lnsl
|
||||||
|
|
||||||
# Use this for simulator-only files
|
# Use this for simulator-only files
|
||||||
INCLUDES = -I. -I$(DRIVERS) -I$(COMMON) -I$(FIRMWAREDIR) -I$(APPDIR) -I$(RECDIR) -I../common
|
INCLUDES = -I. -I$(DRIVERS) -I$(COMMON) -I$(FIRMWAREDIR) -I$(APPDIR) -I$(MACHINEDIR) -I../common
|
||||||
SRCDIRS = . $(DRIVERS) $(COMMON) $(FIRMWAREDIR) $(APPDIR) $(RECDIR)
|
SRCDIRS = . $(DRIVERS) $(COMMON) $(FIRMWAREDIR) $(APPDIR) $(MACHINEDIR)
|
||||||
|
|
||||||
# The true Rockbox Applications should use this include path:
|
# The true Rockbox Applications should use this include path:
|
||||||
APPINCLUDES = -I$(FIRMWAREDIR)/include $(INCLUDES)
|
APPINCLUDES = -I$(FIRMWAREDIR)/include $(INCLUDES)
|
||||||
|
|
@ -78,12 +85,12 @@ ifeq (LOADABLE_FONTS,$(findstring LOADABLE_FONTS, $(DEFINES)))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
APPS = main.c tree.c menu.c credits.c main_menu.c\
|
APPS = main.c tree.c menu.c credits.c main_menu.c\
|
||||||
playlist.c showtext.c wps.c wps-display.c settings.c status.c
|
playlist.c showtext.c wps.c wps-display.c settings.c status.c icons.c
|
||||||
|
|
||||||
MENUS = games_menu.c screensavers_menu.c settings_menu.c sound_menu.c
|
MENUS = games_menu.c screensavers_menu.c settings_menu.c sound_menu.c
|
||||||
|
|
||||||
ifeq ($(DISPLAY),-DHAVE_LCD_BITMAP)
|
ifeq ($(DISPLAY),-DHAVE_LCD_BITMAP)
|
||||||
APPS += tetris.c sokoban.c blank.c bounce.c boxes.c icons.c bmp.c \
|
APPS += tetris.c sokoban.c blank.c bounce.c boxes.c bmp.c \
|
||||||
widgets.c wormlet.c
|
widgets.c wormlet.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
@ -170,7 +177,7 @@ $(OBJDIR)/screensavers_menu.o: $(APPDIR)/screensavers_menu.c
|
||||||
$(OBJDIR)/settings_menu.o: $(APPDIR)/settings_menu.c
|
$(OBJDIR)/settings_menu.o: $(APPDIR)/settings_menu.c
|
||||||
$(CC) $(APPCFLAGS) -c $< -o $@
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
||||||
|
|
||||||
$(OBJDIR)/icons.o: $(RECDIR)/icons.c
|
$(OBJDIR)/icons.o: $(MACHINEDIR)/icons.c
|
||||||
$(CC) $(APPCFLAGS) -c $< -o $@
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
||||||
|
|
||||||
$(OBJDIR)/widgets.o: $(RECDIR)/widgets.c
|
$(OBJDIR)/widgets.o: $(RECDIR)/widgets.c
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue