2001-12-09 08:00:40 +03:00
|
|
|
# $NetBSD: Makefile.i386,v 1.122 2001/12/09 05:00:45 atatat Exp $
|
1996-02-02 23:08:17 +03:00
|
|
|
|
1993-04-29 07:27:39 +04:00
|
|
|
# Makefile for NetBSD
|
1993-03-21 12:45:37 +03:00
|
|
|
#
|
|
|
|
# This makefile is constructed from a machine description:
|
|
|
|
# config machineid
|
|
|
|
# Most changes should be made in the machine description
|
1993-12-15 04:06:55 +03:00
|
|
|
# /sys/arch/i386/conf/``machineid''
|
1993-03-21 12:45:37 +03:00
|
|
|
# after which you should do
|
1996-02-02 23:08:17 +03:00
|
|
|
# config machineid
|
|
|
|
# Machine generic makefile changes should be made in
|
1993-12-15 04:06:55 +03:00
|
|
|
# /sys/arch/i386/conf/Makefile.i386
|
1994-05-23 14:18:52 +04:00
|
|
|
# after which config should be rerun for all machines of that type.
|
2001-11-16 03:23:02 +03:00
|
|
|
#
|
2001-11-20 15:56:17 +03:00
|
|
|
# To specify debugging, add the config line: makeoptions DEBUG="-g"
|
2001-11-16 03:23:02 +03:00
|
|
|
# A better way is to specify -g only for a few files.
|
|
|
|
#
|
|
|
|
# makeoptions DEBUGLIST="uvm* trap if_*"
|
1994-05-23 14:18:52 +04:00
|
|
|
|
2001-11-16 03:23:02 +03:00
|
|
|
MACHINE_ARCH= i386
|
2001-10-26 10:45:33 +04:00
|
|
|
USETOOLS?= no
|
2001-11-16 03:23:02 +03:00
|
|
|
NEED_OWN_INSTALL_TARGET?=no
|
1999-01-28 23:04:54 +03:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2001-11-16 03:23:02 +03:00
|
|
|
##
|
|
|
|
## (1) port identification
|
|
|
|
##
|
|
|
|
I386= $S/arch/i386
|
|
|
|
GENASSYM= ${I386}/i386/genassym.cf
|
|
|
|
|
|
|
|
##
|
|
|
|
## (2) compile settings
|
|
|
|
##
|
2001-11-23 08:18:59 +03:00
|
|
|
CPPFLAGS+= -Di386
|
|
|
|
AFLAGS+= -x assembler-with-cpp -traditional-cpp
|
2001-06-05 09:05:46 +04:00
|
|
|
|
2001-11-16 03:23:02 +03:00
|
|
|
##
|
2001-11-20 15:56:17 +03:00
|
|
|
## (3) libkern and compat
|
2001-11-16 03:23:02 +03:00
|
|
|
##
|
|
|
|
KERN_AS= obj
|
|
|
|
|
|
|
|
##
|
|
|
|
## (4) local objects, compile rules, and dependencies
|
|
|
|
##
|
|
|
|
MD_OBJS= locore.o
|
|
|
|
MD_CFILES=
|
|
|
|
MD_SFILES= ${I386}/i386/locore.s
|
2001-01-20 04:05:53 +03:00
|
|
|
|
2001-11-16 03:23:02 +03:00
|
|
|
locore.o: ${I386}/i386/locore.s assym.h
|
|
|
|
${NORMAL_S}
|
|
|
|
|
|
|
|
##
|
|
|
|
## (5) link settings
|
|
|
|
##
|
|
|
|
TEXTADDR?= c0100000
|
2001-12-09 08:00:40 +03:00
|
|
|
LINKFLAGS_NORMAL= -X
|
1999-01-28 23:04:54 +03:00
|
|
|
.if (${OBJECT_FMT} == "ELF")
|
2001-01-20 04:05:53 +03:00
|
|
|
KERN_LDSCRIPT?= kern.ldscript
|
2001-11-16 03:23:02 +03:00
|
|
|
LINKFORMAT= -T ${I386}/conf/${KERN_LDSCRIPT}
|
1999-01-28 23:04:54 +03:00
|
|
|
.else
|
2001-11-16 03:23:02 +03:00
|
|
|
LINKFORMAT= -z
|
1999-01-28 23:04:54 +03:00
|
|
|
.endif
|
2000-09-07 10:39:36 +04:00
|
|
|
|
2001-11-16 03:23:02 +03:00
|
|
|
##
|
|
|
|
## (6) port specific target dependencies
|
|
|
|
##
|
1996-09-10 01:06:55 +04:00
|
|
|
|
2001-11-16 03:23:02 +03:00
|
|
|
freebsd_sigcode.o ibcs2_sigcode.o linux_sigcode.o svr4_sigcode.o: assym.h
|
|
|
|
apmcall.o in_cksum.o pnpbioscall.o: assym.h
|
1995-06-25 00:39:40 +04:00
|
|
|
|
2001-11-16 03:23:02 +03:00
|
|
|
##
|
|
|
|
## (7) misc settings
|
|
|
|
##
|
|
|
|
KERNLINTFLAGS= -bceghnxzF
|
1994-05-23 14:18:52 +04:00
|
|
|
|
2001-11-16 03:23:02 +03:00
|
|
|
##
|
|
|
|
## (8) config(8) generated machinery
|
|
|
|
##
|
|
|
|
%INCLUDES
|
1994-05-23 14:18:52 +04:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
%OBJS
|
|
|
|
|
|
|
|
%CFILES
|
|
|
|
|
1996-02-02 23:08:17 +03:00
|
|
|
%SFILES
|
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
%LOAD
|
|
|
|
|
|
|
|
%RULES
|
2001-11-16 03:23:02 +03:00
|
|
|
|
|
|
|
##
|
|
|
|
## (9) port independent kernel machinery
|
|
|
|
##
|
|
|
|
.include "$S/conf/Makefile.kern.inc"
|