1993-11-03 00:56:24 +00:00
|
|
|
# from: @(#)Makefile 6.1 (Berkeley) 3/3/91
|
1998-03-06 13:13:15 +00:00
|
|
|
# $Id: Makefile,v 1.12 1997/02/22 15:43:22 peter Exp $
|
1993-11-03 00:56:24 +00:00
|
|
|
|
|
|
|
.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
|
|
|
|
|
1996-06-24 04:26:21 +00:00
|
|
|
ADDINCLUDE=-I${.OBJDIR}
|
1993-06-29 09:51:23 +00:00
|
|
|
|
|
|
|
PROG= as
|
1993-11-03 00:56:24 +00:00
|
|
|
SRCS+= app.c as.c atof-generic.c bignum-copy.c \
|
|
|
|
cond.c expr.c flo-const.c flo-copy.c flonum-mult.c \
|
1993-06-29 09:51:23 +00:00
|
|
|
frags.c hash.c hex-value.c input-file.c input-scrub.c \
|
1993-11-03 00:56:24 +00:00
|
|
|
listing.c messages.c obstack.c output-file.c read.c subsegs.c \
|
|
|
|
symbols.c version.c write.c xmalloc.c xrealloc.c \
|
1998-03-06 13:13:15 +00:00
|
|
|
obj-$(gas_objformat).c ${CONF_HEADERS}
|
1993-11-03 00:56:24 +00:00
|
|
|
CFLAGS+= -I$(.CURDIR) ${ADDINCLUDE} -I$(.CURDIR)/config \
|
1994-12-23 22:37:45 +00:00
|
|
|
-DOLD_GAS -DSIGTY=void -Derror=as_fatal \
|
|
|
|
-DSUB_SEGMENT_ALIGN=4 -DFREEBSD_AOUT
|
1993-11-03 00:56:24 +00:00
|
|
|
|
|
|
|
CONF_HEADERS= targ-cpu.h obj-format.h host.h targ-env.h
|
|
|
|
|
1993-06-29 09:51:23 +00:00
|
|
|
.PATH: $(.CURDIR)/config
|
|
|
|
|
1995-01-16 17:40:57 +00:00
|
|
|
SUBDIR+= doc
|
|
|
|
|
1995-05-30 05:05:38 +00:00
|
|
|
targ-cpu.h: Makefile config/Makefile.$(MACHINE) $(.CURDIR)/config/tc-$(gas_target).h
|
1993-11-03 00:56:24 +00:00
|
|
|
@cmp -s $(.CURDIR)/config/tc-$(gas_target).h targ-cpu.h || \
|
1994-08-28 17:44:10 +00:00
|
|
|
( ${ECHO} "updating ${.TARGET}..." ; /bin/rm -f targ-cpu.h ; \
|
1993-11-03 00:56:24 +00:00
|
|
|
cp $(.CURDIR)/config/tc-$(gas_target).h targ-cpu.h )
|
|
|
|
|
1994-12-23 22:37:45 +00:00
|
|
|
obj-format.h: Makefile config/Makefile.$(MACHINE) $(.CURDIR)/config/obj-$(gas_objformat).h
|
1993-11-03 00:56:24 +00:00
|
|
|
@cmp -s $(.CURDIR)/config/obj-$(gas_objformat).h obj-format.h || \
|
1994-08-28 17:44:10 +00:00
|
|
|
( ${ECHO} "updating ${.TARGET}..." ; /bin/rm -f obj-format.h ; \
|
1993-11-03 00:56:24 +00:00
|
|
|
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
|
|
|
|
|
1994-12-23 22:37:45 +00:00
|
|
|
host.h: Makefile config/Makefile.$(MACHINE) $(config_hostfile)
|
1993-11-03 00:56:24 +00:00
|
|
|
@cmp -s $(config_hostfile) host.h || \
|
1994-08-28 17:44:10 +00:00
|
|
|
( ${ECHO} "updating ${.TARGET}..." ; /bin/rm -f host.h ; \
|
1993-11-03 00:56:24 +00:00
|
|
|
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
|
|
|
|
|
1994-12-23 22:37:45 +00:00
|
|
|
targ-env.h: Makefile config/Makefile.$(MACHINE) $(config_targenvfile)
|
1993-11-03 00:56:24 +00:00
|
|
|
@cmp -s $(config_targenvfile) targ-env.h || \
|
1994-08-28 17:44:10 +00:00
|
|
|
( ${ECHO} "updating ${.TARGET}..." ; /bin/rm -f targ-env.h ; \
|
1993-11-03 00:56:24 +00:00
|
|
|
cp $(config_targenvfile) targ-env.h )
|
|
|
|
|
|
|
|
CLEANFILES+= ${CONF_HEADERS}
|
1993-06-29 09:51:23 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|