]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/conf/Makefile.powerpc
powerpc: Use builtins for fls/flsl
[FreeBSD/FreeBSD.git] / sys / conf / Makefile.powerpc
1 # Makefile.powerpc -- with config changes.
2 # Copyright 1990 W. Jolitz
3 #       from: @(#)Makefile.i386 7.1 5/10/91
4 # $FreeBSD$
5 #
6 # Makefile for FreeBSD
7 #
8 # This makefile is constructed from a machine description:
9 #       config machineid
10 # Most changes should be made in the machine description
11 #       /sys/powerpc/conf/``machineid''
12 # after which you should do
13 #        config machineid
14 # Generic makefile changes should be made in
15 #       /sys/conf/Makefile.powerpc
16 # after which config should be rerun for all machines.
17 #
18
19 # Which version of config(8) is required.
20 %VERSREQ=       600012
21
22 STD8X16FONT?=   iso
23
24 .if !defined(S)
25 .if exists(./@/.)
26 S=      ./@
27 .else
28 S=      ../../..
29 .endif
30 .endif
31
32 LDSCRIPT_NAME?= ldscript.${MACHINE_ARCH}
33
34 .include "$S/conf/kern.pre.mk"
35
36 INCLUDES+= -I$S/contrib/libfdt
37
38 .if "${MACHINE_ARCH}" == "powerpcspe"
39 # Force __SPE__, since the builtin will be removed later with -mno-spe
40 CFLAGS+= -mabi=spe -D__SPE__
41 .endif
42 CFLAGS+= -msoft-float
43 CFLAGS.gcc+= -Wa,-many
44
45 # Apply compiler-specific DPAA exceptions.
46 .if "${COMPILER_TYPE}" == "clang"
47 DPAAWARNFLAGS += \
48         -Wno-error=parentheses-equality \
49         -Wno-error=self-assign \
50         -Wno-error=incompatible-pointer-types-discards-qualifiers \
51         -Wno-error=non-literal-null-conversion \
52         -Wno-error=enum-conversion
53 .elif "${COMPILER_TYPE}" == "gcc" && ${COMPILER_VERSION} >= 50200
54 DPAAWARNFLAGS += \
55         -Wno-error=redundant-decls \
56         -Wno-error=int-in-bool-context
57 .endif
58
59 # Build position-independent kernel
60 CFLAGS+= -fPIC
61 LDFLAGS+= -pie
62
63 .if !empty(DDB_ENABLED)
64 CFLAGS+=        -fno-omit-frame-pointer
65 .endif
66
67 %BEFORE_DEPEND
68
69 %OBJS
70
71 %FILES.c
72
73 %FILES.s
74
75 %FILES.m
76
77 %CLEAN
78
79 %RULES
80
81 .include "$S/conf/kern.post.mk"