Line 66... |
Line 66... |
701_OBJS = sysc-701.o salib-701.o sparclet-stub.o
|
701_OBJS = sysc-701.o salib-701.o sparclet-stub.o
|
|
|
930_BSP = libslite930.a
|
930_BSP = libslite930.a
|
931_BSP = libslite931.a
|
931_BSP = libslite931.a
|
934_BSP = libslite934.a
|
934_BSP = libslite934.a
|
|
86X_BSP = libslite86x.a
|
|
|
# for the time being, built the stub without hardware breakpoint support
|
# for the time being, built the stub without hardware breakpoint support
|
SLITE_OBJS = salib.o sparcl-stub.o
|
SLITE_OBJS = salib.o sparcl-stub.o cache.o
|
|
|
# ERC32: SIS simulator, see sim/erc32.
|
# ERC32: SIS simulator, see sim/erc32.
|
ERC32_CRT0 = erc32-crt0.o
|
ERC32_CRT0 = erc32-crt0.o
|
ERC32_BSP = liberc32.a
|
ERC32_BSP = liberc32.a
|
ERC32_OBJS = erc32-io.o traps.o erc32-stub.o debug.o
|
ERC32_OBJS = erc32-io.o traps.o erc32-stub.o debug.o fixctors.o
|
ERC32_ALL = $(ERC32_CRT0) $(ERC32_BSP)
|
ERC32_ALL = $(ERC32_CRT0) $(ERC32_BSP)
|
|
|
CRT0 = crt0.o
|
CRT0 = crt0.o
|
OBJS = close.o fstat.o getpid.o isatty.o kill.o \
|
OBJS = close.o fstat.o getpid.o isatty.o kill.o \
|
lseek.o open.o print.o putnum.o read.o sbrk.o stat.o \
|
lseek.o open.o print.o putnum.o read.o sbrk.o stat.o \
|
Line 101... |
Line 103... |
SPARC64_INSTALL = sparc-install
|
SPARC64_INSTALL = sparc-install
|
SPARC64_OBJ_FORMAT = sparc:v9
|
SPARC64_OBJ_FORMAT = sparc:v9
|
SPARC64_RAM_START = 0x4000
|
SPARC64_RAM_START = 0x4000
|
|
|
# sparclite stuff
|
# sparclite stuff
|
SLITE_ALL = $(930_BSP) $(931_BSP) $(CYGMON_BSP) $(CYGMON_CRT0) $(objdir)/cygmon.ld # $(934_BSP)
|
SLITE_ALL = $(930_BSP) $(931_BSP) $(CYGMON_BSP) $(CYGMON_CRT0) $(objdir)/cygmon.ld $(934_BSP) $(86X_BSP)
|
SLITE_INSTALL = slite-install
|
SLITE_INSTALL = slite-install
|
SLITE_OBJ_FORMAT = sparc
|
SLITE_OBJ_FORMAT = sparc
|
SLITE_RAM_START = 0x40050000
|
SLITE_RAM_START = 0x40050000
|
|
|
# sparclet stuff
|
# sparclet stuff
|
Line 116... |
Line 118... |
@host_makefile_frag@
|
@host_makefile_frag@
|
|
|
all: ${CRT0} $($(CPU)_ALL) $(ERC32_ALL)
|
all: ${CRT0} $($(CPU)_ALL) $(ERC32_ALL)
|
|
|
$(CYGMON_CRT0): cygmon-crt0.S
|
$(CYGMON_CRT0): cygmon-crt0.S
|
$(CC) $(CFLAGS_FOR_TARGET) -DTARGET_CPU_$(CPU) $(INCLUDES) -o $@ -c $(srcdir)/cygmon-crt0.S
|
$(CC) $(CFLAGS_FOR_TARGET) $(CFLAGS) -DTARGET_CPU_$(CPU) $(INCLUDES) -o $@ -c $(srcdir)/cygmon-crt0.S
|
|
|
$(CYGMON_BSP): $(CYGMON_OBJS)
|
$(CYGMON_BSP): $(CYGMON_OBJS)
|
@rm -f $@
|
@rm -f $@
|
${AR} ${AR_FLAGS} $@ $(CYGMON_OBJS)
|
${AR} ${AR_FLAGS} $@ $(CYGMON_OBJS)
|
${RANLIB} $@
|
${RANLIB} $@
|
Line 129... |
Line 131... |
# ${CC} -nostdlib -r $(SLITE_OBJS) $(SHARED_OBJS) -o $(930_BSP)
|
# ${CC} -nostdlib -r $(SLITE_OBJS) $(SHARED_OBJS) -o $(930_BSP)
|
# ${CC} -DSL931 -nostdlib -r $(SLITE_OBJS) $(SHARED_OBJS) -o $(931_BSP)
|
# ${CC} -DSL931 -nostdlib -r $(SLITE_OBJS) $(SHARED_OBJS) -o $(931_BSP)
|
# ${CC} -nostdlib -r $(SLITE_OBJS) $(SHARED_OBJS) -o $(934_BSP)
|
# ${CC} -nostdlib -r $(SLITE_OBJS) $(SHARED_OBJS) -o $(934_BSP)
|
|
|
$(CRT0): $(srcdir)/crt0.S $(srcdir)/asm.h $(srcdir)/slite.h
|
$(CRT0): $(srcdir)/crt0.S $(srcdir)/asm.h $(srcdir)/slite.h
|
$(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) -o $@ -c $(srcdir)/crt0.S
|
$(CC) $(CFLAGS_FOR_TARGET) $(CFLAGS) $(INCLUDES) -o $@ -c $(srcdir)/crt0.S
|
|
|
$(930_BSP) $(931_BSP) $(934_BSP): $(OBJS) $(SLITE_OBJS)
|
$(930_BSP) $(931_BSP) $(934_BSP) $(86X_BSP): $(OBJS) $(SLITE_OBJS)
|
@rm -f $@
|
@rm -f $@
|
${AR} ${AR_FLAGS} $@ $(OBJS) $(SLITE_OBJS)
|
${AR} ${AR_FLAGS} $@ $(OBJS) $(SLITE_OBJS)
|
${RANLIB} $@
|
${RANLIB} $@
|
|
|
$(701_BSP): $(701_OBJS)
|
$(701_BSP): $(701_OBJS)
|
@rm -f $@
|
@rm -f $@
|
${AR} ${AR_FLAGS} $@ $(701_OBJS)
|
${AR} ${AR_FLAGS} $@ $(701_OBJS)
|
${RANLIB} $@
|
${RANLIB} $@
|
|
|
erc32-crt0.o: $(srcdir)/erc32-crt0.S $(srcdir)/asm.h $(srcdir)/slite.h
|
erc32-crt0.o: $(srcdir)/erc32-crt0.S $(srcdir)/asm.h $(srcdir)/slite.h
|
$(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) -o $@ -c $(srcdir)/erc32-crt0.S
|
$(CC) $(CFLAGS_FOR_TARGET) $(CFLAGS) $(INCLUDES) -o $@ -c $(srcdir)/erc32-crt0.S
|
|
|
liberc32.a: $(OBJS) $(ERC32_OBJS)
|
liberc32.a: $(OBJS) $(ERC32_OBJS)
|
@rm -f $@
|
@rm -f $@
|
${AR} ${AR_FLAGS} $@ $(OBJS) $(ERC32_OBJS)
|
${AR} ${AR_FLAGS} $@ $(OBJS) $(ERC32_OBJS)
|
${RANLIB} $@
|
${RANLIB} $@
|
Line 154... |
Line 156... |
crt0-701.o: crt0-701.S
|
crt0-701.o: crt0-701.S
|
sysc-701.o: sysc-701.c
|
sysc-701.o: sysc-701.c
|
salib-701.o: salib-701.c
|
salib-701.o: salib-701.c
|
sparclet-stub.o: sparclet-stub.c
|
sparclet-stub.o: sparclet-stub.c
|
cygmon-salib.o: cygmon-salib.c
|
cygmon-salib.o: cygmon-salib.c
|
$(CC) -DTARGET_CPU_$(CPU) $(CFLAGS_FOR_TARGET) $(INCLUDES) -o $@ -c $(srcdir)/cygmon-salib.c
|
$(CC) -DTARGET_CPU_$(CPU) $(CFLAGS_FOR_TARGET) $(CFLAGS) $(INCLUDES) -o $@ -c $(srcdir)/cygmon-salib.c
|
|
cache.o: $(srcdir)/cache.c
|
salib.o: $(srcdir)/salib.c
|
salib.o: $(srcdir)/salib.c
|
win.o: $(srcdir)/win.S
|
win.o: $(srcdir)/win.S
|
syscalls.o: $(srcdir)/syscalls.c
|
syscalls.o: $(srcdir)/syscalls.c
|
sparcl-stub.o: $(srcdir)/sparcl-stub.c $(srcdir)/../debug.h $(srcdir)/../debug.c
|
sparcl-stub.o: $(srcdir)/sparcl-stub.c $(srcdir)/../debug.h $(srcdir)/../debug.c
|
erc32-stub.o: $(srcdir)/erc32-stub.c $(srcdir)/../debug.h $(srcdir)/../debug.c
|
erc32-stub.o: $(srcdir)/erc32-stub.c $(srcdir)/../debug.h $(srcdir)/../debug.c
|
|
fixctors.o : $(srcdir)/fixctors.c
|
|
|
$(objdir)/cygmon.ld: @CYGMONLDSCRIPTTEMPL@
|
$(objdir)/cygmon.ld: @CYGMONLDSCRIPTTEMPL@
|
sed 's/TARGET_OBJ_FORMAT/$($(CPU)_OBJ_FORMAT)/g;s/TARGET_RAM_START/$($(CPU)_RAM_START)/g;' < $(<) > $(objdir)/cygmon.ld
|
sed 's/TARGET_OBJ_FORMAT/$($(CPU)_OBJ_FORMAT)/g;s/TARGET_RAM_START/$($(CPU)_RAM_START)/g;' < $(<) > $(objdir)/cygmon.ld
|
|
|
install: $($(CPU)_INSTALL)
|
install: $($(CPU)_INSTALL)
|
Line 176... |
Line 180... |
$(INSTALL_DATA) $(CYGMON_CRT0) $(tooldir)/lib${MULTISUBDIR}
|
$(INSTALL_DATA) $(CYGMON_CRT0) $(tooldir)/lib${MULTISUBDIR}
|
|
|
slite-install:
|
slite-install:
|
$(INSTALL_DATA) $(930_BSP) $(tooldir)/lib${MULTISUBDIR}/$(930_BSP)
|
$(INSTALL_DATA) $(930_BSP) $(tooldir)/lib${MULTISUBDIR}/$(930_BSP)
|
$(INSTALL_DATA) $(931_BSP) $(tooldir)/lib${MULTISUBDIR}/$(931_BSP)
|
$(INSTALL_DATA) $(931_BSP) $(tooldir)/lib${MULTISUBDIR}/$(931_BSP)
|
# $(INSTALL_DATA) $(934_BSP) $(tooldir)/lib${MULTISUBDIR}/$(934_BSP)
|
$(INSTALL_DATA) $(934_BSP) $(tooldir)/lib${MULTISUBDIR}/$(934_BSP)
|
|
$(INSTALL_DATA) $(86X_BSP) $(tooldir)/lib${MULTISUBDIR}/$(86X_BSP)
|
$(INSTALL_DATA) $(srcdir)/ex930.ld $(tooldir)/lib${MULTISUBDIR}
|
$(INSTALL_DATA) $(srcdir)/ex930.ld $(tooldir)/lib${MULTISUBDIR}
|
$(INSTALL_DATA) $(srcdir)/ex931.ld $(tooldir)/lib${MULTISUBDIR}
|
$(INSTALL_DATA) $(srcdir)/ex931.ld $(tooldir)/lib${MULTISUBDIR}
|
$(INSTALL_DATA) $(srcdir)/ex934.ld $(tooldir)/lib${MULTISUBDIR}
|
$(INSTALL_DATA) $(srcdir)/ex934.ld $(tooldir)/lib${MULTISUBDIR}
|
|
$(INSTALL_DATA) $(srcdir)/sparc86x.ld $(tooldir)/lib${MULTISUBDIR}
|
$(INSTALL_DATA) $(srcdir)/elfsim.ld $(tooldir)/lib${MULTISUBDIR}
|
$(INSTALL_DATA) $(srcdir)/elfsim.ld $(tooldir)/lib${MULTISUBDIR}
|
$(INSTALL_DATA) $(ERC32_CRT0) $(tooldir)/lib${MULTISUBDIR}
|
$(INSTALL_DATA) $(ERC32_CRT0) $(tooldir)/lib${MULTISUBDIR}
|
$(INSTALL_DATA) $(ERC32_BSP) $(tooldir)/lib${MULTISUBDIR}
|
$(INSTALL_DATA) $(ERC32_BSP) $(tooldir)/lib${MULTISUBDIR}
|
$(INSTALL_DATA) $(objdir)/traps.o $(tooldir)/lib${MULTISUBDIR}
|
$(INSTALL_DATA) $(objdir)/traps.o $(tooldir)/lib${MULTISUBDIR}
|
$(INSTALL_DATA) $(CYGMON_BSP) $(tooldir)/lib${MULTISUBDIR}
|
$(INSTALL_DATA) $(CYGMON_BSP) $(tooldir)/lib${MULTISUBDIR}
|