Makefile.amd64 revision 218893
1115170Speter# Makefile.amd64 -- with config changes. 299127Sobrien# Copyright 1990 W. Jolitz 399127Sobrien# from: @(#)Makefile.i386 7.1 5/10/91 499127Sobrien# from FreeBSD: src/sys/conf/Makefile.i386,v 1.255 2002/02/20 23:35:49 599127Sobrien# $FreeBSD: head/sys/conf/Makefile.amd64 218893 2011-02-20 19:33:47Z dim $ 699127Sobrien# 799127Sobrien# Makefile for FreeBSD 899127Sobrien# 999127Sobrien# This makefile is constructed from a machine description: 1099127Sobrien# config machineid 1199127Sobrien# Most changes should be made in the machine description 12115170Speter# /sys/amd64/conf/``machineid'' 1399127Sobrien# after which you should do 1499127Sobrien# config machineid 1599127Sobrien# Generic makefile changes should be made in 16115170Speter# /sys/conf/Makefile.amd64 1799127Sobrien# after which config should be rerun for all machines. 1899127Sobrien# 1999127Sobrien 2099127Sobrien# Which version of config(8) is required. 21169612Swkoszek%VERSREQ= 600004 2299127Sobrien 2399127SobrienSTD8X16FONT?= iso 2499127Sobrien 2599127Sobrien.if !defined(S) 2699127Sobrien.if exists(./@/.) 2799127SobrienS= ./@ 2899127Sobrien.else 2999127SobrienS= ../../.. 3099127Sobrien.endif 3199127Sobrien.endif 3299127Sobrien.include "$S/conf/kern.pre.mk" 3399127Sobrien 34120589SpeterDDB_ENABLED!= grep DDB opt_ddb.h || true 35179225SjbDTR_ENABLED!= grep KDTRACE_FRAME opt_kdtrace.h || true 36174395SjkoshyHWPMC_ENABLED!= grep HWPMC opt_hwpmc_hooks.h || true 37179225Sjb.if !empty(DDB_ENABLED) || !empty(DTR_ENABLED) || !empty(HWPMC_ENABLED) 38115405SpeterCFLAGS+= -fno-omit-frame-pointer 39115405Speter.endif 40115405Speter 41114370SpeterMKMODULESENV+= MACHINE=amd64 4299127Sobrien 43218893Sdim.if ${CC:T:Mclang} == "clang" 44218893Sdim# XXX: clang integrated-as doesn't grok .codeNN directives yet 45218893SdimASM_CFLAGS+= ${.IMPSRC:T:Macpi_wakecode.S:C/^.+$/-no-integrated-as/} 46218893SdimASM_CFLAGS+= ${.IMPSRC:T:Mia32_sigtramp.S:C/^.+$/-no-integrated-as/} 47218893SdimASM_CFLAGS+= ${.IMPSRC:T:Mlinux32_locore.s:C/^.+$/-no-integrated-as/} 48218893SdimASM_CFLAGS+= ${.IMPSRC:T:Mmpboot.S:C/^.+$/-no-integrated-as/} 49218893Sdim.endif 50218893Sdim 5199127Sobrien%BEFORE_DEPEND 5299127Sobrien 5399127Sobrien%OBJS 5499127Sobrien 5599127Sobrien%FILES.c 5699127Sobrien 5799127Sobrien%FILES.s 5899127Sobrien 5999127Sobrien%FILES.m 6099127Sobrien 6199127Sobrien%CLEAN 6299127Sobrien 6399127Sobrien%RULES 6499127Sobrien 6599127Sobrien.include "$S/conf/kern.post.mk" 66