diff options
Diffstat (limited to 'examples/Makefile')
-rw-r--r-- | examples/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/Makefile b/examples/Makefile index 945b7457004..6bd10b52874 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -41,6 +41,10 @@ ifeq ($(ARCH),nios) LOAD_ADDR = 0x01000000 -L $(gcclibdir)/m32 -T nios.lds endif +ifeq ($(ARCH),m68k) +LOAD_ADDR = 0x20000 -L $(clibdir) +endif + include $(TOPDIR)/config.mk SREC = hello_world.srec @@ -56,11 +60,6 @@ SREC += sched.srec BIN += sched.bin sched endif -ifeq ($(ARCH),m68k) -SREC = -BIN = -endif - # The following example is pretty 8xx specific... ifeq ($(CPU),mpc8xx) SREC += timer.srec @@ -94,6 +93,7 @@ LIBCOBJS= stubs.o LIBOBJS = $(LIBAOBJS) $(LIBCOBJS) gcclibdir := $(shell dirname `$(CC) -print-libgcc-file-name`) +clibdir := $(shell dirname `$(CC) $(CFLAGS) -print-file-name=libc.a`) CPPFLAGS += -I.. |