2001-12-09 08:00:40 +03:00
|
|
|
# $NetBSD: Makefile.x86_64,v 1.5 2001/12/09 05:00:51 atatat Exp $
|
2001-06-19 04:19:12 +04:00
|
|
|
|
|
|
|
# Makefile for NetBSD
|
|
|
|
#
|
|
|
|
# This makefile is constructed from a machine description:
|
|
|
|
# config machineid
|
|
|
|
# Most changes should be made in the machine description
|
|
|
|
# /sys/arch/x86_64/conf/``machineid''
|
|
|
|
# after which you should do
|
|
|
|
# config machineid
|
|
|
|
# Machine generic makefile changes should be made in
|
|
|
|
# /sys/arch/x86_64/conf/Makefile.x86_64
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
# makeoptions DEBUGLIST="uvm* trap if_*"
|
2001-06-19 04:19:12 +04:00
|
|
|
|
2001-10-23 23:26:41 +04:00
|
|
|
MACHINE_ARCH=x86_64
|
2001-10-26 10:45:33 +04:00
|
|
|
USETOOLS?= no
|
2001-12-09 08:00:40 +03:00
|
|
|
NEED_OWN_INSTALL_TARGET?=no
|
2001-06-19 04:19:12 +04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (1) port identification
|
|
|
|
##
|
|
|
|
X86_64= $S/arch/x86_64
|
|
|
|
GENASSYM= ${X86_64}/x86_64/genassym.cf
|
2001-06-19 04:19:12 +04:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (2) compile settings
|
|
|
|
##
|
|
|
|
CPPFLAGS+= -Dx86_64
|
|
|
|
CWARNFLAGS+= -fno-builtin -fno-strict-aliasing -fno-reorder-blocks
|
|
|
|
CWARNFLAGS+= -Wno-cast-qual -Wno-format
|
|
|
|
CFLAGS+= -mcmodel=large -mno-red-zone
|
|
|
|
AFLAGS+= -x assembler-with-cpp -traditional-cpp
|
2001-06-19 04:19:12 +04:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (3) libkern and compat
|
|
|
|
##
|
2001-06-19 04:19:12 +04:00
|
|
|
KERN_AS= obj
|
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (4) local objects, compile rules, and dependencies
|
|
|
|
##
|
|
|
|
MD_OBJS= locore.o vector.o copy.o microtime.o
|
|
|
|
MD_CFILES=
|
|
|
|
MD_SFILES= ${X86_64}/x86_64/locore.S ${X86_64}/x86_64/vector.S \
|
|
|
|
${X86_64}/x86_64/copy.S ${X86_64}/x86_64/microtime.S \
|
2001-06-19 04:19:12 +04:00
|
|
|
|
|
|
|
locore.o: ${X86_64}/x86_64/locore.S assym.h
|
|
|
|
${NORMAL_S}
|
|
|
|
|
|
|
|
vector.o: ${X86_64}/x86_64/vector.S assym.h
|
|
|
|
${NORMAL_S}
|
|
|
|
|
2001-06-19 17:19:54 +04:00
|
|
|
copy.o: ${X86_64}/x86_64/copy.S assym.h
|
2001-06-19 04:19:12 +04:00
|
|
|
${NORMAL_S}
|
|
|
|
|
2001-06-19 17:19:54 +04:00
|
|
|
microtime.o: ${X86_64}/x86_64/microtime.S assym.h
|
|
|
|
${NORMAL_S}
|
2001-06-19 04:19:12 +04:00
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (5) link settings
|
|
|
|
##
|
|
|
|
TEXTADDR?= 0xffff800000100000
|
|
|
|
LINKFLAGS_NORMAL= -X
|
|
|
|
|
|
|
|
##
|
|
|
|
## (6) port specific target dependencies
|
|
|
|
##
|
|
|
|
|
|
|
|
# depend on CPU configuration
|
|
|
|
locore.o machdep.o: Makefile
|
|
|
|
|
2001-06-19 04:19:12 +04:00
|
|
|
netbsd32_sigcode.o: assym.h
|
|
|
|
|
2001-12-09 08:00:40 +03:00
|
|
|
##
|
|
|
|
## (7) misc settings
|
|
|
|
##
|
|
|
|
|
|
|
|
##
|
|
|
|
## (8) config(8) generated machinery
|
|
|
|
##
|
|
|
|
%INCLUDES
|
|
|
|
|
|
|
|
%OBJS
|
|
|
|
|
|
|
|
%CFILES
|
|
|
|
|
|
|
|
%SFILES
|
|
|
|
|
|
|
|
%LOAD
|
2001-06-19 04:19:12 +04:00
|
|
|
|
|
|
|
%RULES
|
2001-12-09 08:00:40 +03:00
|
|
|
|
|
|
|
##
|
|
|
|
## (9) port independent kernel machinery
|
|
|
|
##
|
|
|
|
.include "$S/conf/Makefile.kern.inc"
|