From c29fdfc1d8cbefd2d85a354b95486a6d2b3f4a88 Mon Sep 17 00:00:00 2001 From: wdenk Date: Fri, 29 Aug 2003 20:57:53 +0000 Subject: Patch by Yuli Barcohen, 14 Aug 2003: add support for bzip2 uncompression --- examples/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'examples/Makefile') diff --git a/examples/Makefile b/examples/Makefile index 7975df55cae..febc501e9f6 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 -- cgit v1.2.3