mirror of
https://github.com/bebbo/amiga-gcc.git
synced 2026-05-02 19:11:45 +00:00
Compare commits
9 Commits
6bd041409a
...
dd836ce025
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dd836ce025 | ||
|
|
0ee9bdae99 | ||
|
|
6473ba9c4a | ||
|
|
849098648b | ||
|
|
5dd314064a | ||
|
|
ca2f7c1bf1 | ||
|
|
9a9a8db78b | ||
|
|
6862ad9f13 | ||
|
|
b07fff85fe |
69
Makefile
69
Makefile
@@ -136,8 +136,8 @@ help:
|
||||
# =================================================
|
||||
# all
|
||||
# =================================================
|
||||
.PHONY: all gcc gprof binutils fd2sfd fd2pragma ira sfdc vasm vbcc vlink libnix ixemul libgcc clib2 libdebug libSDL12 libpthread ndk ndk13
|
||||
all: gcc binutils gprof fd2sfd fd2pragma ira sfdc vbcc vasm vlink libnix ixemul libgcc clib2 libdebug libSDL12 ndk ndk13
|
||||
.PHONY: all gcc gdb gprof binutils fd2sfd fd2pragma ira sfdc vasm vbcc vlink libnix ixemul libgcc clib2 libdebug libSDL12 libpthread ndk ndk13
|
||||
all: gcc binutils gdb gprof fd2sfd fd2pragma ira sfdc vbcc vasm vlink libnix ixemul libgcc clib2 libdebug libSDL12 ndk ndk13
|
||||
|
||||
# =================================================
|
||||
# clean
|
||||
@@ -342,14 +342,7 @@ $(BUILD)/binutils/_done: $(BUILD)/binutils/Makefile $(shell find 2>/dev/null pro
|
||||
$(L0)"make binutils gas"$(L1)$(MAKE) -C $(BUILD)/binutils all-gas $(L2)
|
||||
$(L0)"make binutils binutils"$(L1)$(MAKE) -C $(BUILD)/binutils all-binutils $(L2)
|
||||
$(L0)"make binutils ld"$(L1)$(MAKE) -C $(BUILD)/binutils all-ld $(L2)
|
||||
ifeq (,$(ALL_GDB))
|
||||
$(L0)"install binutils"$(L1)$(MAKE) -C $(BUILD)/binutils install-gas install-binutils install-ld $(L2)
|
||||
else
|
||||
$(L0)"make binutils configure gdb"$(L1)$(MAKE) -C $(BUILD)/binutils configure-gdb $(L2)
|
||||
$(L0)"make binutils libgdb.a"$(L1)$(MAKE) -C $(BUILD)/binutils/gdb libgdb.a $(L2)
|
||||
$(L0)"make binutils gdb"$(L1)$(MAKE) -C $(BUILD)/binutils $(ALL_GDB) $(L2)
|
||||
$(L0)"install binutils"$(L1)$(MAKE) -C $(BUILD)/binutils install-gas install-binutils install-ld $(INSTALL_GDB) $(L2)
|
||||
endif
|
||||
@echo "done" >$@
|
||||
|
||||
$(BUILD)/binutils/Makefile: projects/binutils/configure
|
||||
@@ -360,6 +353,38 @@ $(BUILD)/binutils/Makefile: projects/binutils/configure
|
||||
projects/binutils/configure:
|
||||
@cd projects && git clone -b $(BINUTILS_BRANCH) --depth 16 $(GIT_BINUTILS) binutils
|
||||
|
||||
# =================================================
|
||||
# gdb
|
||||
# =================================================
|
||||
|
||||
gdb: $(BUILD)/binutils/_gdb
|
||||
|
||||
$(BUILD)/binutils/_gdb: $(BUILD)/binutils/_done
|
||||
ifneq (,$(ALL_GDB))
|
||||
$(L0)"make binutils configure gdb"$(L1)$(MAKE) -C $(BUILD)/binutils configure-gdb $(L2)
|
||||
$(L0)"make binutils gdb libs"$(L1)$(MAKE) -C $(BUILD)/binutils/gdb all-lib $(L2)
|
||||
$(L0)"make binutils gdb"$(L1)$(MAKE) -C $(BUILD)/binutils $(ALL_GDB) $(L2)
|
||||
$(L0)"install binutils gdb"$(L1)$(MAKE) -C $(BUILD)/binutils install-gas install-binutils install-ld $(INSTALL_GDB) $(L2)
|
||||
endif
|
||||
@echo "done" >$@
|
||||
|
||||
|
||||
# =================================================
|
||||
# gprof
|
||||
# =================================================
|
||||
CONFIG_GRPOF := --prefix=$(PREFIX) --target=m68k-amigaos --disable-werror
|
||||
|
||||
gprof: $(BUILD)/binutils/_gprof
|
||||
|
||||
$(BUILD)/binutils/_gprof: $(BUILD)/binutils/gprof/Makefile $(shell find 2>/dev/null projects/binutils/gprof -type f)
|
||||
$(L0)"make gprof"$(L1)$(MAKE) -C $(BUILD)/binutils/gprof all $(L2)
|
||||
$(L0)"install gprof"$(L1)$(MAKE) -C $(BUILD)/binutils/gprof install $(L2)
|
||||
@echo "done" >$@
|
||||
|
||||
$(BUILD)/binutils/gprof/Makefile: projects/binutils/configure $(BUILD)/binutils/_done
|
||||
@mkdir -p $(BUILD)/binutils/gprof
|
||||
$(L0)"configure gprof"$(L1) cd $(BUILD)/binutils/gprof && $(E) $(PWD)/projects/binutils/gprof/configure $(CONFIG_GRPOF) $(L2)
|
||||
|
||||
# =================================================
|
||||
# gcc
|
||||
# =================================================
|
||||
@@ -398,22 +423,6 @@ endif
|
||||
projects/gcc/configure:
|
||||
@cd projects && git clone -b $(GCC_BRANCH) --depth 16 $(GIT_GCC)
|
||||
|
||||
# =================================================
|
||||
# gprof
|
||||
# =================================================
|
||||
CONFIG_GRPOF := --prefix=$(PREFIX) --target=m68k-amigaos --disable-werror
|
||||
|
||||
gprof: $(BUILD)/binutils/_gprof
|
||||
|
||||
$(BUILD)/binutils/_gprof: $(BUILD)/binutils/gprof/Makefile $(shell find 2>/dev/null projects/binutils/gprof -type f)
|
||||
$(L0)"make gprof"$(L1)$(MAKE) -C $(BUILD)/binutils/gprof all $(L2)
|
||||
$(L0)"install gprof"$(L1)$(MAKE) -C $(BUILD)/binutils/gprof install $(L2)
|
||||
@echo "done" >$@
|
||||
|
||||
$(BUILD)/binutils/gprof/Makefile: projects/binutils/configure $(BUILD)/binutils/_done
|
||||
@mkdir -p $(BUILD)/binutils/gprof
|
||||
$(L0)"configure gprof"$(L1) cd $(BUILD)/binutils/gprof && $(E) $(PWD)/projects/binutils/gprof/configure $(CONFIG_GRPOF) $(L2)
|
||||
|
||||
# =================================================
|
||||
# fd2sfd
|
||||
# =================================================
|
||||
@@ -624,6 +633,7 @@ SYS_INCLUDE2 = $(filter-out $(NDK_INCLUDE_PROTO),$(patsubst projects/NDK_3.9/Inc
|
||||
ndk: $(BUILD)/ndk-include_ndk
|
||||
|
||||
$(BUILD)/ndk-include_ndk: $(BUILD)/ndk-include_ndk0 $(NDK_INCLUDE_INLINE) $(NDK_INCLUDE_LVO) $(NDK_INCLUDE_PROTO) projects/fd2sfd/configure projects/fd2pragma/makefile
|
||||
$(MAKE) ndk_inc=1 ndk-proto ndk-lvo ndk-inline
|
||||
@mkdir -p $(BUILD)/ndk-include/
|
||||
@echo "done" >$@
|
||||
|
||||
@@ -871,18 +881,15 @@ newlib: $(BUILD)/newlib/_done
|
||||
$(BUILD)/newlib/_done: $(BUILD)/newlib/newlib/libc.a
|
||||
@echo "done" >$@
|
||||
|
||||
$(BUILD)/newlib/newlib/libc.a: $(BUILD)/newlib/newlib/Makefile $(BUILD)/ndk-include_ndk $(NEWLIB_FILES)
|
||||
$(BUILD)/newlib/newlib/libc.a: $(BUILD)/newlib/newlib/Makefile $(NEWLIB_FILES)
|
||||
@rsync -a $(PWD)/projects/newlib-cygwin/newlib/libc/include/ $(PREFIX)/m68k-amigaos/sys-include
|
||||
@rsync -a $(PWD)/projects/newlib-cygwin/newlib/libc/sys/amigaos/include/ $(PREFIX)/m68k-amigaos/sys-include
|
||||
$(L0)"make newlib"$(L1) $(MAKE) -C $(BUILD)/newlib/newlib $(L2)
|
||||
$(L0)"install newlib"$(L1) $(MAKE) -C $(BUILD)/newlib/newlib install $(L2)
|
||||
@for x in $$(find $(PREFIX)/m68k-amigaos/lib/* -name libm.a); do ln -sf $$x $${x%*m.a}__m__.a; done
|
||||
@touch $@
|
||||
|
||||
ifeq (,$(wildcard $(BUILD)/gcc/_done))
|
||||
$(BUILD)/newlib/newlib/Makefile: $(BUILD)/gcc/_done
|
||||
endif
|
||||
|
||||
$(BUILD)/newlib/newlib/Makefile: projects/newlib-cygwin/newlib/configure
|
||||
$(BUILD)/newlib/newlib/Makefile: projects/newlib-cygwin/newlib/configure $(BUILD)/gcc/_done $(BUILD)/ndk-include_ndk
|
||||
@mkdir -p $(BUILD)/newlib/newlib
|
||||
$(L0)"configure newlib"$(L1) cd $(BUILD)/newlib/newlib && $(NEWLIB_CONFIG) CFLAGS="$(CFLAGS_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" $(PWD)/projects/newlib-cygwin/newlib/configure --host=m68k-amigaos --prefix=$(PREFIX) --enable-newlib-io-long-long --enable-newlib-io-c99-formats --enable-newlib-reent-small --enable-newlib-mb $(L2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user