--- /dev/null
+# $Id: Makefile.bsd-wrapper,v 1.1 1996/01/08 15:54:12 niklas Exp $
+
+MAN= binutils/ar.1 binutils/nlmconv.1 binutils/nm.1 binutils/objcopy.1 \
+ binutils/objdump.1 binutils/ranlib.1 binutils/size.1 \
+ binutils/strings.1 binutils/strip.1 gas/doc/as.1 ld/ld.1 \
+ gprof/gprof.1
+
+# So far only gas is useful for us. This will change, be sure.
+all: config.status
+ ${MAKE} LDFLAGS=${LDSTATIC} all-gas
+
+.FORCE: .IGNORE
+
+config: .FORCE
+ sh ${.CURDIR}/configure --prefix=/usr
+
+config.status:
+ sh ${.CURDIR}/configure --prefix=/usr
+
+install: maninstall
+ ${MAKE} prefix=${DESTDIR}/usr infodir=${DESTDIR}/usr/share/info \
+ bindir=${DESTDIR}/usr/bin INSTALL_MAN= install-gas install-ld
+
+clean cleandir:
+ -@if [ -e Makefile ]; then ${MAKE} realclean; fi
+
+depend:
+ # Nothing here so far...
+
+lint:
+ # Nothing here so far...
+
+tags:
+ # Nothing here so far...
+
+.include <bsd.obj.mk>
+.include <bsd.subdir.mk>
+.include <bsd.man.mk>
then echo $${srcroot}/dejagnu/runtest ; \
else echo runtest ; fi`
-
# compilers to use to create programs which must be run in the build
# environment.
CC_FOR_BUILD = $(CC)
"RUNTEST=$(RUNTEST)" \
"RUNTESTFLAGS=$(RUNTESTFLAGS)" \
"YACC=$(BISON)" \
+ "INSTALL_MAN=$(INSTALL_MAN)" \
"exec_prefix=$(exec_prefix)" \
"prefix=$(prefix)" \
"tooldir=$(tooldir)"
targ_selvecs=cisco_core_vec
targ_underscore=yes
;;
- m68*-*-elf* | m68*-*-sysv4* | m68*-cbm-*)
+ m68*-*-elf* | m68*-*-sysv4*)
targ_defvec=bfd_elf32_m68k_vec
targ_selvecs=m68kcoff_vec
;;
amiga:NetBSD:*:*)
echo m68k-cbm-netbsd${UNAME_RELEASE}
exit 0 ;;
+ amiga:OpenBSD:*:*)
+ echo m68k-cbm-openbsd${UNAME_RELEASE}
+ exit 0 ;;
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
echo arm-acorn-riscix${UNAME_RELEASE}
exit 0;;
atari*:NetBSD:*:*)
echo m68k-atari-netbsd${UNAME_RELEASE}
exit 0 ;;
+ atari*:OpenBSD:*:*)
+ echo m68k-atari-openbsd${UNAME_RELEASE}
+ exit 0 ;;
sun3*:NetBSD:*:*)
echo m68k-sun-netbsd${UNAME_RELEASE}
exit 0 ;;
+ sun3*:OpenBSD:*:*)
+ echo m68k-sun-openbsd${UNAME_RELEASE}
+ exit 0 ;;
mac68k:NetBSD:*:*)
echo m68k-apple-netbsd${UNAME_RELEASE}
exit 0 ;;
+ mac68k:OpenBSD:*:*)
+ echo m68k-apple-openbsd${UNAME_RELEASE}
+ exit 0 ;;
RISC*:ULTRIX:*:*)
echo mips-dec-ultrix${UNAME_RELEASE}
exit 0 ;;
hp3[0-9][05]:NetBSD:*:*)
echo m68k-hp-netbsd${UNAME_RELEASE}
exit 0 ;;
+ hp3[0-9][05]:OpenBSD:*:*)
+ echo m68k-hp-openbsd${UNAME_RELEASE}
+ exit 0 ;;
i[34]86:BSD/386:*:* | *:BSD/OS:*:*)
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
exit 0 ;;
*:NetBSD:*:*)
echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
exit 0 ;;
+ *:OpenBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+ exit 0 ;;
*:GNU:*:*)
echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
exit 0 ;;
| -amigados* | -msdos* | -moss* | -newsos* | -unicos* | -aos* \
| -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \
| -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \
- | -hiux* | -386bsd* | -netbsd* | -freebsd* | -riscix* | -lites* \
+ | -hiux* | -386bsd* | -netbsd* | -freebsd* | -openbsd* \
+ | -riscix* | -lites* \
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta | -udi | -eabi*)
;;
m68k-*-netbsd*)
noconfigdirs="$noconfigdirs gdb"
;;
+ m68k-*-openbsd*)
+ noconfigdirs="$noconfigdirs gdb"
+ ;;
m68k-apollo-*)
noconfigdirs="$noconfigdirs ld binutils gprof"
;;
sb.o \
hash.o
+# Target to use for installing unformatted man-pages. Some systems may not
+# want them installed.
+INSTALL_MAN = install-man
+
all: .gdbinit as.new gasp.new
@srcroot=`cd $(srcroot); pwd`; export srcroot; \
(cd doc ; $(MAKE) $(FLAGS_TO_PASS) all)
targ-cpu.c obj-format.h obj-format.c atof-targ.c TAGS \
config-stamp config.h conf config.log config.cache .gdbinit \
testsuite/Makefile testsuite/config.status
-maintainer-clean realclean: clean distclean clean-info
+maintainer-clean realclean: clean clean-info distclean
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
-rm -rf $(DISTSTUFF)
# Entry points `install', `includes' and `uninstall'.
# Copy the files into directories where they will be run.
-install:
+install: $(INSTALL_MAN)
srcroot=`cd $(srcroot); pwd`; export srcroot; \
$(INSTALL_XFORM) as.new $(bindir)/as; \
- $(INSTALL_XFORM1) $(srcdir)/doc/as.1 $(man1dir)/as.1; \
n=`echo as | sed '$(program_transform_name)'`; \
if [ -d $(tooldir) ]; then \
if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
-n=`t='$(program_transform_name)'; echo gasp | sed $$t`; \
rm -f $(bindir)/$$n; \
+install-man:
+ srcroot=`cd $(srcroot); pwd`; export srcroot; \
+ $(INSTALL_XFORM1) $(srcdir)/doc/as.1 $(man1dir)/as.1
+
# These exist for maintenance purposes.
tags TAGS: force