diff options
Diffstat (limited to 'libgloss/or1k/Makefile.in')
-rw-r--r-- | libgloss/or1k/Makefile.in | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/libgloss/or1k/Makefile.in b/libgloss/or1k/Makefile.in index cf6197ae1..59d385c4b 100644 --- a/libgloss/or1k/Makefile.in +++ b/libgloss/or1k/Makefile.in @@ -55,10 +55,29 @@ OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \ then echo ${objroot}/../binutils/objcopy ; \ else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi` +# object files needed +COMMON_FILES = syscalls \ + or1k_uart \ + outbyte \ + caches-asm \ + exceptions \ + exceptions-asm \ + interrupts \ + interrupts-asm \ + mmu-asm \ + timer \ + sbrk \ + impure \ + util \ + sync-asm + +LIBOR1K_FILES = $(COMMON_FILES) +LIBOR1K_OBJS = $(addsuffix .o,$(LIBOR1K_FILES)) + GCC_LDFLAGS = `if [ -d ${objroot}/../gcc ] ; \ then echo -L${objroot}/../gcc ; fi` -OUTPUTS = crt0.o +OUTPUTS = libor1k.a crt0.o # Host specific makefile fragment comes in here. @host_makefile_frag@ @@ -70,6 +89,10 @@ all: ${OUTPUTS} # here's where we build the library for each target # +libor1k.a: $(LIBOR1K_OBJS) + ${AR} ${ARFLAGS} $@ $(LIBOR1K_OBJS) + ${RANLIB} $@ + doc: clean mostlyclean: |