2003-05-19 22:15:30 +00:00
|
|
|
# Makefile.amd64 -- with config changes.
|
2002-06-30 08:05:21 +00:00
|
|
|
# Copyright 1990 W. Jolitz
|
|
|
|
# from: @(#)Makefile.i386 7.1 5/10/91
|
|
|
|
# from FreeBSD: src/sys/conf/Makefile.i386,v 1.255 2002/02/20 23:35:49
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# Makefile for FreeBSD
|
|
|
|
#
|
|
|
|
# This makefile is constructed from a machine description:
|
|
|
|
# config machineid
|
|
|
|
# Most changes should be made in the machine description
|
2003-05-19 22:15:30 +00:00
|
|
|
# /sys/amd64/conf/``machineid''
|
2002-06-30 08:05:21 +00:00
|
|
|
# after which you should do
|
|
|
|
# config machineid
|
|
|
|
# Generic makefile changes should be made in
|
2003-05-19 22:15:30 +00:00
|
|
|
# /sys/conf/Makefile.amd64
|
2002-06-30 08:05:21 +00:00
|
|
|
# after which config should be rerun for all machines.
|
|
|
|
#
|
|
|
|
|
|
|
|
# Which version of config(8) is required.
|
2007-05-16 17:23:54 +00:00
|
|
|
%VERSREQ= 600004
|
2002-06-30 08:05:21 +00:00
|
|
|
|
|
|
|
STD8X16FONT?= iso
|
|
|
|
|
|
|
|
.if !defined(S)
|
|
|
|
.if exists(./@/.)
|
|
|
|
S= ./@
|
|
|
|
.else
|
|
|
|
S= ../../..
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
.include "$S/conf/kern.pre.mk"
|
|
|
|
|
2013-05-21 03:05:49 +00:00
|
|
|
INCLUDES+= -I$S/contrib/libfdt
|
|
|
|
|
2008-05-23 03:52:55 +00:00
|
|
|
.if !empty(DDB_ENABLED) || !empty(DTR_ENABLED) || !empty(HWPMC_ENABLED)
|
2013-07-09 08:42:02 +00:00
|
|
|
CFLAGS+= -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
|
2003-05-30 01:03:43 +00:00
|
|
|
.endif
|
|
|
|
|
2003-05-01 02:59:24 +00:00
|
|
|
MKMODULESENV+= MACHINE=amd64
|
2002-06-30 08:05:21 +00:00
|
|
|
|
2011-02-20 19:33:47 +00:00
|
|
|
# XXX: clang integrated-as doesn't grok .codeNN directives yet
|
2012-02-28 18:30:18 +00:00
|
|
|
ASM_CFLAGS.acpi_wakecode.S= ${CLANG_NO_IAS}
|
|
|
|
ASM_CFLAGS.mpboot.S= ${CLANG_NO_IAS}
|
|
|
|
ASM_CFLAGS+= ${ASM_CFLAGS.${.IMPSRC:T}}
|
2011-02-20 19:33:47 +00:00
|
|
|
|
2002-06-30 08:05:21 +00:00
|
|
|
%BEFORE_DEPEND
|
|
|
|
|
|
|
|
%OBJS
|
|
|
|
|
|
|
|
%FILES.c
|
|
|
|
|
|
|
|
%FILES.s
|
|
|
|
|
|
|
|
%FILES.m
|
|
|
|
|
|
|
|
%CLEAN
|
|
|
|
|
|
|
|
%RULES
|
|
|
|
|
|
|
|
.include "$S/conf/kern.post.mk"
|