xref: /freebsd/sys/conf/Makefile.powerpc (revision c7d813a93eeb447470734c9bc0c140d90a54c271)
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
22STD8X16FONT?=	iso
23
24.if !defined(S)
25.if exists(./@/.)
26S=	./@
27.else
28S=	../../..
29.endif
30.endif
31
32LDSCRIPT_NAME?= ldscript.${MACHINE_ARCH}
33
34.include "$S/conf/kern.pre.mk"
35
36INCLUDES+= -I$S/contrib/libfdt
37
38.if "${MACHINE_ARCH}" == "powerpcspe"
39# Force __SPE__, since the builtin will be removed later with -mno-spe
40CFLAGS+= -mabi=spe -D__SPE__
41.endif
42CFLAGS+= -msoft-float
43CFLAGS.gcc+= -Wa,-many
44
45# Build position-independent kernel
46CFLAGS+= -fPIC
47LDFLAGS+= -pie
48
49.if !empty(DDB_ENABLED)
50CFLAGS+=	-fno-omit-frame-pointer
51.endif
52
53%BEFORE_DEPEND
54
55%OBJS
56
57%FILES.c
58
59%FILES.s
60
61%FILES.m
62
63%CLEAN
64
65%RULES
66
67.include "$S/conf/kern.post.mk"
68