summaryrefslogtreecommitdiffstats
path: root/utils/wpseditor/libwps/Makefile
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2008-09-03 19:24:50 +0000
committerDominik Wenger <domonoky@googlemail.com>2008-09-03 19:24:50 +0000
commit254fa65c7b75f61147186d9f9146b89ee11b2b26 (patch)
treebb5355f04275394ebfd2aa200abc44b188c08df9 /utils/wpseditor/libwps/Makefile
parentca0de82cec434fcd4af827ff1a1d473667249338 (diff)
downloadrockbox-254fa65c7b75f61147186d9f9146b89ee11b2b26.tar.gz
rockbox-254fa65c7b75f61147186d9f9146b89ee11b2b26.zip
WpsEditor: commit FS#9344 by Rostislav Chekan - multitarget support (only colour targets for now)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18399 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/wpseditor/libwps/Makefile')
-rw-r--r--utils/wpseditor/libwps/Makefile55
1 files changed, 28 insertions, 27 deletions
diff --git a/utils/wpseditor/libwps/Makefile b/utils/wpseditor/libwps/Makefile
index 3779a9ed30..c5d0a39de1 100644
--- a/utils/wpseditor/libwps/Makefile
+++ b/utils/wpseditor/libwps/Makefile
@@ -13,39 +13,40 @@ CC = gcc
MKDIR = mkdir -p
ifeq ($(findstring MINGW,$(shell uname)),MINGW)
-OS = w32
-CC = mingw32-gcc
-COPY = copy
-RM = rm
+ 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
+ OS = linux
+ CC = gcc
+ COPY = cp
+ RM = rm -f
endif
-COMMON= \
- src/dummies.c \
+SOURCES= \
src/api.c \
+ src/dummies.c \
src/lcd.c \
+ src/proxy.c \
+ $(ROOT)/apps/gui/scrollbar.c \
+ $(ROOT)/apps/gui/gwps-common.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)/apps/misc.c \
+ $(ROOT)/apps/status.c \
+ $(ROOT)/firmware/common/ctype.c \
$(ROOT)/firmware/common/timefuncs.c \
$(ROOT)/firmware/common/unicode.c \
- $(ROOT)/firmware/common/ctype.c \
- $(ROOT)/firmware/id3.c \
+ $(ROOT)/firmware/font.c \
$(ROOT)/firmware/font_cache.c \
+ $(ROOT)/firmware/id3.c \
$(ROOT)/firmware/lru.c \
$(ROOT)/firmware/mp3data.c \
$(ROOT)/firmware/replaygain.c
@@ -72,13 +73,13 @@ all:
build: build-$(OS)
-build-w32: src/proxy.c $(COMMON)
+build-w32: $(SOURCES)
@echo CC [$(TARGET)]
- @$(CC) $(INCLUDE) $(CFLAGS) -D$(TARGET) -DTARGET_MODEL=\"$(MODEL)\" -DBUILD_DLL $(COMMON) -shared src/proxy.c -o libwps_$(MODEL).dll
+ @$(CC) $(INCLUDE) $(CFLAGS) -D$(TARGET) -DTARGET_MODEL=\"$(MODEL)\" -DBUILD_DLL $(SOURCES) -shared -o libwps_$(MODEL).dll
-build-linux: src/proxy.c $(COMMON)
+build-linux: $(SOURCES)
@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
+ @$(CC) $(INCLUDE) $(CFLAGS) -D$(TARGET) -DTARGET_MODEL=\"$(MODEL)\" -shared -Wl,-soname,libwps_$(MODEL).so,-olibwps_$(MODEL).so -fPIC $(SOURCES)
clean: clean-$(OS)
@@ -86,15 +87,15 @@ clean-w32:
$(RM) "libwps_$(MODEL).dll"
clean-linux:
- $(RM) "libwps_$(MODEL).so.1"
+ $(RM) "libwps_$(MODEL).so"
shared: shared-$(OS)
-shared-w32: src/proxy.c $(COMMON)
+shared-w32: $(SOURCES)
@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
+ @$(CC) $(INCLUDE) $(CFLAGS) -DIRIVER_H10_5GB -DTARGET_MODEL=\"h10_5gb\" -DBUILD_DLL -shared $(SOURCES) -o ../gui/bin/libwps_h10_5gb.dll
-shared-linux: src/proxy.c $(COMMON)
+shared-linux: $(SOURCES)
@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
+ @$(CC) $(INCLUDE) $(CFLAGS) -DIRIVER_H10_5GB -DTARGET_MODEL=\"h10_5gb\" -shared -Wl,-soname,libwps_h10_5gb.so,-olibwps_h10_5gb.so -fPIC $(SOURCES)
+ @$(COPY) libwps_h10_5gb.so ../gui/bin/libwps_h10_5gb.so