diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-09-26 20:00:26 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-09-26 20:00:26 +0000 |
commit | ccc5f4c4e1687cd7cf515f26da0f5ab918090736 (patch) | |
tree | 91590f59c9e31cb55df44debec8d7e5309fde880 | |
parent | 01b36e889c9980cf80362ea83924d97d71b66d19 (diff) | |
download | rockbox-ccc5f4c4e1687cd7cf515f26da0f5ab918090736.tar.gz rockbox-ccc5f4c4e1687cd7cf515f26da0f5ab918090736.zip |
Replace bootloader object rules with suffix rules.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30607 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | rbutil/ipodpatcher/Makefile | 36 |
1 files changed, 10 insertions, 26 deletions
diff --git a/rbutil/ipodpatcher/Makefile b/rbutil/ipodpatcher/Makefile index 7c203a94aa..a1420db766 100644 --- a/rbutil/ipodpatcher/Makefile +++ b/rbutil/ipodpatcher/Makefile | |||
@@ -10,6 +10,10 @@ BOOT_H = ipod1g2g.h ipod3g.h ipod4g.h ipodcolor.h ipodmini1g.h ipodmini2g.h ipod | |||
10 | # Releases of ipodpatcher are created with "make RELEASE=1". This | 10 | # Releases of ipodpatcher are created with "make RELEASE=1". This |
11 | # enables BOOTOBJS and uses the VERSION string defined in main.c | 11 | # enables BOOTOBJS and uses the VERSION string defined in main.c |
12 | 12 | ||
13 | ifndef V | ||
14 | SILENT = @ | ||
15 | endif | ||
16 | |||
13 | ifdef RELEASE | 17 | ifdef RELEASE |
14 | CFLAGS+=-DRELEASE | 18 | CFLAGS+=-DRELEASE |
15 | BOOTOBJS=1 | 19 | BOOTOBJS=1 |
@@ -79,33 +83,13 @@ ipodpatcher-ppc: $(SRC) ipodio-posix.c $(BOOTSRC) | |||
79 | ipod2c: ipod2c.c | 83 | ipod2c: ipod2c.c |
80 | $(NATIVECC) $(CFLAGS) -o ipod2c ipod2c.c | 84 | $(NATIVECC) $(CFLAGS) -o ipod2c ipod2c.c |
81 | 85 | ||
82 | ipod1g2g.c: bootloader-ipod1g2g.ipod ipod2c | 86 | %.c: bootloader-%.ipod ipod2c |
83 | ./ipod2c bootloader-ipod1g2g.ipod ipod1g2g | 87 | @echo IPOD2C $< |
84 | 88 | $(SILENT)./ipod2c $< $* | |
85 | ipod3g.c: bootloader-ipod3g.ipod ipod2c | ||
86 | ./ipod2c bootloader-ipod3g.ipod ipod3g | ||
87 | |||
88 | ipod4g.c: bootloader-ipod4g.ipod ipod2c | ||
89 | ./ipod2c bootloader-ipod4g.ipod ipod4g | ||
90 | |||
91 | ipodcolor.c: bootloader-ipodcolor.ipod ipod2c | ||
92 | ./ipod2c bootloader-ipodcolor.ipod ipodcolor | ||
93 | |||
94 | ipodmini1g.c: bootloader-ipodmini1g.ipod ipod2c | ||
95 | ./ipod2c bootloader-ipodmini1g.ipod ipodmini1g | ||
96 | |||
97 | ipodmini2g.c: bootloader-ipodmini2g.ipod ipod2c | ||
98 | ./ipod2c bootloader-ipodmini2g.ipod ipodmini2g | ||
99 | |||
100 | ipodnano1g.c: bootloader-ipodnano1g.ipod ipod2c | ||
101 | ./ipod2c bootloader-ipodnano1g.ipod ipodnano1g | ||
102 | |||
103 | ipodvideo.c: bootloader-ipodvideo.ipod ipod2c | ||
104 | ./ipod2c bootloader-ipodvideo.ipod ipodvideo | ||
105 | |||
106 | ipodnano2g.c: bootloader-ipodnano2g.ipodx ipod2c | ||
107 | ./ipod2c bootloader-ipodnano2g.ipodx ipodnano2g | ||
108 | 89 | ||
90 | %.c: bootloader-%.ipodx ipod2c | ||
91 | @echo IPOD2C $< | ||
92 | $(SILENT)./ipod2c $< $* | ||
109 | 93 | ||
110 | clean: | 94 | clean: |
111 | rm -f ipodpatcher.exe ipodpatcher-rc.o ipodpatcher-mac ipodpatcher-i386 ipodpatcher-ppc ipodpatcher ipod2c *~ $(BOOTSRC) $(BOOT_H) | 95 | rm -f ipodpatcher.exe ipodpatcher-rc.o ipodpatcher-mac ipodpatcher-i386 ipodpatcher-ppc ipodpatcher ipod2c *~ $(BOOTSRC) $(BOOT_H) |