xref: /freebsd/sys/conf/Makefile.riscv (revision 0b3105a37d7adcadcb720112fed4dc4e8040be99)
1# Makefile.riscv -- 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$
6#
7# Makefile for FreeBSD
8#
9# RISCVTODO: copy pasted from aarch64, needs to be
10# constructed from a machine description:
11#	config machineid
12# Most changes should be made in the machine description
13#	/sys/riscv/conf/``machineid''
14# after which you should do
15#	 config machineid
16# Generic makefile changes should be made in
17#	/sys/conf/Makefile.riscv
18# after which config should be rerun for all machines.
19#
20
21# Which version of config(8) is required.
22%VERSREQ=	600012
23
24.if !defined(S)
25S=	../../..
26.endif
27.include "$S/conf/kern.pre.mk"
28
29INCLUDES+= -I$S/contrib/libfdt
30
31.if !empty(DDB_ENABLED)
32CFLAGS += -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
33.endif
34
35%BEFORE_DEPEND
36
37%OBJS
38
39%FILES.c
40
41%FILES.s
42
43%FILES.m
44
45%CLEAN
46
47%RULES
48
49.include "$S/conf/kern.post.mk"
50