freebsd-dev/gnu/usr.bin/as/Makefile
Søren Schmidt 77dfb966d9 ELF preparation step 1:
Move our old a.out utils to /usr/libexec/aout.
Enable binutils and put the utils in /usr/libexec/elf
Enable objformat, a little helper program that calls the right
utils based on /etc/objformat and $OBJFORMAT.

This will enable the ELF generating tools.
Remember that this is only step one, the system is still compiled
and run in a.out format ONLY.

Problem left to solve: The BSD manpages wins over the GNU equivalents
as the are installed last. We need to distinguish between the manpages
somehow...
1998-05-25 17:34:42 +00:00

71 lines
2.3 KiB
Makefile

# from: @(#)Makefile 6.1 (Berkeley) 3/3/91
# $Id: Makefile,v 1.13 1998/03/06 13:13:15 bde Exp $
.include "config/Makefile.$(MACHINE)"
.if !defined (gas_hosttype)
gas_hosttype=$(MACHINE)
.endif
.if !defined (gas_target)
gas_target=$(MACHINE)
.endif
.if !defined (gas_objformat)
gas_objformat=aout
.endif
ADDINCLUDE=-I${.OBJDIR}
PROG= as
BINDIR= /usr/libexec/aout
SRCS+= app.c as.c atof-generic.c bignum-copy.c \
cond.c expr.c flo-const.c flo-copy.c flonum-mult.c \
frags.c hash.c hex-value.c input-file.c input-scrub.c \
listing.c messages.c obstack.c output-file.c read.c subsegs.c \
symbols.c version.c write.c xmalloc.c xrealloc.c \
obj-$(gas_objformat).c ${CONF_HEADERS}
CFLAGS+= -I$(.CURDIR) ${ADDINCLUDE} -I$(.CURDIR)/config \
-DOLD_GAS -DSIGTY=void -Derror=as_fatal \
-DSUB_SEGMENT_ALIGN=4 -DFREEBSD_AOUT
CONF_HEADERS= targ-cpu.h obj-format.h host.h targ-env.h
.PATH: $(.CURDIR)/config
SUBDIR+= doc
targ-cpu.h: Makefile config/Makefile.$(MACHINE) $(.CURDIR)/config/tc-$(gas_target).h
@cmp -s $(.CURDIR)/config/tc-$(gas_target).h targ-cpu.h || \
( ${ECHO} "updating ${.TARGET}..." ; /bin/rm -f targ-cpu.h ; \
cp $(.CURDIR)/config/tc-$(gas_target).h targ-cpu.h )
obj-format.h: Makefile config/Makefile.$(MACHINE) $(.CURDIR)/config/obj-$(gas_objformat).h
@cmp -s $(.CURDIR)/config/obj-$(gas_objformat).h obj-format.h || \
( ${ECHO} "updating ${.TARGET}..." ; /bin/rm -f obj-format.h ; \
cp $(.CURDIR)/config/obj-$(gas_objformat).h obj-format.h )
.if exists ($(.CURDIR)/config/ho-$(gas_hosttype).h)
config_hostfile= $(.CURDIR)/config/ho-$(gas_hosttype).h
.else
config_hostfile= $(.CURDIR)/config/ho-generic.h
.endif
host.h: Makefile config/Makefile.$(MACHINE) $(config_hostfile)
@cmp -s $(config_hostfile) host.h || \
( ${ECHO} "updating ${.TARGET}..." ; /bin/rm -f host.h ; \
cp $(config_hostfile) host.h )
.if exists ($(.CURDIR)/config/te-$(MACHINE).h)
config_targenvfile= $(.CURDIR)/config/te-$(MACHINE).h
.else
config_targenvfile= $(.CURDIR)/config/te-generic.h
.endif
targ-env.h: Makefile config/Makefile.$(MACHINE) $(config_targenvfile)
@cmp -s $(config_targenvfile) targ-env.h || \
( ${ECHO} "updating ${.TARGET}..." ; /bin/rm -f targ-env.h ; \
cp $(config_targenvfile) targ-env.h )
CLEANFILES+= ${CONF_HEADERS}
.include <bsd.prog.mk>