wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2000-2006 |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
| 5 | # See file CREDITS for list of people who contributed to this |
| 6 | # project. |
| 7 | # |
| 8 | # This program is free software; you can redistribute it and/or |
| 9 | # modify it under the terms of the GNU General Public License as |
| 10 | # published by the Free Software Foundation; either version 2 of |
| 11 | # the License, or (at your option) any later version. |
| 12 | # |
| 13 | # This program is distributed in the hope that it will be useful, |
| 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | # GNU General Public License for more details. |
| 17 | # |
| 18 | # You should have received a copy of the GNU General Public License |
| 19 | # along with this program; if not, write to the Free Software |
| 20 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 21 | # MA 02111-1307 USA |
| 22 | # |
| 23 | |
Heiko Schocher | 566a494 | 2007-06-22 19:11:54 +0200 | [diff] [blame] | 24 | BIN_FILES = img2srec$(SFX) mkimage$(SFX) envcrc$(SFX) ubsha1$(SFX) gen_eth_addr$(SFX) bmp_logo$(SFX) |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 25 | |
Bartlomiej Sieka | 766529f | 2008-03-14 16:22:34 +0100 | [diff] [blame] | 26 | OBJ_LINKS = environment.o crc32.o md5.o sha1.o image.o |
Heiko Schocher | 566a494 | 2007-06-22 19:11:54 +0200 | [diff] [blame] | 27 | OBJ_FILES = img2srec.o mkimage.o envcrc.o ubsha1.o gen_eth_addr.o bmp_logo.o |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 28 | |
wdenk | 3e38691 | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 29 | ifeq ($(ARCH),mips) |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 30 | BIN_FILES += inca-swap-bytes$(SFX) |
| 31 | OBJ_FILES += inca-swap-bytes.o |
wdenk | 3e38691 | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 32 | endif |
| 33 | |
wdenk | ef1464c | 2003-10-08 22:14:02 +0000 | [diff] [blame] | 34 | # Don't build by default |
| 35 | #ifeq ($(ARCH),ppc) |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 36 | #BIN_FILES += mpc86x_clk$(SFX) |
| 37 | #OBJ_FILES += mpc86x_clk.o |
wdenk | ef1464c | 2003-10-08 22:14:02 +0000 | [diff] [blame] | 38 | #endif |
| 39 | |
Anatolij Gustschin | b9670dd | 2008-03-26 21:05:43 +0100 | [diff] [blame] | 40 | LIBFDT_OBJ_FILES = $(obj)fdt.o $(obj)fdt_ro.o $(obj)fdt_rw.o $(obj)fdt_strerror.o $(obj)fdt_wip.o |
Bartlomiej Sieka | 8cf3080 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 41 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 42 | LOGO_H = $(OBJTREE)/include/bmp_logo.h |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 43 | |
| 44 | ifeq ($(LOGO_BMP),) |
| 45 | LOGO_BMP= logos/denx.bmp |
| 46 | endif |
| 47 | |
| 48 | #------------------------------------------------------------------------- |
| 49 | |
| 50 | HOSTARCH := $(shell uname -m | \ |
| 51 | sed -e s/i.86/i386/ \ |
| 52 | -e s/sun4u/sparc64/ \ |
| 53 | -e s/arm.*/arm/ \ |
| 54 | -e s/sa110/arm/ \ |
| 55 | -e s/powerpc/ppc/ \ |
| 56 | -e s/Power\ Macintosh/ppc/ \ |
| 57 | -e s/macppc/ppc/) |
| 58 | |
| 59 | HOSTOS := $(shell uname -s | tr A-Z a-z | \ |
| 60 | sed -e 's/\(cygwin\).*/cygwin/') |
| 61 | |
| 62 | TOOLSUBDIRS = |
| 63 | |
| 64 | # |
| 65 | # Mac OS X / Darwin's C preprocessor is Apple specific. It |
| 66 | # generates numerous errors and warnings. We want to bypass it |
| 67 | # and use GNU C's cpp. To do this we pass the -traditional-cpp |
| 68 | # option to the compiler. Note that the -traditional-cpp flag |
| 69 | # DOES NOT have the same semantics as GNU C's flag, all it does |
| 70 | # is invoke the GNU preprocessor in stock ANSI/ISO C fashion. |
| 71 | # |
| 72 | # Apple's linker is similar, thanks to the new 2 stage linking |
| 73 | # multiple symbol definitions are treated as errors, hence the |
| 74 | # -multiply_defined suppress option to turn off this error. |
| 75 | # |
| 76 | ifeq ($(HOSTOS)-$(HOSTARCH),darwin-ppc) |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 77 | HOST_CFLAGS = -traditional-cpp -Wall |
| 78 | HOST_LDFLAGS =-multiply_defined suppress |
Aubrey.Li | 5dfaa50 | 2007-05-14 11:47:35 +0800 | [diff] [blame] | 79 | HOST_ENVIRO_CFLAGS = |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 80 | |
| 81 | else |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 82 | ifeq ($(HOSTOS)-$(HOSTARCH),netbsd-ppc) |
| 83 | HOST_CFLAGS = -Wall -pedantic |
| 84 | HOST_LDFLAGS = |
| 85 | HOST_ENVIRO_CFLAGS = |
| 86 | |
| 87 | # |
| 88 | # Everyone else |
| 89 | # |
| 90 | else |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 91 | HOST_CFLAGS = -Wall -pedantic |
| 92 | HOST_LDFLAGS = |
| 93 | HOST_ENVIRO_CFLAGS = |
| 94 | endif |
| 95 | endif |
| 96 | |
| 97 | # |
| 98 | # Cygwin needs .exe files :-( |
| 99 | # |
| 100 | ifeq ($(HOSTOS),cygwin) |
| 101 | SFX = .exe |
raptorbrino@aim.com | 883e392 | 2007-12-13 21:23:28 -0500 | [diff] [blame] | 102 | HOST_CFLAGS += -ansi |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 103 | else |
| 104 | SFX = |
| 105 | endif |
| 106 | |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 107 | # |
| 108 | # Include this after HOSTOS HOSTARCH check |
| 109 | # so that we can act intelligently. |
| 110 | # |
| 111 | include $(TOPDIR)/config.mk |
| 112 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 113 | # now $(obj) is defined |
Wolfgang Denk | 511d0c7 | 2006-10-09 00:42:01 +0200 | [diff] [blame] | 114 | SRCS := $(addprefix $(obj),$(OBJ_LINKS:.o=.c)) $(OBJ_FILES:.o=.c) |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 115 | BINS := $(addprefix $(obj),$(BIN_FILES)) |
| 116 | |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 117 | # |
| 118 | # Use native tools and options |
| 119 | # |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 120 | CPPFLAGS = -idirafter $(SRCTREE)/include \ |
| 121 | -idirafter $(OBJTREE)/include2 \ |
| 122 | -idirafter $(OBJTREE)/include \ |
| 123 | -DTEXT_BASE=$(TEXT_BASE) -DUSE_HOSTCC |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 124 | CFLAGS = $(HOST_CFLAGS) $(CPPFLAGS) -O |
Bartlomiej Sieka | 8cf3080 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 125 | |
| 126 | # No -pedantic switch to avoid libfdt compilation warnings |
| 127 | FIT_CFLAGS = -Wall $(CPPFLAGS) -O |
| 128 | |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 129 | AFLAGS = -D__ASSEMBLY__ $(CPPFLAGS) |
| 130 | CC = $(HOSTCC) |
| 131 | STRIP = $(HOSTSTRIP) |
| 132 | MAKEDEPEND = makedepend |
| 133 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 134 | all: $(obj).depend $(BINS) $(LOGO_H) subdirs |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 135 | |
Heiko Schocher | 566a494 | 2007-06-22 19:11:54 +0200 | [diff] [blame] | 136 | $(obj)envcrc$(SFX): $(obj)envcrc.o $(obj)crc32.o $(obj)environment.o $(obj)sha1.o |
| 137 | $(CC) $(CFLAGS) -o $@ $^ |
| 138 | |
| 139 | $(obj)ubsha1$(SFX): $(obj)ubsha1.o $(obj)sha1.o |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 140 | $(CC) $(CFLAGS) -o $@ $^ |
| 141 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 142 | $(obj)img2srec$(SFX): $(obj)img2srec.o |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 143 | $(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^ |
| 144 | $(STRIP) $@ |
| 145 | |
Bartlomiej Sieka | 766529f | 2008-03-14 16:22:34 +0100 | [diff] [blame] | 146 | $(obj)mkimage$(SFX): $(obj)mkimage.o $(obj)crc32.o $(obj)image.o $(obj)md5.o $(obj)sha1.o $(LIBFDT_OBJ_FILES) |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 147 | $(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^ |
| 148 | $(STRIP) $@ |
| 149 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 150 | $(obj)ncb$(SFX): $(obj)ncb.o |
wdenk | eedcd07 | 2004-09-08 22:03:11 +0000 | [diff] [blame] | 151 | $(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^ |
| 152 | $(STRIP) $@ |
| 153 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 154 | $(obj)gen_eth_addr$(SFX): $(obj)gen_eth_addr.o |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 155 | $(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^ |
| 156 | $(STRIP) $@ |
| 157 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 158 | $(obj)bmp_logo$(SFX): $(obj)bmp_logo.o |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 159 | $(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^ |
| 160 | $(STRIP) $@ |
| 161 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 162 | $(obj)inca-swap-bytes$(SFX): $(obj)inca-swap-bytes.o |
wdenk | 3e38691 | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 163 | $(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^ |
| 164 | $(STRIP) $@ |
| 165 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 166 | $(obj)mpc86x_clk$(SFX): $(obj)mpc86x_clk.o |
wdenk | ef1464c | 2003-10-08 22:14:02 +0000 | [diff] [blame] | 167 | $(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^ |
| 168 | $(STRIP) $@ |
| 169 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 170 | $(obj)envcrc.o: $(src)envcrc.c |
| 171 | $(CC) -g $(CFLAGS) -c -o $@ $< |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 172 | |
Heiko Schocher | 566a494 | 2007-06-22 19:11:54 +0200 | [diff] [blame] | 173 | $(obj)ubsha1.o: $(src)ubsha1.c |
| 174 | $(CC) -g $(CFLAGS) -c -o $@ $< |
| 175 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 176 | $(obj)crc32.o: $(obj)crc32.c |
| 177 | $(CC) -g $(CFLAGS) -c -o $@ $< |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 178 | |
Bartlomiej Sieka | 766529f | 2008-03-14 16:22:34 +0100 | [diff] [blame] | 179 | $(obj)md5.o: $(obj)md5.c |
| 180 | $(CC) -g $(CFLAGS) -c -o $@ $< |
| 181 | |
Heiko Schocher | 566a494 | 2007-06-22 19:11:54 +0200 | [diff] [blame] | 182 | $(obj)sha1.o: $(obj)sha1.c |
| 183 | $(CC) -g $(CFLAGS) -c -o $@ $< |
| 184 | |
Marian Balakowicz | b97a2a0 | 2008-01-08 18:14:09 +0100 | [diff] [blame] | 185 | $(obj)image.o: $(obj)image.c |
Bartlomiej Sieka | 8cf3080 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 186 | $(CC) -g $(FIT_CFLAGS) -c -o $@ $< |
Marian Balakowicz | b97a2a0 | 2008-01-08 18:14:09 +0100 | [diff] [blame] | 187 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 188 | $(obj)mkimage.o: $(src)mkimage.c |
Bartlomiej Sieka | 8cf3080 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 189 | $(CC) -g $(FIT_CFLAGS) -c -o $@ $< |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 190 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 191 | $(obj)ncb.o: $(src)ncb.c |
| 192 | $(CC) -g $(CFLAGS) -c -o $@ $< |
wdenk | eedcd07 | 2004-09-08 22:03:11 +0000 | [diff] [blame] | 193 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 194 | $(obj)gen_eth_addr.o: $(src)gen_eth_addr.c |
| 195 | $(CC) -g $(CFLAGS) -c -o $@ $< |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 196 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 197 | $(obj)inca-swap-bytes.o: $(src)inca-swap-bytes.c |
| 198 | $(CC) -g $(CFLAGS) -c -o $@ $< |
wdenk | 3e38691 | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 199 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 200 | $(obj)mpc86x_clk.o: $(src)mpc86x_clk.c |
| 201 | $(CC) -g $(CFLAGS) -c -o $@ $< |
wdenk | ef1464c | 2003-10-08 22:14:02 +0000 | [diff] [blame] | 202 | |
Bartlomiej Sieka | 8cf3080 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 203 | $(obj)fdt.o: $(obj)fdt.c |
| 204 | $(CC) -g $(FIT_CFLAGS) -c -o $@ $< |
| 205 | |
| 206 | $(obj)fdt_ro.o: $(obj)fdt_ro.c |
| 207 | $(CC) -g $(FIT_CFLAGS) -c -o $@ $< |
| 208 | |
| 209 | $(obj)fdt_rw.o: $(obj)fdt_rw.c |
| 210 | $(CC) -g $(FIT_CFLAGS) -c -o $@ $< |
| 211 | |
| 212 | $(obj)fdt_strerror.o: $(obj)fdt_strerror.c |
| 213 | $(CC) -g $(FIT_CFLAGS) -c -o $@ $< |
| 214 | |
| 215 | $(obj)fdt_wip.o: $(obj)fdt_wip.c |
| 216 | $(CC) -g $(FIT_CFLAGS) -c -o $@ $< |
| 217 | |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 218 | subdirs: |
wdenk | e0ac62d | 2003-08-17 18:55:18 +0000 | [diff] [blame] | 219 | ifeq ($(TOOLSUBDIRS),) |
| 220 | @: |
| 221 | else |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 222 | @for dir in $(TOOLSUBDIRS) ; do \ |
| 223 | $(MAKE) \ |
| 224 | HOSTOS=$(HOSTOS) \ |
| 225 | HOSTARCH=$(HOSTARCH) \ |
| 226 | HOST_CFLAGS="$(HOST_CFLAGS)" \ |
| 227 | HOST_LDFLAGS="$(HOST_LDFLAGS)" \ |
| 228 | -C $$dir || exit 1 ; \ |
| 229 | done |
wdenk | e0ac62d | 2003-08-17 18:55:18 +0000 | [diff] [blame] | 230 | endif |
| 231 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 232 | $(obj)environment.c: |
| 233 | @rm -f $(obj)environment.c |
| 234 | ln -s $(src)../common/environment.c $(obj)environment.c |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 235 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 236 | $(obj)environment.o: $(obj)environment.c |
| 237 | $(CC) -g $(HOST_ENVIRO_CFLAGS) $(CPPFLAGS) -c -o $@ $< |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 238 | |
Mike Frysinger | 89cdab7 | 2008-03-31 11:02:01 -0400 | [diff] [blame^] | 239 | $(obj)zlib.h: |
| 240 | @rm -f $@ |
| 241 | ln -s $(src)../include/zlib.h $@ |
| 242 | |
| 243 | $(obj)crc32.c: $(obj)zlib.h |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 244 | @rm -f $(obj)crc32.c |
| 245 | ln -s $(src)../lib_generic/crc32.c $(obj)crc32.c |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 246 | |
Bartlomiej Sieka | 766529f | 2008-03-14 16:22:34 +0100 | [diff] [blame] | 247 | $(obj)md5.c: |
| 248 | @rm -f $(obj)md5.c |
| 249 | ln -s $(src)../lib_generic/md5.c $(obj)md5.c |
| 250 | |
Heiko Schocher | 566a494 | 2007-06-22 19:11:54 +0200 | [diff] [blame] | 251 | $(obj)sha1.c: |
| 252 | @rm -f $(obj)sha1.c |
| 253 | ln -s $(src)../lib_generic/sha1.c $(obj)sha1.c |
| 254 | |
Marian Balakowicz | b97a2a0 | 2008-01-08 18:14:09 +0100 | [diff] [blame] | 255 | $(obj)image.c: |
| 256 | @rm -f $(obj)image.c |
| 257 | ln -s $(src)../common/image.c $(obj)image.c |
Anatolij Gustschin | b9670dd | 2008-03-26 21:05:43 +0100 | [diff] [blame] | 258 | if [ ! -f $(obj)mkimage.h ] ; then \ |
| 259 | ln -s $(src)../tools/mkimage.h $(obj)mkimage.h; \ |
| 260 | fi |
| 261 | if [ ! -f $(obj)fdt_host.h ] ; then \ |
| 262 | ln -s $(src)../tools/fdt_host.h $(obj)fdt_host.h; \ |
| 263 | fi |
Marian Balakowicz | b97a2a0 | 2008-01-08 18:14:09 +0100 | [diff] [blame] | 264 | |
Anatolij Gustschin | b9670dd | 2008-03-26 21:05:43 +0100 | [diff] [blame] | 265 | $(obj)fdt.c: $(obj)libfdt_internal.h |
Bartlomiej Sieka | 8cf3080 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 266 | @rm -f $(obj)fdt.c |
| 267 | ln -s $(src)../libfdt/fdt.c $(obj)fdt.c |
| 268 | |
Anatolij Gustschin | b9670dd | 2008-03-26 21:05:43 +0100 | [diff] [blame] | 269 | $(obj)fdt_ro.c: $(obj)libfdt_internal.h |
Bartlomiej Sieka | 8cf3080 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 270 | @rm -f $(obj)fdt_ro.c |
| 271 | ln -s $(src)../libfdt/fdt_ro.c $(obj)fdt_ro.c |
| 272 | |
Anatolij Gustschin | b9670dd | 2008-03-26 21:05:43 +0100 | [diff] [blame] | 273 | $(obj)fdt_rw.c: $(obj)libfdt_internal.h |
Bartlomiej Sieka | 8cf3080 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 274 | @rm -f $(obj)fdt_rw.c |
| 275 | ln -s $(src)../libfdt/fdt_rw.c $(obj)fdt_rw.c |
| 276 | |
Anatolij Gustschin | b9670dd | 2008-03-26 21:05:43 +0100 | [diff] [blame] | 277 | $(obj)fdt_strerror.c: $(obj)libfdt_internal.h |
Bartlomiej Sieka | 8cf3080 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 278 | @rm -f $(obj)fdt_strerror.c |
| 279 | ln -s $(src)../libfdt/fdt_strerror.c $(obj)fdt_strerror.c |
| 280 | |
Anatolij Gustschin | b9670dd | 2008-03-26 21:05:43 +0100 | [diff] [blame] | 281 | $(obj)fdt_wip.c: $(obj)libfdt_internal.h |
Bartlomiej Sieka | 8cf3080 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 282 | @rm -f $(obj)fdt_wip.c |
| 283 | ln -s $(src)../libfdt/fdt_wip.c $(obj)fdt_wip.c |
| 284 | |
| 285 | $(obj)libfdt_internal.h: |
| 286 | @rm -f $(obj)libfdt_internal.h |
| 287 | ln -s $(src)../libfdt/libfdt_internal.h $(obj)libfdt_internal.h |
| 288 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 289 | $(LOGO_H): $(obj)bmp_logo $(LOGO_BMP) |
| 290 | $(obj)./bmp_logo $(LOGO_BMP) >$@ |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 291 | |
| 292 | ######################################################################### |
| 293 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 294 | # defines $(obj).depend target |
| 295 | include $(SRCTREE)/rules.mk |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 296 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 297 | sinclude $(obj).depend |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 298 | |
| 299 | ######################################################################### |