1995-04-23 11:58:27 +04:00
|
|
|
# $NetBSD: Makefile,v 1.17 1995/04/23 07:58:35 cgd Exp $
|
|
|
|
# @(#)Makefile 6.1 (Berkeley) 3/3/91
|
1993-10-02 23:56:59 +03:00
|
|
|
|
1993-12-05 03:49:23 +03:00
|
|
|
.include "config/Makefile.$(MACHINE_ARCH)"
|
1993-10-16 06:19:36 +03:00
|
|
|
|
|
|
|
.if !defined (gas_hosttype)
|
1993-12-05 03:49:23 +03:00
|
|
|
gas_hosttype=$(MACHINE_ARCH)
|
1993-10-02 23:56:59 +03:00
|
|
|
.endif
|
1993-10-16 06:19:36 +03:00
|
|
|
.if !defined (gas_target)
|
1993-12-05 03:49:23 +03:00
|
|
|
gas_target=$(MACHINE_ARCH)
|
1993-10-16 06:19:36 +03:00
|
|
|
.endif
|
|
|
|
.if !defined (gas_objformat)
|
|
|
|
gas_objformat=aout
|
1993-10-02 23:56:59 +03:00
|
|
|
.endif
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1993-12-28 13:59:05 +03:00
|
|
|
ADDINCLUDE=-I${.OBJDIR}
|
1993-10-04 04:34:43 +03:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
PROG= as
|
1993-10-16 06:19:36 +03:00
|
|
|
SRCS+= app.c as.c atof-generic.c bignum-copy.c \
|
1993-10-02 23:56:59 +03:00
|
|
|
cond.c expr.c flo-const.c flo-copy.c flonum-mult.c \
|
1993-03-21 12:45:37 +03:00
|
|
|
frags.c hash.c hex-value.c input-file.c input-scrub.c \
|
1993-10-02 23:56:59 +03:00
|
|
|
listing.c messages.c obstack.c output-file.c read.c subsegs.c \
|
|
|
|
symbols.c version.c write.c xmalloc.c xrealloc.c \
|
1993-10-16 06:19:36 +03:00
|
|
|
obj-$(gas_objformat).c
|
1993-10-04 04:34:43 +03:00
|
|
|
CFLAGS+= -I$(.CURDIR) ${ADDINCLUDE} -I$(.CURDIR)/config \
|
1994-06-22 19:14:08 +04:00
|
|
|
-DOLD_GAS -DSIGTY=void -Derror=as_fatal \
|
|
|
|
-DNETBSD_AOUT
|
1993-10-13 05:00:30 +03:00
|
|
|
#LDADD+= -lgnumalloc
|
1993-10-07 10:23:44 +03:00
|
|
|
DPADD+= /usr/lib/libgnumalloc.a
|
|
|
|
|
1993-10-16 06:57:39 +03:00
|
|
|
CONF_HEADERS= targ-cpu.h obj-format.h host.h targ-env.h
|
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
.PATH: $(.CURDIR)/config
|
|
|
|
|
1993-10-16 06:57:39 +03:00
|
|
|
beforedepend ${PROG}: ${CONF_HEADERS}
|
|
|
|
|
1993-12-05 03:49:23 +03:00
|
|
|
targ-cpu.h: Makefile config/Makefile.$(MACHINE_ARCH)
|
1993-10-16 06:57:39 +03:00
|
|
|
@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 )
|
|
|
|
|
1993-12-05 03:49:23 +03:00
|
|
|
obj-format.h: Makefile config/Makefile.$(MACHINE_ARCH)
|
1993-10-16 06:57:39 +03:00
|
|
|
@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 )
|
1993-10-02 23:56:59 +03:00
|
|
|
|
1993-10-16 06:19:36 +03:00
|
|
|
.if exists ($(.CURDIR)/config/ho-$(gas_hosttype).h)
|
1993-10-16 06:57:39 +03:00
|
|
|
config_hostfile= $(.CURDIR)/config/ho-$(gas_hosttype).h
|
1993-10-16 06:19:36 +03:00
|
|
|
.else
|
1993-10-16 06:57:39 +03:00
|
|
|
config_hostfile= $(.CURDIR)/config/ho-generic.h
|
1993-10-16 06:19:36 +03:00
|
|
|
.endif
|
1993-10-16 06:57:39 +03:00
|
|
|
|
1993-12-05 03:49:23 +03:00
|
|
|
host.h: Makefile config/Makefile.$(MACHINE_ARCH)
|
1993-10-16 06:57:39 +03:00
|
|
|
@cmp -s $(config_hostfile) host.h || \
|
|
|
|
( echo "updating ${.TARGET}..." ; /bin/rm -f host.h ; \
|
|
|
|
cp $(config_hostfile) host.h )
|
|
|
|
|
1993-12-05 03:49:23 +03:00
|
|
|
.if exists ($(.CURDIR)/config/te-$(MACHINE_ARCH).h)
|
|
|
|
config_targenvfile= $(.CURDIR)/config/te-$(MACHINE_ARCH).h
|
1993-10-02 23:56:59 +03:00
|
|
|
.else
|
1993-10-16 06:57:39 +03:00
|
|
|
config_targenvfile= $(.CURDIR)/config/te-generic.h
|
1993-10-02 23:56:59 +03:00
|
|
|
.endif
|
|
|
|
|
1993-12-05 03:49:23 +03:00
|
|
|
targ-env.h: Makefile config/Makefile.$(MACHINE_ARCH)
|
1993-10-16 06:57:39 +03:00
|
|
|
@cmp -s $(config_targenvfile) targ-env.h || \
|
|
|
|
( echo "updating ${.TARGET}..." ; /bin/rm -f targ-env.h ; \
|
|
|
|
cp $(config_targenvfile) targ-env.h )
|
|
|
|
|
1993-10-17 01:04:48 +03:00
|
|
|
CLEANFILES+= ${CONF_HEADERS}
|
1993-10-02 23:56:59 +03:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
.include <bsd.prog.mk>
|