mirror of
https://github.com/bebbo/amiga-gcc.git
synced 2026-05-04 21:03:48 +00:00
replace pushd with cd
This commit is contained in:
98
Makefile
98
Makefile
@@ -106,38 +106,38 @@ clean-prefix:
|
||||
update: update-gcc update-binutils update-fd2sfd update-fd2pragma update-ira update-sfdc update-vbcc update-vlink update-libnix update-ixemul update-clib2
|
||||
|
||||
update-gcc: projects/gcc/configure
|
||||
pushd projects/gcc; export DEPTH=1; while true; do echo "trying depth=$$DEPTH"; git pull --depth $$DEPTH && break; export DEPTH=$$(($$DEPTH+$$DEPTH));done
|
||||
cd projects/gcc && export DEPTH=1; while true; do echo "trying depth=$$DEPTH"; git pull --depth $$DEPTH && break; export DEPTH=$$(($$DEPTH+$$DEPTH));done
|
||||
GCCVERSION=$(shell cat 2>/dev/null projects/gcc/gcc/BASE-VER)
|
||||
|
||||
update-binutils: projects/binutils/configure
|
||||
pushd projects/binutils; git pull
|
||||
cd projects/binutils && git pull
|
||||
|
||||
update-fd2fsd: projects/fd2sfd/configure
|
||||
pushd projects/fd2sfd; git pull
|
||||
cd projects/fd2sfd && git pull
|
||||
|
||||
update-fd2pragma: projects/fd2pragma/makefile
|
||||
pushd projects/fd2pragma; git pull
|
||||
cd projects/fd2pragma && git pull
|
||||
|
||||
update-ira: projects/ira/Makefile
|
||||
pushd projects/ira; git pull
|
||||
cd projects/ira && git pull
|
||||
|
||||
update-sfdc: projects/sfdc/configure
|
||||
pushd projects/sfdc; git pull
|
||||
cd projects/sfdc && git pull
|
||||
|
||||
update-vbcc: projects/vbcc/Makefile
|
||||
pushd projects/vbcc; git pull
|
||||
cd projects/vbcc && git pull
|
||||
|
||||
update-vlink: projects/vlink/Makefile
|
||||
pushd projects/vlink; git pull
|
||||
cd projects/vlink && git pull
|
||||
|
||||
update-libnix: projects/libnix/configure
|
||||
pushd projects/libnix; git pull
|
||||
cd projects/libnix && git pull
|
||||
|
||||
update-ixemul: projects/ixemul/configure
|
||||
pushd projects/ixemul; git pull
|
||||
cd projects/ixemul && git pull
|
||||
|
||||
update-clib2: projects/clib2/LICENSE
|
||||
pushd projects/clib2; git pull
|
||||
cd projects/clib2 && git pull
|
||||
|
||||
status-all:
|
||||
GCCVERSION=$(shell cat 2>/dev/null projects/gcc/gcc/BASE-VER)
|
||||
@@ -161,18 +161,18 @@ GCCD = $(patsubst %,projects/gcc/%, $(GCC_DIR))
|
||||
gcc: build/gcc/_done
|
||||
|
||||
build/gcc/_done: build/gcc/Makefile $(shell find 2>/dev/null $(GCCD) -maxdepth 1 -type f ) build/binutils/_done
|
||||
pushd build/gcc; $(MAKE) all-gcc
|
||||
pushd build/gcc; $(MAKE) install-gcc
|
||||
cd build/gcc && $(MAKE) all-gcc
|
||||
cd build/gcc && $(MAKE) install-gcc
|
||||
echo "done" >build/gcc/_done
|
||||
@echo "built $(GCC)"
|
||||
|
||||
build/gcc/Makefile: projects/gcc/configure projects/ixemul/configure build/binutils/_done
|
||||
@mkdir -p build/gcc
|
||||
pushd build/gcc; $(E) $(PWD)/projects/gcc/configure $(CONFIG_GCC)
|
||||
cd build/gcc && $(E) $(PWD)/projects/gcc/configure $(CONFIG_GCC)
|
||||
|
||||
projects/gcc/configure:
|
||||
@mkdir -p projects
|
||||
pushd projects; git clone -b $(GCCBRANCH) --depth 1 https://github.com/bebbo/gcc
|
||||
cd projects && git clone -b $(GCCBRANCH) --depth 1 https://github.com/bebbo/gcc
|
||||
|
||||
# =================================================
|
||||
# binutils
|
||||
@@ -192,18 +192,18 @@ build/binutils/_done: build/binutils/Makefile $(shell find 2>/dev/null $(BINUTIL
|
||||
touch -d19710101 projects/binutils/binutils/arparse.y
|
||||
touch -d19710101 projects/binutils/binutils/arlex.l
|
||||
touch -d19710101 projects/binutils/ld/ldgram.y
|
||||
pushd build/binutils; $(MAKE)
|
||||
pushd build/binutils; $(MAKE) install
|
||||
cd build/binutils && $(MAKE)
|
||||
cd build/binutils && $(MAKE) install
|
||||
echo "done" >build/binutils/_done
|
||||
echo "build $(BINUTILS)"
|
||||
|
||||
build/binutils/Makefile: projects/binutils/configure
|
||||
@mkdir -p build/binutils
|
||||
pushd build/binutils; $(E) $(PWD)/projects/binutils/configure $(CONFIG_BINUTILS)
|
||||
cd build/binutils && $(E) $(PWD)/projects/binutils/configure $(CONFIG_BINUTILS)
|
||||
|
||||
projects/binutils/configure:
|
||||
@mkdir -p projects
|
||||
pushd projects; git clone -b master --depth 1 https://github.com/bebbo/amigaos-binutils-2.14 binutils
|
||||
cd projects && git clone -b master --depth 1 https://github.com/bebbo/amigaos-binutils-2.14 binutils
|
||||
|
||||
|
||||
# =================================================
|
||||
@@ -218,17 +218,17 @@ build/fd2sfd/_done: $(PREFIX)/bin/fd2sfd
|
||||
@echo "done" >$@
|
||||
|
||||
$(PREFIX)/bin/fd2sfd: build/fd2sfd/Makefile $(shell find 2>/dev/null projects/fd2sfd -not \( -path projects/fd2sfd/.git -prune \) -type f)
|
||||
pushd build/fd2sfd; $(MAKE) all
|
||||
cd build/fd2sfd && $(MAKE) all
|
||||
mkdir -p $(PREFIX)/bin/
|
||||
pushd build/fd2sfd; $(MAKE) install
|
||||
cd build/fd2sfd && $(MAKE) install
|
||||
|
||||
build/fd2sfd/Makefile: projects/fd2sfd/configure
|
||||
@mkdir -p build/fd2sfd
|
||||
pushd build/fd2sfd; $(E) $(PWD)/projects/fd2sfd/configure $(CONFIG_FD2SFD)
|
||||
cd build/fd2sfd && $(E) $(PWD)/projects/fd2sfd/configure $(CONFIG_FD2SFD)
|
||||
|
||||
projects/fd2sfd/configure:
|
||||
@mkdir -p projects
|
||||
pushd projects; git clone -b master --depth 1 https://github.com/cahirwpz/fd2sfd
|
||||
cd projects && git clone -b master --depth 1 https://github.com/cahirwpz/fd2sfd
|
||||
|
||||
# =================================================
|
||||
# fd2pragma
|
||||
@@ -245,11 +245,11 @@ $(PREFIX)/bin/fd2pragma: build/fd2pragma/fd2pragma
|
||||
|
||||
build/fd2pragma/fd2pragma: projects/fd2pragma/makefile $(shell find 2>/dev/null projects/fd2pragma -not \( -path projects/fd2pragma/.git -prune \) -type f)
|
||||
@mkdir -p build/fd2pragma
|
||||
pushd projects/fd2pragma; $(CC) -o $(PWD)/$@ $(CFLAGS) fd2pragma.c
|
||||
cd projects/fd2pragma && $(CC) -o $(PWD)/$@ $(CFLAGS) fd2pragma.c
|
||||
|
||||
projects/fd2pragma/makefile:
|
||||
@mkdir -p projects
|
||||
pushd projects; git clone -b master --depth 1 https://github.com/adtools/fd2pragma
|
||||
cd projects && git clone -b master --depth 1 https://github.com/adtools/fd2pragma
|
||||
|
||||
# =================================================
|
||||
# ira
|
||||
@@ -266,11 +266,11 @@ $(PREFIX)/bin/ira: build/ira/ira
|
||||
|
||||
build/ira/ira: projects/ira/Makefile $(shell find 2>/dev/null projects/ira -not \( -path projects/ira/.git -prune \) -type f)
|
||||
@mkdir -p build/ira
|
||||
pushd projects/ira; $(CC) -o $(PWD)/$@ $(CFLAGS) ira.c ira_2.c supp.c
|
||||
cd projects/ira && $(CC) -o $(PWD)/$@ $(CFLAGS) ira.c ira_2.c supp.c
|
||||
|
||||
projects/ira/Makefile:
|
||||
@mkdir -p projects
|
||||
pushd projects; git clone -b master --depth 1 https://github.com/bebbo/ira
|
||||
cd projects && git clone -b master --depth 1 https://github.com/bebbo/ira
|
||||
|
||||
# =================================================
|
||||
# sfdc
|
||||
@@ -284,17 +284,17 @@ build/sfdc/_done: $(PREFIX)/bin/sfdc
|
||||
@echo "done" >$@
|
||||
|
||||
$(PREFIX)/bin/sfdc: build/sfdc/Makefile $(shell find 2>/dev/null projects/sfdc -not \( -path projects/sfdc/.git -prune \) -type f)
|
||||
pushd build/sfdc; $(MAKE) sfdc
|
||||
cd build/sfdc && $(MAKE) sfdc
|
||||
mkdir -p $(PREFIX)/bin/
|
||||
install build/sfdc/sfdc $(PREFIX)/bin
|
||||
|
||||
build/sfdc/Makefile: projects/sfdc/configure
|
||||
rsync -a projects/sfdc build --exclude .git
|
||||
pushd build/sfdc; $(E) $(PWD)/build/sfdc/configure $(CONFIG_SFDC)
|
||||
cd build/sfdc && $(E) $(PWD)/build/sfdc/configure $(CONFIG_SFDC)
|
||||
|
||||
projects/sfdc/configure:
|
||||
@mkdir -p projects
|
||||
pushd projects; git clone -b master --depth 1 https://github.com/adtools/sfdc
|
||||
cd projects && git clone -b master --depth 1 https://github.com/adtools/sfdc
|
||||
|
||||
# =================================================
|
||||
# vbcc
|
||||
@@ -305,9 +305,9 @@ VBCC = $(patsubst %,$(PREFIX)/bin/%$(EXEEXT), $(VBCC_CMD))
|
||||
vbcc: build/vbcc/_done
|
||||
|
||||
build/vbcc/_done: build/vbcc/Makefile $(shell find 2>/dev/null projects/vbcc -not \( -path projects/vbcc/.git -prune \) -type f)
|
||||
pushd build/vbcc; TARGET=m68k $(MAKE) bin/dtgen
|
||||
pushd build/vbcc; echo -e "y\\ny\\nsigned char\\ny\\nunsigned char\\nn\\ny\\nsigned short\\nn\\ny\\nunsigned short\\nn\\ny\\nsigned int\\nn\\ny\\nunsigned int\\nn\\ny\\nsigned long long\\nn\\ny\\nunsigned long long\\nn\\ny\\nfloat\\nn\\ny\\ndouble\\n" >c.txt; bin/dtgen machines/m68k/machine.dt machines/m68k/dt.h machines/m68k/dt.c <c.txt
|
||||
pushd build/vbcc; TARGET=m68k $(MAKE)
|
||||
cd build/vbcc && TARGET=m68k $(MAKE) bin/dtgen
|
||||
cd build/vbcc && echo -e "y\\ny\\nsigned char\\ny\\nunsigned char\\nn\\ny\\nsigned short\\nn\\ny\\nunsigned short\\nn\\ny\\nsigned int\\nn\\ny\\nunsigned int\\nn\\ny\\nsigned long long\\nn\\ny\\nunsigned long long\\nn\\ny\\nfloat\\nn\\ny\\ndouble\\n" >c.txt; bin/dtgen machines/m68k/machine.dt machines/m68k/dt.h machines/m68k/dt.c <c.txt
|
||||
cd build/vbcc && TARGET=m68k $(MAKE)
|
||||
mkdir -p $(PREFIX)/bin/
|
||||
install build/vbcc/bin/v* $(PREFIX)/bin/
|
||||
@echo "done" >$@
|
||||
@@ -319,7 +319,7 @@ build/vbcc/Makefile: projects/vbcc/Makefile
|
||||
|
||||
projects/vbcc/Makefile:
|
||||
@mkdir -p projects
|
||||
pushd projects; git clone -b master --depth 1 https://github.com/leffmann/vbcc
|
||||
cd projects && git clone -b master --depth 1 https://github.com/leffmann/vbcc
|
||||
|
||||
# =================================================
|
||||
# vlink
|
||||
@@ -330,7 +330,7 @@ VLINK = $(patsubst %,$(PREFIX)/bin/%$(EXEEXT), $(VLINK_CMD))
|
||||
vlink: build/vlink/_done
|
||||
|
||||
build/vlink/_done: build/vlink/Makefile $(shell find 2>/dev/null projects/vlink -not \( -path projects/vlink/.git -prune \) -type f)
|
||||
pushd build/vlink; TARGET=m68k $(MAKE)
|
||||
cd build/vlink && TARGET=m68k $(MAKE)
|
||||
mkdir -p $(PREFIX)/bin/
|
||||
install build/vlink/vlink $(PREFIX)/bin/
|
||||
@echo "done" >$@
|
||||
@@ -341,7 +341,7 @@ build/vlink/Makefile: projects/vlink/Makefile
|
||||
|
||||
projects/vlink/Makefile:
|
||||
@mkdir -p projects
|
||||
pushd projects; git clone -b master --depth 1 https://github.com/leffmann/vlink
|
||||
cd projects && git clone -b master --depth 1 https://github.com/leffmann/vlink
|
||||
|
||||
# =================================================
|
||||
# L I B R A R I E S
|
||||
@@ -406,8 +406,8 @@ build/sys-include/_proto:
|
||||
|
||||
projects/NDK_3.9.info: download/NDK39.lha
|
||||
mkdir -p projects
|
||||
if [ ! -e "$$(which lha)" ]; then pushd build; rm -rf lha; git clone https://github.com/jca02266/lha; cd lha; aclocal; autoheader; automake -a; autoconf; ./configure; make all; install src/lha$(EXEEXT) /usr/bin; fi
|
||||
pushd projects; lha x ../download/NDK39.lha
|
||||
if [ ! -e "$$(which lha)" ]; then cd build && rm -rf lha; git clone https://github.com/jca02266/lha; cd lha; aclocal; autoheader; automake -a; autoconf; ./configure; make all; install src/lha$(EXEEXT) /usr/bin; fi
|
||||
cd projects && lha x ../download/NDK39.lha
|
||||
touch -d19710101 download/NDK39.lha
|
||||
for i in $$(find patches/NDK_3.9/ -type f); \
|
||||
do if [[ "$$i" == *.diff ]] ; \
|
||||
@@ -416,7 +416,7 @@ projects/NDK_3.9.info: download/NDK39.lha
|
||||
|
||||
download/NDK39.lha:
|
||||
mkdir -p download
|
||||
pushd download; wget http://www.haage-partner.de/download/AmigaOS/NDK39.lha
|
||||
cd download && wget http://www.haage-partner.de/download/AmigaOS/NDK39.lha
|
||||
|
||||
# =================================================
|
||||
# ixemul
|
||||
@@ -428,7 +428,7 @@ SYS_INCLUDE = $(patsubst projects/ixemul/include/%,$(PREFIX)/m68k-amigaos/sys-in
|
||||
|
||||
build/ixemul/Makefile: build/libnix/_dummydone projects/ixemul/configure $(shell find 2>/dev/null projects/ixemul -not \( -path projects/ixemul/.git -prune \) -type f)
|
||||
mkdir -p build/ixemul
|
||||
pushd build/ixemul; $(A) $(PWD)/projects/ixemul/configure $(CONFIG_IXEMUL)
|
||||
cd build/ixemul && $(A) $(PWD)/projects/ixemul/configure $(CONFIG_IXEMUL)
|
||||
|
||||
.PHONY: sys-include
|
||||
sys-include: build/sys-include/_done
|
||||
@@ -441,7 +441,7 @@ build/sys-include/_done: $(IXEMUL_INCLUDE) projects/ixemul/configure
|
||||
|
||||
projects/ixemul/configure:
|
||||
@mkdir -p projects
|
||||
pushd projects; git clone -b master --depth 1 https://github.com/bebbo/ixemul
|
||||
cd projects && git clone -b master --depth 1 https://github.com/bebbo/ixemul
|
||||
|
||||
# =================================================
|
||||
# libnix
|
||||
@@ -474,8 +474,8 @@ libnix: build/libnix/_done
|
||||
build/libnix/_done: build/libnix/Makefile
|
||||
mkdir -p $(PREFIX)/m68k-amigaos/libnix/lib/libnix/
|
||||
mkdir -p $(PREFIX)/m68k-amigaos/libnix/include/
|
||||
pushd build/libnix; $(MAKE)
|
||||
pushd build/libnix; $(MAKE) install
|
||||
cd build/libnix && $(MAKE)
|
||||
cd build/libnix && $(MAKE) install
|
||||
rsync -a projects/libnix/sources/headers/* $(PREFIX)/m68k-amigaos/libnix/include/
|
||||
@echo "done" >build/libnix/_done
|
||||
@echo "done" >build/libnix/_dummydone
|
||||
@@ -485,12 +485,12 @@ build/libnix/_done: build/libnix/Makefile
|
||||
build/libnix/Makefile: build/sys-include/_done build/sys-include/_done2 build/binutils/_done build/gcc/_done projects/libnix/configure $(LIBNIX_SRC)
|
||||
@rm -f build/libnix/_dummydone
|
||||
$(MAKE) build/libnix/_dummydone
|
||||
pushd build/libnix; AR=m68k-amigaos-ar AS=m68k-amigaos-as CC=m68k-amigaos-gcc $(A) $(PWD)/projects/libnix/configure $(CONFIG_LIBNIX)
|
||||
cd build/libnix && AR=m68k-amigaos-ar AS=m68k-amigaos-as CC=m68k-amigaos-gcc $(A) $(PWD)/projects/libnix/configure $(CONFIG_LIBNIX)
|
||||
touch build/libnix/Makefile
|
||||
|
||||
projects/libnix/configure:
|
||||
@mkdir -p projects
|
||||
pushd projects; git clone -b master --depth 1 https://github.com/bebbo/libnix
|
||||
cd projects && git clone -b master --depth 1 https://github.com/bebbo/libnix
|
||||
|
||||
# =================================================
|
||||
# libamiga
|
||||
@@ -513,8 +513,8 @@ LIBGCCS= $(patsubst %,$(PREFIX)/lib/gcc/m68k-amigaos/$(GCCVERSION)/%,$(LIBGCCS_N
|
||||
libgcc: build/gcc/_libgcc_done
|
||||
|
||||
build/gcc/_libgcc_done: build/libnix/_done $(LIBAMIGA)
|
||||
pushd build/gcc; $(MAKE) all-target
|
||||
pushd build/gcc; $(MAKE) install-target
|
||||
cd build/gcc && $(MAKE) all-target
|
||||
cd build/gcc && $(MAKE) install-target
|
||||
echo "done" >build/gcc/_libgcc_done
|
||||
echo "$(LIBGCCS)"
|
||||
|
||||
@@ -527,7 +527,7 @@ clib2: build/clib2/_done
|
||||
build/clib2/_done: projects/clib2/LICENSE $(shell find 2>/dev/null projects/clib2 -not \( -path projects/clib2/.git -prune \) -type f) build/libnix/_done $(LIBAMIGA)
|
||||
mkdir -p build/clib2/
|
||||
rsync -a projects/clib2/library/* build/clib2
|
||||
pushd build/clib2; $(MAKE) -f GNUmakefile.68k
|
||||
cd build/clib2 && $(MAKE) -f GNUmakefile.68k
|
||||
mkdir -p $(PREFIX)/m68k-amigaos/clib2
|
||||
rsync -a build/clib2/include $(PREFIX)/m68k-amigaos/clib2
|
||||
rsync -a build/clib2/lib $(PREFIX)/m68k-amigaos/clib2
|
||||
@@ -535,4 +535,4 @@ build/clib2/_done: projects/clib2/LICENSE $(shell find 2>/dev/null projects/clib
|
||||
|
||||
projects/clib2/LICENSE:
|
||||
@mkdir -p projects
|
||||
pushd projects; git clone -b master --depth 1 https://github.com/bebbo/clib2
|
||||
cd projects && git clone -b master --depth 1 https://github.com/bebbo/clib2
|
||||
|
||||
Reference in New Issue
Block a user