summaryrefslogtreecommitdiff
path: root/rbutil/icons/Makefile
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2007-06-23 15:41:30 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2007-06-23 15:41:30 +0000
commit8b27d2cfd25ada09e665ee71ff8e77b3664e8b8a (patch)
tree934bdd1a2ee9feb1d35a781b322e26300c9a2450 /rbutil/icons/Makefile
parent8d7ce65075053a15088dc343a961ced4a99e6531 (diff)
downloadrockbox-8b27d2cfd25ada09e665ee71ff8e77b3664e8b8a.tar.gz
rockbox-8b27d2cfd25ada09e665ee71ff8e77b3664e8b8a.zip
Adjust the rbutil unix-style Makefile to the new icons.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13693 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/icons/Makefile')
-rw-r--r--rbutil/icons/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/rbutil/icons/Makefile b/rbutil/icons/Makefile
new file mode 100644
index 0000000000..8eb630f427
--- /dev/null
+++ b/rbutil/icons/Makefile
@@ -0,0 +1,39 @@
1# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6# \/ \/ \/ \/ \/
7# $Id$
8#
9CC = gcc
10CXX = $(shell $(PREFIX)wx-config --version=2.8 --cxx)
11INC = `$(PREFIX)wx-config --version=2.8 --cxxflags`
12LIBS = `$(PREFIX)wx-config --version=2.8 --libs`
13
14CFLAGS = -Wall -Wundef -DRBUTIL -D_LARGEFILE64_SOURCE
15ICONS := $(wildcard *.png)
16HEADERS := $(subst .png,.h,$(ICONS))
17OBJS := $(subst .png,.o,$(ICONS))
18CXXSOURCES = $(subst .png,.cpp,$(ICONS))
19SILENT = @
20BIN2C = ./bin2c
21
22all: $(OBJS)
23
24
25bin2c: bin2c.c
26 $(SILENT) echo CC $<
27 $(SILENT) $(CC) -o $@ $<
28
29%.cpp: %.png bin2c
30 $(SILENT) echo BIN2C $<
31 $(SILENT) $(BIN2C) $<
32
33%.o: %.cpp
34 $(SILENT) echo CXX $<
35 $(SILENT) $(CXX) $(CFLAGS) $(INC) -c -o $@ $<
36
37clean:
38 $(SILENT) echo cleaning icons.
39 $(SILENT) rm -f bin2c $(OBJS) $(HEADERS) $(CXXSOURCES)