2002-10-05 20:25:34 +04:00
|
|
|
# $NetBSD: Makefile.cesfic,v 1.9 2002/10/05 16:25:34 chs Exp $
|
2001-05-14 22:22:58 +04:00
|
|
|
|
|
|
|
# Makefile for NetBSD
|
|
|
|
#
|
|
|
|
# This makefile is constructed from a machine description:
|
|
|
|
# config machineid
|
|
|
|
# Most changes should be made in the machine description
|
2001-12-09 08:00:40 +03:00
|
|
|
# /sys/arch/cesfic/conf/``machineid''
|
2001-05-14 22:22:58 +04:00
|
|
|
# after which you should do
|
|
|
|
# config machineid
|
|
|
|
# Machine generic makefile changes should be made in
|
2001-12-09 08:00:40 +03:00
|
|
|
# /sys/arch/cesfic/conf/Makefile.cesfic
|
2001-05-14 22:22:58 +04:00
|
|
|
# after which config should be rerun for all machines of that type.
|
|
|
|
#
|
2001-12-09 08:00:40 +03:00
|
|
|
# To specify debugging, add the config line: makeoptions DEBUG="-g"
|
|
|
|
# A better way is to specify -g only for a few files.
|
2001-05-14 22:22:58 +04:00
|
|
|
#
|
2001-12-09 08:00:40 +03:00
|
|
|
# makeoptions DEBUGLIST="uvm* trap if_*"
|
2001-05-14 22:22:58 +04:00
|
|
|
|
2001-10-23 23:26:41 +04:00
|
|
|
MACHINE_ARCH=m68k
|
2001-10-26 10:45:33 +04:00
|
|
|
USETOOLS?= no
|
2001-12-09 08:00:40 +03:00
|
|
|
NEED_OWN_INSTALL_TARGET?=no
|
2001-10-26 10:45:33 +04:00
|
|
|
.include <bsd.own.mk>
|
2001-10-23 23:26:41 +04:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (1) port identification
|
|
|
|
##
|
|
|
|
CESFIC= $S/arch/cesfic
|
|
|
|
GENASSYM= ${CESFIC}/cesfic/genassym.cf
|
|
|
|
|
|
|
|
##
|
|
|
|
## (2) compile settings
|
|
|
|
##
|
2002-10-05 20:25:34 +04:00
|
|
|
CPPFLAGS+= -Dcesfic
|
2001-12-09 08:00:40 +03:00
|
|
|
CWARNFLAGS+= -Wno-format
|
|
|
|
CFLAGS+= -msoft-float
|
2002-06-05 01:39:09 +04:00
|
|
|
.if defined(HAVE_GCC3)
|
|
|
|
AFLAGS+= -x assembler-with-cpp -Wa,-m68030 -Wa,-m68851 -Wa,-m68040
|
|
|
|
.else
|
2001-12-09 08:00:40 +03:00
|
|
|
AFLAGS+= -x assembler-with-cpp -traditional-cpp -Wa,-m68030 -Wa,-m68851 -Wa,-m68040
|
2002-06-05 01:39:09 +04:00
|
|
|
.endif
|
2001-12-09 08:00:40 +03:00
|
|
|
|
|
|
|
##
|
|
|
|
## (3) libkern and compat
|
|
|
|
##
|
2001-05-14 22:22:58 +04:00
|
|
|
KERN_AS= obj
|
2001-12-09 08:00:40 +03:00
|
|
|
|
|
|
|
##
|
|
|
|
## (4) local objects, compile rules, and dependencies
|
|
|
|
##
|
|
|
|
# for the Motorola 68040 Floating Point Software Product
|
2001-05-14 22:22:58 +04:00
|
|
|
.include "$S/arch/m68k/fpsp/Makefile.inc"
|
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
MD_OBJS= locore.o ${FPSP}
|
|
|
|
MD_CFILES=
|
|
|
|
MD_SFILES= ${CESFIC}/cesfic/locore.s
|
|
|
|
|
|
|
|
locore.o: ${CESFIC}/cesfic/locore.s assym.h
|
|
|
|
${NORMAL_S}
|
|
|
|
|
|
|
|
##
|
|
|
|
## (5) link settings
|
|
|
|
##
|
|
|
|
LINKFORMAT= -n
|
|
|
|
TEXTADDR?= 2000
|
|
|
|
|
|
|
|
##
|
|
|
|
## (6) port specific target dependencies
|
|
|
|
##
|
2001-05-14 22:22:58 +04:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (7) misc settings
|
|
|
|
##
|
2001-05-14 22:22:58 +04:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (8) config(8) generated machinery
|
|
|
|
##
|
|
|
|
%INCLUDES
|
2001-05-14 22:22:58 +04:00
|
|
|
|
|
|
|
%OBJS
|
|
|
|
|
|
|
|
%CFILES
|
|
|
|
|
|
|
|
#%SFILES
|
|
|
|
|
|
|
|
%LOAD
|
|
|
|
|
|
|
|
%RULES
|
2001-12-09 08:00:40 +03:00
|
|
|
|
|
|
|
##
|
|
|
|
## (9) port independent kernel machinery
|
|
|
|
##
|
|
|
|
.include "$S/conf/Makefile.kern.inc"
|