diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2007-06-23 15:41:30 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2007-06-23 15:41:30 +0000 |
commit | 8b27d2cfd25ada09e665ee71ff8e77b3664e8b8a (patch) | |
tree | 934bdd1a2ee9feb1d35a781b322e26300c9a2450 /rbutil/icons/Makefile | |
parent | 8d7ce65075053a15088dc343a961ced4a99e6531 (diff) | |
download | rockbox-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/Makefile | 39 |
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 | # | ||
9 | CC = gcc | ||
10 | CXX = $(shell $(PREFIX)wx-config --version=2.8 --cxx) | ||
11 | INC = `$(PREFIX)wx-config --version=2.8 --cxxflags` | ||
12 | LIBS = `$(PREFIX)wx-config --version=2.8 --libs` | ||
13 | |||
14 | CFLAGS = -Wall -Wundef -DRBUTIL -D_LARGEFILE64_SOURCE | ||
15 | ICONS := $(wildcard *.png) | ||
16 | HEADERS := $(subst .png,.h,$(ICONS)) | ||
17 | OBJS := $(subst .png,.o,$(ICONS)) | ||
18 | CXXSOURCES = $(subst .png,.cpp,$(ICONS)) | ||
19 | SILENT = @ | ||
20 | BIN2C = ./bin2c | ||
21 | |||
22 | all: $(OBJS) | ||
23 | |||
24 | |||
25 | bin2c: 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 | |||
37 | clean: | ||
38 | $(SILENT) echo cleaning icons. | ||
39 | $(SILENT) rm -f bin2c $(OBJS) $(HEADERS) $(CXXSOURCES) | ||