From 5d22e3cbdd251819a4d2d07b9a12994d5aef778d Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Fri, 29 Aug 2008 21:08:38 +0000 Subject: Add wpseditor, the Google Summer of Code 2008 project of Rostislav Chekan. Closes FS#9327 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18362 a1c6a512-1295-4272-9138-f99709370657 --- utils/wpseditor/libwps/Makefile | 100 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 utils/wpseditor/libwps/Makefile (limited to 'utils/wpseditor/libwps/Makefile') diff --git a/utils/wpseditor/libwps/Makefile b/utils/wpseditor/libwps/Makefile new file mode 100644 index 0000000000..3779a9ed30 --- /dev/null +++ b/utils/wpseditor/libwps/Makefile @@ -0,0 +1,100 @@ +# __________ __ ___. +# Open \______ \ ____ ____ | | _\_ |__ _______ ___ +# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / +# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < +# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ +# \/ \/ \/ \/ \/ +# $Id$ +# +ROOT=../../.. + +OS = w32 +CC = gcc +MKDIR = mkdir -p + +ifeq ($(findstring MINGW,$(shell uname)),MINGW) +OS = w32 +CC = mingw32-gcc +COPY = copy +RM = rm +endif + +ifeq ($(findstring Linux,$(shell uname)),Linux) +OS = linux +CC = gcc +COPY = cp +RM = rm -f +endif + + + +COMMON= \ + src/dummies.c \ + src/api.c \ + src/lcd.c \ + $(ROOT)/apps/gui/wps_parser.c \ + $(ROOT)/apps/gui/wps_debug.c \ + $(ROOT)/firmware/font.c \ + $(ROOT)/apps/misc.c \ + $(ROOT)/apps/gui/gwps-common.c \ + $(ROOT)/apps/status.c \ + $(ROOT)/apps/recorder/peakmeter.c \ + $(ROOT)/apps/recorder/icons.c \ + $(ROOT)/apps/gui/scrollbar.c \ + $(ROOT)/firmware/common/timefuncs.c \ + $(ROOT)/firmware/common/unicode.c \ + $(ROOT)/firmware/common/ctype.c \ + $(ROOT)/firmware/id3.c \ + $(ROOT)/firmware/font_cache.c \ + $(ROOT)/firmware/lru.c \ + $(ROOT)/firmware/mp3data.c \ + $(ROOT)/firmware/replaygain.c + +# $(ROOT)/apps/recorder/bmp.c +# $(ROOT)/apps/abrepeat.c \ +# $(ROOT)/apps/action.c \ +# $(ROOT)/apps/cuesheet.c \ +# $(ROOT)/apps/gui/statusbar.c \ +# $(ROOT)/apps/gui/gwps.c \ + +INCLUDE=-I src/include \ + -I $(ROOT)/apps/gui \ + -I $(ROOT)/firmware/export \ + -I $(ROOT)/firmware/include \ + -I $(ROOT)/apps/recorder \ + -I $(ROOT)/apps \ + -I src + +CFLAGS = -g -Wall -D__PCTOOL__ -DWPSEDITOR -DDEBUG -DROCKBOX_DIR_LEN=1 -DBUTTON_REMOTE + +all: + @echo To build, run the buildall.sh script + +build: build-$(OS) + +build-w32: src/proxy.c $(COMMON) + @echo CC [$(TARGET)] + @$(CC) $(INCLUDE) $(CFLAGS) -D$(TARGET) -DTARGET_MODEL=\"$(MODEL)\" -DBUILD_DLL $(COMMON) -shared src/proxy.c -o libwps_$(MODEL).dll + +build-linux: src/proxy.c $(COMMON) + @echo CC [$(TARGET)] + @$(CC) $(INCLUDE) $(CFLAGS) -D$(TARGET) -DTARGET_MODEL=\"$(MODEL)\" -shared -Wl,-soname,libwps_$(MODEL).so,-olibwps_$(MODEL).so -fPIC $(COMMON) src/proxy.c + +clean: clean-$(OS) + +clean-w32: + $(RM) "libwps_$(MODEL).dll" + +clean-linux: + $(RM) "libwps_$(MODEL).so.1" + +shared: shared-$(OS) + +shared-w32: src/proxy.c $(COMMON) + @echo CC [IRIVER_H10_5GB] + @$(CC) $(INCLUDE) $(CFLAGS) -DIRIVER_H10_5GB -DTARGET_MODEL=\"h10_5gb\" -DBUILD_DLL $(COMMON) -shared src/proxy.c -o ../gui/bin/libwps.dll + +shared-linux: src/proxy.c $(COMMON) + @echo CC [IRIVER_H10_5GB] + @$(CC) $(INCLUDE) $(CFLAGS) -DIRIVER_H10_5GB -DTARGET_MODEL=\"h10_5gb\" -shared -Wl,-soname,libwps.so,-olibwps.so -fPIC $(COMMON) src/proxy.c + @$(COPY) libwps.so ../gui/bin/libwps.so -- cgit v1.2.3