summaryrefslogtreecommitdiff
path: root/examples/Makefile
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-08-29 20:57:53 +0000
committerwdenk <wdenk>2003-08-29 20:57:53 +0000
commitc29fdfc1d8cbefd2d85a354b95486a6d2b3f4a88 (patch)
treeefce72aecde2b26e3e7be7e3ef550b022732f705 /examples/Makefile
parentca75added10524a1f8e439e904ba72cb74c917a4 (diff)
downloadu-boot-c29fdfc1d8cbefd2d85a354b95486a6d2b3f4a88.tar.gz
Patch by Yuli Barcohen, 14 Aug 2003:
add support for bzip2 uncompression
Diffstat (limited to 'examples/Makefile')
-rw-r--r--examples/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/Makefile b/examples/Makefile
index 7975df55ca..febc501e9f 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -79,6 +79,8 @@ endif
LIBCOBJS= stubs.o
LIBOBJS = $(LIBAOBJS) $(LIBCOBJS)
+gcclibdir := $(shell dirname `$(CC) -print-libgcc-file-name`)
+
CPPFLAGS += -I..
all: .depend $(LIB) $(SREC) $(BIN)
@@ -88,7 +90,8 @@ $(LIB): .depend $(LIBOBJS)
$(AR) crv $@ $(LIBOBJS)
%.srec: %.o $(LIB)
- $(LD) -g -Ttext $(LOAD_ADDR) -o $(<:.o=) -e $(<:.o=) $< $(LIB)
+ $(LD) -g -Ttext $(LOAD_ADDR) -o $(<:.o=) -e $(<:.o=) $< $(LIB) \
+ -L$(gcclibdir) -lgcc
$(OBJCOPY) -O srec $(<:.o=) $@
%.bin: %.srec