#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# srcdir = :
program_transform_name =
exec_prefix = {prefix}
-bindir = {exec_prefix}:bin
+bindir = {exec_prefix}bin:
libdir = {exec_prefix}:lib
tooldir = {exec_prefix}:{target_alias}
{STRIP_PROG} \Option-f {ADDL_LIBS} "{o}"objcopy.c.o "{o}"is-strip.c.o {BFD}
Link {LDFLAGS} -o {STRIP_PROG} "{o}"objcopy.c.o "{o}"is-strip.c.o {ADDL_LIBS} {EXTRALIBS}
-{NM_PROG} \Option-f {ADDL_LIBS} "{o}"nm.c.o "{o}"demangle.c.o {BFD}
- Link {LDFLAGS} -o {NM_PROG} "{o}"nm.c.o "{o}"demangle.c.o {ADDL_LIBS} {EXTRALIBS}
+{NM_PROG} \Option-f {ADDL_LIBS} "{o}"nm.c.o {BFD}
+ Link {LDFLAGS} -o {NM_PROG} "{o}"nm.c.o {ADDL_LIBS} {EXTRALIBS}
{OBJDUMP_PROG} \Option-f {ADDL_LIBS} "{o}"objdump.c.o {BFD} {OPCODES}
Link {LDFLAGS} -o {OBJDUMP_PROG} "{o}"objdump.c.o {OPCODES} {ADDL_LIBS} {EXTRALIBS}
"{o}"version.c.o \Option-f "{s}"version.c
{CC} {INCLUDES} {HDEFINES} {TDEFINES} -d VERSION='"{VERSION}"' {CFLAGS} "{srcdir}"version.c -o "{o}"version.c.o
-"{o}"demangle.c.o \Option-f "{BASEDIR}"libiberty:cplus-dem.c
- {CC} {INCLUDES} {HDEFINES} {TDEFINES} {CFLAGS} "{BASEDIR}"libiberty:cplus-dem.c -o "{o}"cplus-dem.c.o
- Rename -y "{o}"cplus-dem.c.o "{o}"demangle.c.o
-
-# For parallel compiling, depend on "{o}"demangle.c.o so that one gets done first.
-"{o}"cplus-dem.c.o \Option-f "{BASEDIR}"libiberty:cplus-dem.c "{INCDIR}":getopt.h "{o}"demangle.c.o
- {CC} -d MAIN {INCLUDES} {HDEFINES} {TDEFINES} {CFLAGS} "{BASEDIR}"libiberty:cplus-dem.c -o "{o}"cplus-dem.c.o
+"{o}"cplus-dem.c.o \Option-f "{BASEDIR}"libiberty:cplus-dem.c
+ {CC} -d MAIN -d VERSION='"{VERSION}"' {INCLUDES} {HDEFINES} {TDEFINES} {CFLAGS} "{BASEDIR}"libiberty:cplus-dem.c -o "{o}"cplus-dem.c.o
{DEMANGLER_PROG} \Option-f "{o}"cplus-dem.c.o {LIBIBERTY} "{o}"underscore.c.o "{o}"version.c.o
- Link {LDFLAGS} -o {DEMANGLER_PROG} "{o}"cplus-dem.c.o {LIBIBERTY} {EXTRALIBS} "{o}"underscore.c.o "{o}"version.c.o
+ Link {LDFLAGS} -o {DEMANGLER_PROG} "{o}"cplus-dem.c.o {LIBIBERTY} {EXTRALIBS} "{o}"underscore.c.o
-:arparse.h :arparse.c \Option-f "{s}"arparse.y
+"{o}"arparse.c \Option-f "{s}"arparse.y
{BISON} {BISONFLAGS} "{srcdir}"arparse.y
- Rename -y y.tab.c :arparse.c
- Rename -y y.tab.h :arparse.h
+ Rename -y y.tab.c "{o}"arparse.c
+ Rename -y y.tab.h "{o}"arparse.h
+
+"{o}"arparse.h \Option-f "{o}"arparse.c
-:arlex.c \Option-f "{s}"arlex.l
+"{o}"arlex.c \Option-f "{s}"arlex.l
{LEX} {LEX_OPTIONS} "{srcdir}"arlex.l
- Rename -y :lex.yy.c :arlex.c
+ Rename -y :lex.yy.c "{o}"arlex.c
{AR_PROG} \Option-f {ADDL_LIBS} "{o}"ar.c.o "{o}"arparse.c.o "{o}"arlex.c.o "{o}"not-ranlib.c.o {BFD} "{o}"arsup.c.o
Link {LDFLAGS} -o {AR_PROG} "{o}"ar.c.o "{o}"arparse.c.o "{o}"arlex.c.o "{o}"arsup.c.o "{o}"not-ranlib.c.o {ADDL_LIBS} {EXTRALIBS}
"{INCDIR}":obstack.h ::bfd:sysdep.h "{BFDDIR}":hosts:std-host.h \Option-d
"{INCDIR}":fopen-same.h "{s}"bucomm.h "{INCDIR}":aout:ar.h \Option-d
"{BFDDIR}":libbfd.h "{s}"arsup.h
-"{o}"arparse.c.o \Option-f :arparse.c ::bfd:bfd.h "{INCDIR}":ansidecl.h \Option-d
+"{o}"arparse.c.o \Option-f "{o}"arparse.c ::bfd:bfd.h "{INCDIR}":ansidecl.h \Option-d
"{INCDIR}":obstack.h "{s}"arsup.h
-"{o}"arlex.c.o \Option-f :arlex.c :arparse.h
+"{o}"arlex.c.o \Option-f :arlex.c "{o}"arparse.h
"{o}"not-ranlib.c.o \Option-f "{s}"not-ranlib.c
"{o}"arsup.c.o \Option-f "{s}"arsup.c ::bfd:bfd.h "{INCDIR}":ansidecl.h \Option-d
"{INCDIR}":obstack.h "{s}"arsup.h "{s}"bucomm.h
TAGS \Option-f force
etags {INCDIR}:\Option-x.h "{srcdir}"\Option-x.[hc]
-install \Option-f all
- for i in {PROGS} ; do \Option-d
- {INSTALL_XFORM} $$i {bindir}:$$i ; \Option-d
- done
- for i in {MANPAGES} ; do \Option-d
- {INSTALL_XFORM1} "{srcdir}"$$i.1 {man1dir}:$$i.1 ; \Option-d
- done
- if [ -d {tooldir} ]; then \Option-d
- if [ -d {tooldir}:bin ] ; then true ; else mkdir {tooldir}:bin ; fi; \Option-d
- for i in nm strip ar ranlib; do \Option-d
- Delete -y {tooldir}:bin:$$i; \Option-d
- # ln {bindir}:`t='{program_transform_name}'; echo $$i | sed -e "" $$t` {tooldir}:bin:$$i \Option-d
- || {INSTALL_PROGRAM} $$i {tooldir}:bin:$$i; \Option-d
- done; \Option-d
- else true; fi
+install \Option-f all install-only
+
+install-only \Option-f
+ If "`Exists "{prefix}"`" == ""
+ Echo "{prefix}" does not exist, cannot install anything
+ Exit 1
+ End If
+ If "`Exists "{bindir}"`" == ""
+ NewFolder "{bindir}"
+ End If
+ # Need to copy all the tools
+ For prog in {PROGS}
+ Duplicate -y :{prog} "{bindir}"{prog}
+ End For
# Use binutils.info as the target so that VPATH will DTRT.
# (Use "$<\Option-x" in case the output is multiple files, though.)