1993-08-01 09:37:30 +04:00
|
|
|
# from: @(#)Makefile 6.1 (Berkeley) 3/3/91
|
1993-10-13 05:00:30 +03:00
|
|
|
# $Id: Makefile,v 1.7 1993/10/13 02:00:30 cgd Exp $
|
1993-10-02 23:56:59 +03:00
|
|
|
|
1993-10-13 05:00:30 +03:00
|
|
|
.if !defined (hosttype)
|
|
|
|
hosttype=$(MACHINE)
|
1993-10-02 23:56:59 +03:00
|
|
|
.endif
|
|
|
|
.if !defined (OBJFORMAT)
|
|
|
|
OBJFORMAT=aout
|
|
|
|
.endif
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1993-10-04 04:34:43 +03:00
|
|
|
.if exists(${.CURDIR}/obj)
|
|
|
|
ADDINCLUDE=-I${.CURDIR}/obj
|
|
|
|
.endif
|
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
PROG= as
|
1993-10-02 23:56:59 +03: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-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 \
|
|
|
|
obj-$(OBJFORMAT).c
|
1993-10-04 04:34:43 +03:00
|
|
|
CFLAGS+= -I$(.CURDIR) ${ADDINCLUDE} -I$(.CURDIR)/config \
|
1993-10-02 23:56:59 +03:00
|
|
|
-DPIC -DOLD_GAS -DSIGTY=void -Derror=as_fatal
|
1993-10-13 05:00:30 +03:00
|
|
|
#LDADD+= -lgnumalloc
|
1993-10-07 10:23:44 +03:00
|
|
|
DPADD+= /usr/lib/libgnumalloc.a
|
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
.PATH: $(.CURDIR)/config
|
|
|
|
|
1993-10-04 04:34:43 +03:00
|
|
|
beforedepend: config.status
|
1993-10-02 23:56:59 +03:00
|
|
|
$(PROG): config.status
|
|
|
|
|
|
|
|
config.status:
|
1993-10-04 04:34:43 +03:00
|
|
|
/bin/rm -f targ-cpu.h ; ln -s $(.CURDIR)/config/tc-$(MACHINE).h targ-cpu.h
|
|
|
|
/bin/rm -f obj-format.h ; ln -s $(.CURDIR)/config/obj-$(OBJFORMAT).h obj-format.h
|
1993-10-13 05:00:30 +03:00
|
|
|
/bin/rm -f host.h ; ln -s $(.CURDIR)/config/ho-$(hosttype).h host.h
|
1993-10-04 04:34:43 +03:00
|
|
|
/bin/rm -f targ-env.h
|
1993-10-02 23:56:59 +03:00
|
|
|
.if exists ($(.CURDIR)/config/te-$(MACHINE).h)
|
1993-10-04 04:34:43 +03:00
|
|
|
ln -s $(.CURDIR)/config/te-$(MACHINE).h targ-env.h
|
1993-10-02 23:56:59 +03:00
|
|
|
.else
|
1993-10-04 04:34:43 +03:00
|
|
|
ln -s $(.CURDIR)/config/te-generic.h targ-env.h
|
1993-10-02 23:56:59 +03:00
|
|
|
.endif
|
1993-10-13 05:00:30 +03:00
|
|
|
echo "curdir=$(.CURDIR) machine=$(MACHINE) host=$(hosttype)" > $(.TARGET)
|
1993-10-02 23:56:59 +03:00
|
|
|
|
|
|
|
CLEANFILES+= targ-cpu.h obj-format.h host.h targ-env.h config.status
|
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
.include "config/Makefile.$(MACHINE)"
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|