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
5 # $FreeBSD: releng/9.0/sys/conf/Makefile.amd64 218893 2011-02-20 19:33:47Z dim $
6 #
7 # Makefile for FreeBSD
8 #
9 # This makefile is constructed from a machine description:
10 # config machineid
11 # Most changes should be made in the machine description
12 # /sys/amd64/conf/``machineid''
13 # after which you should do
14 # config machineid
15 # Generic makefile changes should be made in
16 # /sys/conf/Makefile.amd64
17 # after which config should be rerun for all machines.
18 #
19
20 # Which version of config(8) is required.
21 %VERSREQ= 600004
22
23 STD8X16FONT?= iso
24
25 .if !defined(S)
26 .if exists(./@/.)
27 S= ./@
28 .else
29 S= ../../..
30 .endif
31 .endif
32 .include "$S/conf/kern.pre.mk"
33
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
39 .endif
40
41 MKMODULESENV+= MACHINE=amd64
42
43 .if ${CC:T:Mclang} == "clang"
44 # XXX: clang integrated-as doesn't grok .codeNN directives yet
45 ASM_CFLAGS+= ${.IMPSRC:T:Macpi_wakecode.S:C/^.+$/-no-integrated-as/}
46 ASM_CFLAGS+= ${.IMPSRC:T:Mia32_sigtramp.S:C/^.+$/-no-integrated-as/}
47 ASM_CFLAGS+= ${.IMPSRC:T:Mlinux32_locore.s:C/^.+$/-no-integrated-as/}
48 ASM_CFLAGS+= ${.IMPSRC:T:Mmpboot.S:C/^.+$/-no-integrated-as/}
49 .endif
50
51 %BEFORE_DEPEND
52
53 %OBJS
54
55 %FILES.c
56
57 %FILES.s
58
59 %FILES.m
60
61 %CLEAN
62
63 %RULES
64
65 .include "$S/conf/kern.post.mk"
Cache object: b6ad6cc2ec755081c0e4ac459780cc33
|