wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | d62379d | 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 | 633e03a | 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 | |
Jean-Christophe PLAGNIOL-VILLARD | 4436c1e | 2008-09-10 22:48:01 +0200 | [diff] [blame] | 26 | OBJ_LINKS = env_embedded.o crc32.o md5.o sha1.o image.o |
Heiko Schocher | 633e03a | 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 | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 29 | ifeq ($(ARCH),mips) |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 30 | BIN_FILES += inca-swap-bytes$(SFX) |
| 31 | OBJ_FILES += inca-swap-bytes.o |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 32 | endif |
| 33 | |
wdenk | 1ee550e | 2003-10-08 22:14:02 +0000 | [diff] [blame] | 34 | # Don't build by default |
| 35 | #ifeq ($(ARCH),ppc) |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 36 | #BIN_FILES += mpc86x_clk$(SFX) |
| 37 | #OBJ_FILES += mpc86x_clk.o |
wdenk | 1ee550e | 2003-10-08 22:14:02 +0000 | [diff] [blame] | 38 | #endif |
| 39 | |
Anatolij Gustschin | 7297792 | 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 | 6125086 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 41 | |
Marian Balakowicz | d62379d | 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 |
Stelian Pop | e6632d9 | 2008-05-08 14:52:33 +0200 | [diff] [blame] | 47 | ifeq ($(VENDOR),atmel) |
| 48 | LOGO_BMP= logos/atmel.bmp |
| 49 | endif |
| 50 | |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 51 | |
| 52 | #------------------------------------------------------------------------- |
| 53 | |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 54 | TOOLSUBDIRS = |
| 55 | |
| 56 | # |
| 57 | # Mac OS X / Darwin's C preprocessor is Apple specific. It |
| 58 | # generates numerous errors and warnings. We want to bypass it |
| 59 | # and use GNU C's cpp. To do this we pass the -traditional-cpp |
| 60 | # option to the compiler. Note that the -traditional-cpp flag |
| 61 | # DOES NOT have the same semantics as GNU C's flag, all it does |
| 62 | # is invoke the GNU preprocessor in stock ANSI/ISO C fashion. |
| 63 | # |
| 64 | # Apple's linker is similar, thanks to the new 2 stage linking |
| 65 | # multiple symbol definitions are treated as errors, hence the |
| 66 | # -multiply_defined suppress option to turn off this error. |
| 67 | # |
| 68 | ifeq ($(HOSTOS)-$(HOSTARCH),darwin-ppc) |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 69 | HOST_CFLAGS = -traditional-cpp -Wall |
| 70 | HOST_LDFLAGS =-multiply_defined suppress |
Aubrey.Li | fecb2a0 | 2007-05-14 11:47:35 +0800 | [diff] [blame] | 71 | HOST_ENVIRO_CFLAGS = |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 72 | |
| 73 | else |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 74 | ifeq ($(HOSTOS)-$(HOSTARCH),netbsd-ppc) |
| 75 | HOST_CFLAGS = -Wall -pedantic |
| 76 | HOST_LDFLAGS = |
| 77 | HOST_ENVIRO_CFLAGS = |
| 78 | |
| 79 | # |
| 80 | # Everyone else |
| 81 | # |
| 82 | else |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 83 | HOST_CFLAGS = -Wall -pedantic |
| 84 | HOST_LDFLAGS = |
| 85 | HOST_ENVIRO_CFLAGS = |
| 86 | endif |
| 87 | endif |
| 88 | |
| 89 | # |
| 90 | # Cygwin needs .exe files :-( |
| 91 | # |
| 92 | ifeq ($(HOSTOS),cygwin) |
| 93 | SFX = .exe |
raptorbrino@aim.com | 59f1275 | 2007-12-13 21:23:28 -0500 | [diff] [blame] | 94 | HOST_CFLAGS += -ansi |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 95 | else |
| 96 | SFX = |
| 97 | endif |
| 98 | |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 99 | # |
| 100 | # Include this after HOSTOS HOSTARCH check |
| 101 | # so that we can act intelligently. |
| 102 | # |
| 103 | include $(TOPDIR)/config.mk |
| 104 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 105 | # now $(obj) is defined |
Wolfgang Denk | 4df0da5 | 2006-10-09 00:42:01 +0200 | [diff] [blame] | 106 | SRCS := $(addprefix $(obj),$(OBJ_LINKS:.o=.c)) $(OBJ_FILES:.o=.c) |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 107 | BINS := $(addprefix $(obj),$(BIN_FILES)) |
| 108 | |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 109 | # |
| 110 | # Use native tools and options |
| 111 | # |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 112 | CPPFLAGS = -idirafter $(SRCTREE)/include \ |
| 113 | -idirafter $(OBJTREE)/include2 \ |
| 114 | -idirafter $(OBJTREE)/include \ |
| 115 | -DTEXT_BASE=$(TEXT_BASE) -DUSE_HOSTCC |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 116 | CFLAGS = $(HOST_CFLAGS) $(CPPFLAGS) -O |
Bartlomiej Sieka | 6125086 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 117 | |
| 118 | # No -pedantic switch to avoid libfdt compilation warnings |
| 119 | FIT_CFLAGS = -Wall $(CPPFLAGS) -O |
| 120 | |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 121 | AFLAGS = -D__ASSEMBLY__ $(CPPFLAGS) |
| 122 | CC = $(HOSTCC) |
| 123 | STRIP = $(HOSTSTRIP) |
| 124 | MAKEDEPEND = makedepend |
| 125 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 126 | all: $(obj).depend $(BINS) $(LOGO_H) subdirs |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 127 | |
Jean-Christophe PLAGNIOL-VILLARD | 4436c1e | 2008-09-10 22:48:01 +0200 | [diff] [blame] | 128 | $(obj)envcrc$(SFX): $(obj)envcrc.o $(obj)crc32.o $(obj)env_embedded.o $(obj)sha1.o |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 129 | $(CC) $(CFLAGS) -o $@ $^ |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 130 | |
Heiko Schocher | 633e03a | 2007-06-22 19:11:54 +0200 | [diff] [blame] | 131 | $(obj)ubsha1$(SFX): $(obj)ubsha1.o $(obj)sha1.o |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 132 | $(CC) $(CFLAGS) -o $@ $^ |
Heiko Schocher | 633e03a | 2007-06-22 19:11:54 +0200 | [diff] [blame] | 133 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 134 | $(obj)img2srec$(SFX): $(obj)img2srec.o |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 135 | $(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^ |
| 136 | $(STRIP) $@ |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 137 | |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 138 | $(obj)mkimage$(SFX): $(obj)mkimage.o $(obj)crc32.o $(obj)image.o $(obj)md5.o \ |
| 139 | $(obj)sha1.o $(LIBFDT_OBJ_FILES) |
| 140 | $(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^ |
| 141 | $(STRIP) $@ |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 142 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 143 | $(obj)ncb$(SFX): $(obj)ncb.o |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 144 | $(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^ |
| 145 | $(STRIP) $@ |
wdenk | a0ebde5 | 2004-09-08 22:03:11 +0000 | [diff] [blame] | 146 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 147 | $(obj)gen_eth_addr$(SFX): $(obj)gen_eth_addr.o |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 148 | $(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^ |
| 149 | $(STRIP) $@ |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 150 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 151 | $(obj)bmp_logo$(SFX): $(obj)bmp_logo.o |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 152 | $(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^ |
| 153 | $(STRIP) $@ |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 154 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 155 | $(obj)inca-swap-bytes$(SFX): $(obj)inca-swap-bytes.o |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 156 | $(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^ |
| 157 | $(STRIP) $@ |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 158 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 159 | $(obj)mpc86x_clk$(SFX): $(obj)mpc86x_clk.o |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 160 | $(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^ |
| 161 | $(STRIP) $@ |
wdenk | 1ee550e | 2003-10-08 22:14:02 +0000 | [diff] [blame] | 162 | |
Harald Welte | 5708dbf | 2008-07-09 22:30:30 +0800 | [diff] [blame] | 163 | $(obj)bin2header$(SFX): $(obj)bin2header.o |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 164 | $(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^ |
| 165 | $(STRIP) $@ |
Harald Welte | 5708dbf | 2008-07-09 22:30:30 +0800 | [diff] [blame] | 166 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 167 | $(obj)envcrc.o: $(src)envcrc.c |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 168 | $(CC) -g $(CFLAGS) -c -o $@ $< |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 169 | |
Heiko Schocher | 633e03a | 2007-06-22 19:11:54 +0200 | [diff] [blame] | 170 | $(obj)ubsha1.o: $(src)ubsha1.c |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 171 | $(CC) -g $(CFLAGS) -c -o $@ $< |
Heiko Schocher | 633e03a | 2007-06-22 19:11:54 +0200 | [diff] [blame] | 172 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 173 | $(obj)crc32.o: $(obj)crc32.c |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 174 | $(CC) -g $(CFLAGS) -c -o $@ $< |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 175 | |
Bartlomiej Sieka | 2e6f285 | 2008-03-14 16:22:34 +0100 | [diff] [blame] | 176 | $(obj)md5.o: $(obj)md5.c |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 177 | $(CC) -g $(CFLAGS) -c -o $@ $< |
Bartlomiej Sieka | 2e6f285 | 2008-03-14 16:22:34 +0100 | [diff] [blame] | 178 | |
Heiko Schocher | 633e03a | 2007-06-22 19:11:54 +0200 | [diff] [blame] | 179 | $(obj)sha1.o: $(obj)sha1.c |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 180 | $(CC) -g $(CFLAGS) -c -o $@ $< |
Heiko Schocher | 633e03a | 2007-06-22 19:11:54 +0200 | [diff] [blame] | 181 | |
Marian Balakowicz | 41d71ed | 2008-01-08 18:14:09 +0100 | [diff] [blame] | 182 | $(obj)image.o: $(obj)image.c |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 183 | $(CC) -g $(FIT_CFLAGS) -c -o $@ $< |
Marian Balakowicz | 41d71ed | 2008-01-08 18:14:09 +0100 | [diff] [blame] | 184 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 185 | $(obj)mkimage.o: $(src)mkimage.c |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 186 | $(CC) -g $(FIT_CFLAGS) -c -o $@ $< |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 187 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 188 | $(obj)ncb.o: $(src)ncb.c |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 189 | $(CC) -g $(CFLAGS) -c -o $@ $< |
wdenk | a0ebde5 | 2004-09-08 22:03:11 +0000 | [diff] [blame] | 190 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 191 | $(obj)gen_eth_addr.o: $(src)gen_eth_addr.c |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 192 | $(CC) -g $(CFLAGS) -c -o $@ $< |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 193 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 194 | $(obj)inca-swap-bytes.o: $(src)inca-swap-bytes.c |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 195 | $(CC) -g $(CFLAGS) -c -o $@ $< |
wdenk | b02744a | 2003-04-05 00:53:31 +0000 | [diff] [blame] | 196 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 197 | $(obj)mpc86x_clk.o: $(src)mpc86x_clk.c |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 198 | $(CC) -g $(CFLAGS) -c -o $@ $< |
wdenk | 1ee550e | 2003-10-08 22:14:02 +0000 | [diff] [blame] | 199 | |
Bartlomiej Sieka | 6125086 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 200 | $(obj)fdt.o: $(obj)fdt.c |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 201 | $(CC) -g $(FIT_CFLAGS) -c -o $@ $< |
Bartlomiej Sieka | 6125086 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 202 | |
| 203 | $(obj)fdt_ro.o: $(obj)fdt_ro.c |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 204 | $(CC) -g $(FIT_CFLAGS) -c -o $@ $< |
Bartlomiej Sieka | 6125086 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 205 | |
| 206 | $(obj)fdt_rw.o: $(obj)fdt_rw.c |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 207 | $(CC) -g $(FIT_CFLAGS) -c -o $@ $< |
Bartlomiej Sieka | 6125086 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 208 | |
| 209 | $(obj)fdt_strerror.o: $(obj)fdt_strerror.c |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 210 | $(CC) -g $(FIT_CFLAGS) -c -o $@ $< |
Bartlomiej Sieka | 6125086 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 211 | |
| 212 | $(obj)fdt_wip.o: $(obj)fdt_wip.c |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 213 | $(CC) -g $(FIT_CFLAGS) -c -o $@ $< |
Bartlomiej Sieka | 6125086 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 214 | |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 215 | subdirs: |
wdenk | 5d84173 | 2003-08-17 18:55:18 +0000 | [diff] [blame] | 216 | ifeq ($(TOOLSUBDIRS),) |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 217 | @: |
wdenk | 5d84173 | 2003-08-17 18:55:18 +0000 | [diff] [blame] | 218 | else |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 219 | @for dir in $(TOOLSUBDIRS) ; do \ |
| 220 | $(MAKE) \ |
| 221 | HOSTOS=$(HOSTOS) \ |
| 222 | HOSTARCH=$(HOSTARCH) \ |
| 223 | HOST_CFLAGS="$(HOST_CFLAGS)" \ |
| 224 | HOST_LDFLAGS="$(HOST_LDFLAGS)" \ |
| 225 | -C $$dir || exit 1 ; \ |
| 226 | done |
wdenk | 5d84173 | 2003-08-17 18:55:18 +0000 | [diff] [blame] | 227 | endif |
| 228 | |
Jean-Christophe PLAGNIOL-VILLARD | 4436c1e | 2008-09-10 22:48:01 +0200 | [diff] [blame] | 229 | $(obj)env_embedded.c: |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 230 | @rm -f $(obj)env_embedded.c |
| 231 | ln -s $(src)../common/env_embedded.c $(obj)env_embedded.c |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 232 | |
Jean-Christophe PLAGNIOL-VILLARD | 4436c1e | 2008-09-10 22:48:01 +0200 | [diff] [blame] | 233 | $(obj)env_embedded.o: $(obj)env_embedded.c |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 234 | $(CC) -g $(HOST_ENVIRO_CFLAGS) $(CPPFLAGS) -c -o $@ $< |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 235 | |
Mike Frysinger | a2c67e9 | 2008-03-31 11:02:01 -0400 | [diff] [blame] | 236 | $(obj)zlib.h: |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 237 | @rm -f $@ |
| 238 | ln -s $(src)../include/zlib.h $@ |
Mike Frysinger | a2c67e9 | 2008-03-31 11:02:01 -0400 | [diff] [blame] | 239 | |
| 240 | $(obj)crc32.c: $(obj)zlib.h |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 241 | @rm -f $(obj)crc32.c |
| 242 | ln -s $(src)../lib_generic/crc32.c $(obj)crc32.c |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 243 | |
Bartlomiej Sieka | 2e6f285 | 2008-03-14 16:22:34 +0100 | [diff] [blame] | 244 | $(obj)md5.c: |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 245 | @rm -f $(obj)md5.c |
| 246 | ln -s $(src)../lib_generic/md5.c $(obj)md5.c |
Bartlomiej Sieka | 2e6f285 | 2008-03-14 16:22:34 +0100 | [diff] [blame] | 247 | |
Heiko Schocher | 633e03a | 2007-06-22 19:11:54 +0200 | [diff] [blame] | 248 | $(obj)sha1.c: |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 249 | @rm -f $(obj)sha1.c |
| 250 | ln -s $(src)../lib_generic/sha1.c $(obj)sha1.c |
Heiko Schocher | 633e03a | 2007-06-22 19:11:54 +0200 | [diff] [blame] | 251 | |
Marian Balakowicz | 41d71ed | 2008-01-08 18:14:09 +0100 | [diff] [blame] | 252 | $(obj)image.c: |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 253 | @rm -f $(obj)image.c |
| 254 | ln -s $(src)../common/image.c $(obj)image.c |
| 255 | if [ ! -f $(obj)mkimage.h ] ; then \ |
| 256 | ln -s $(src)../tools/mkimage.h $(obj)mkimage.h; \ |
| 257 | fi |
| 258 | if [ ! -f $(obj)fdt_host.h ] ; then \ |
| 259 | ln -s $(src)../tools/fdt_host.h $(obj)fdt_host.h; \ |
| 260 | fi |
Marian Balakowicz | 41d71ed | 2008-01-08 18:14:09 +0100 | [diff] [blame] | 261 | |
Anatolij Gustschin | 7297792 | 2008-03-26 21:05:43 +0100 | [diff] [blame] | 262 | $(obj)fdt.c: $(obj)libfdt_internal.h |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 263 | @rm -f $(obj)fdt.c |
| 264 | ln -s $(src)../libfdt/fdt.c $(obj)fdt.c |
Bartlomiej Sieka | 6125086 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 265 | |
Anatolij Gustschin | 7297792 | 2008-03-26 21:05:43 +0100 | [diff] [blame] | 266 | $(obj)fdt_ro.c: $(obj)libfdt_internal.h |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 267 | @rm -f $(obj)fdt_ro.c |
| 268 | ln -s $(src)../libfdt/fdt_ro.c $(obj)fdt_ro.c |
Bartlomiej Sieka | 6125086 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 269 | |
Anatolij Gustschin | 7297792 | 2008-03-26 21:05:43 +0100 | [diff] [blame] | 270 | $(obj)fdt_rw.c: $(obj)libfdt_internal.h |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 271 | @rm -f $(obj)fdt_rw.c |
| 272 | ln -s $(src)../libfdt/fdt_rw.c $(obj)fdt_rw.c |
Bartlomiej Sieka | 6125086 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 273 | |
Anatolij Gustschin | 7297792 | 2008-03-26 21:05:43 +0100 | [diff] [blame] | 274 | $(obj)fdt_strerror.c: $(obj)libfdt_internal.h |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 275 | @rm -f $(obj)fdt_strerror.c |
| 276 | ln -s $(src)../libfdt/fdt_strerror.c $(obj)fdt_strerror.c |
Bartlomiej Sieka | 6125086 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 277 | |
Anatolij Gustschin | 7297792 | 2008-03-26 21:05:43 +0100 | [diff] [blame] | 278 | $(obj)fdt_wip.c: $(obj)libfdt_internal.h |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 279 | @rm -f $(obj)fdt_wip.c |
| 280 | ln -s $(src)../libfdt/fdt_wip.c $(obj)fdt_wip.c |
Bartlomiej Sieka | 6125086 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 281 | |
| 282 | $(obj)libfdt_internal.h: |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 283 | @rm -f $(obj)libfdt_internal.h |
| 284 | ln -s $(src)../libfdt/libfdt_internal.h $(obj)libfdt_internal.h |
Bartlomiej Sieka | 6125086 | 2008-02-29 16:00:24 +0100 | [diff] [blame] | 285 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 286 | $(LOGO_H): $(obj)bmp_logo $(LOGO_BMP) |
Peter Tyser | 2f84bc1 | 2009-03-13 18:54:33 -0500 | [diff] [blame^] | 287 | $(obj)./bmp_logo $(LOGO_BMP) >$@ |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 288 | |
| 289 | ######################################################################### |
| 290 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 291 | # defines $(obj).depend target |
| 292 | include $(SRCTREE)/rules.mk |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 293 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 294 | sinclude $(obj).depend |
wdenk | efee170 | 2002-07-20 20:14:13 +0000 | [diff] [blame] | 295 | |
| 296 | ######################################################################### |