mirror of
https://frontier.innolan.net/github/amigaos-cross-toolchain6.git
synced 2024-10-19 10:29:55 +00:00
Modify gcc's specs to support library and device linking.
This commit is contained in:
@ -4,7 +4,7 @@ CFLAGS = -Os -Wall -fomit-frame-pointer
|
||||
CXXFLAGS = -Os -Wall -fomit-frame-pointer
|
||||
|
||||
BINS = hello-ks13 hello-ks20 hello-stdio hello-iostream hello-mui test-mmu \
|
||||
simple.library simple.r.library simple.device
|
||||
simple.library simple.library_r simple.device
|
||||
|
||||
all: $(BINS) $(OBJS)
|
||||
|
||||
@ -30,20 +30,14 @@ hello-mui: hello-mui.c
|
||||
test-mmu: CFLAGS += -m68060 -msmall-code
|
||||
test-mmu: test-mmu.c
|
||||
|
||||
simple-device.o: CC += -fbaserel
|
||||
simple-device.o: simple-device.c
|
||||
simple.library: simple-library.c
|
||||
$(CC) -ramiga-lib -fbaserel $(CFLAGS) -o $@ $^
|
||||
|
||||
simple-library.o: CC += -fbaserel
|
||||
simple-library.o: simple-library.c
|
||||
simple.library_r: simple-library.c
|
||||
$(CC) -ramiga-libr -resident $(CFLAGS) -o $@ $^
|
||||
|
||||
simple.library: simple-library.o
|
||||
$(CC) -fbaserel -amiga-lib $(CFLAGS) -o $@ $^
|
||||
|
||||
simple.r.library: simple-library.o
|
||||
$(CC) -fbaserel -amiga-libr $(CFLAGS) -o $@ $^
|
||||
|
||||
simple.device: simple-device.o
|
||||
$(CC) -fbaserel -amiga-dev $(CFLAGS) -o $@ $^
|
||||
simple.device: simple-device.c
|
||||
$(CC) -ramiga-dev -fbaserel $(CFLAGS) -o $@ $^
|
||||
|
||||
clean:
|
||||
rm -f $(BINS)
|
||||
|
||||
@ -114,8 +114,15 @@ Boston, MA 02111-1307, USA. */
|
||||
"%{!resident:%{!fbaserel:%{!resident32:%{!fbaserel32:" \
|
||||
"%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}}}}}}" \
|
||||
"%{noixemul:" \
|
||||
"%{resident:libnix/nrcrt0.o%s} " \
|
||||
"%{!resident:%{fbaserel:libnix/nbcrt0.o%s}%{!fbaserel:libnix/ncrt0.o%s}}} "
|
||||
"%{ramiga-*:" \
|
||||
"%{ramiga-lib:libnix/libinit.o%s}" \
|
||||
"%{ramiga-libr:libnix/libinitr.o%s}" \
|
||||
"%{ramiga-dev:libnix/devinit.o%s}}" \
|
||||
"%{!ramiga-*:" \
|
||||
"%{resident:libnix/nrcrt0.o%s}" \
|
||||
"%{!resident:" \
|
||||
"%{fbaserel:libnix/nbcrt0.o%s}" \
|
||||
"%{!fbaserel:libnix/ncrt0.o%s}}}}" \
|
||||
|
||||
#define ENDFILE_SPEC "%{noixemul:-lstubs}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user