2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
11 ifneq ($or($(findstring MINGW
,$(shell uname
)),$(findstring Windows_NT
,$(OS
))),)
15 COPY_TO
= ..
\\gui
\\bin
21 ifeq ($(findstring Linux
,$(shell uname
)),Linux
)
57 $(ROOT
)/apps
/gui
/scrollbar.c \
58 $(ROOT
)/apps
/gui
/music_screen.c \
59 $(ROOT
)/apps
/gui
/wps_engine
/wps_display.c \
60 $(ROOT
)/apps
/gui
/wps_engine
/wps_tokens.c \
61 $(ROOT
)/apps
/gui
/wps_engine
/wps_parser.c \
62 $(ROOT
)/apps
/gui
/wps_parser
/wps_debug.c \
63 $(ROOT
)/apps
/recorder
/peakmeter.c \
64 $(ROOT
)/apps
/recorder
/icons.c \
66 $(ROOT
)/apps
/status.c \
67 $(ROOT
)/firmware
/common
/ctype.c \
68 $(ROOT
)/firmware
/common
/timefuncs.c \
69 $(ROOT
)/firmware
/common
/unicode.c \
70 $(ROOT
)/firmware
/font.c \
71 $(ROOT
)/firmware
/font_cache.c \
72 $(ROOT
)/firmware
/id3.c \
73 $(ROOT
)/firmware
/lru.c \
74 $(ROOT
)/firmware
/mp3data.c \
75 $(ROOT
)/firmware
/replaygain.c
76 # $(ROOT)/apps/recorder/bmp.c
77 # $(ROOT)/apps/abrepeat.c \
78 # $(ROOT)/apps/action.c \
79 # $(ROOT)/apps/cuesheet.c \
80 # $(ROOT)/apps/gui/statusbar.c \
81 # $(ROOT)/apps/gui/gwps.c \
83 INCLUDE
=-I src
/include \
85 -I
$(ROOT
)/firmware
/export \
86 -I
$(ROOT
)/firmware
/include \
87 -I
$(ROOT
)/apps
/recorder \
91 CFLAGS
= -g
-Wall
-Wno-format
-D__PCTOOL__
-DWPSEDITOR
-DDEBUG
-DROCKBOX_DIR_LEN
=1 -DBUTTON_REMOTE
93 RESULTS
:= $(patsubst %,libwps_
%$(EXT
),$(TARGETS
))
97 libwps_
%$(EXT
): $(SOURCES
)
98 @echo CC
[$(subst libwps_
,,$(subst $(EXT
),,$@
))]
99 @
$(CC
) $(INCLUDE
) $(CFLAGS
) -D
$(subst libwps_
,,$(subst $(EXT
),,$@
)) $(LDFLAGS
) -shared
-o
$@
$+
100 @
$(COPY
) $@
$(COPY_TO
)