1 # Makefile.amd64 -- with config changes.
2 # Copyright 1990 W. Jolitz
3 # from: @(#)Makefile.i386 7.1 5/10/91
4 # from FreeBSD: src/sys/conf/Makefile.i386,v 1.255 2002/02/20 23:35:49
9 # This makefile is constructed from a machine description:
11 # Most changes should be made in the machine description
12 # /sys/amd64/conf/``machineid''
13 # after which you should do
15 # Generic makefile changes should be made in
16 # /sys/conf/Makefile.amd64
17 # after which config should be rerun for all machines.
20 # Which version of config(8) is required.
32 .include "$S/conf/kern.pre.mk"
34 DDB_ENABLED!= grep DDB opt_ddb.h || true
35 DTR_ENABLED!= grep KDTRACE_FRAME opt_kdtrace.h || true
36 HWPMC_ENABLED!= grep HWPMC opt_hwpmc_hooks.h || true
37 .if !empty(DDB_ENABLED) || !empty(DTR_ENABLED) || !empty(HWPMC_ENABLED)
38 CFLAGS+= -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
41 MKMODULESENV+= MACHINE=amd64
43 # XXX: clang integrated-as doesn't grok .codeNN directives yet
44 ASM_CFLAGS.acpi_wakecode.S= ${CLANG_NO_IAS}
45 ASM_CFLAGS.ia32_sigtramp.S= ${CLANG_NO_IAS}
46 ASM_CFLAGS.linux32_locore.s= ${CLANG_NO_IAS}
47 ASM_CFLAGS.mpboot.S= ${CLANG_NO_IAS}
48 ASM_CFLAGS+= ${ASM_CFLAGS.${.IMPSRC:T}}
64 .include "$S/conf/kern.post.mk"