1295041Sbr# Makefile.riscv -- with config changes.
2295041Sbr# Copyright 1990 W. Jolitz
3295041Sbr#	from: @(#)Makefile.i386	7.1 5/10/91
4295041Sbr#	from FreeBSD: src/sys/conf/Makefile.i386,v 1.255 2002/02/20 23:35:49
5295041Sbr# $FreeBSD: releng/11.0/sys/conf/Makefile.riscv 300617 2016-05-24 16:30:05Z br $
6295041Sbr#
7295041Sbr# Makefile for FreeBSD
8295041Sbr#
9295041Sbr# RISCVTODO: copy pasted from aarch64, needs to be
10295041Sbr# constructed from a machine description:
11295041Sbr#	config machineid
12295041Sbr# Most changes should be made in the machine description
13295041Sbr#	/sys/riscv/conf/``machineid''
14295041Sbr# after which you should do
15295041Sbr#	 config machineid
16295041Sbr# Generic makefile changes should be made in
17295041Sbr#	/sys/conf/Makefile.riscv
18295041Sbr# after which config should be rerun for all machines.
19295041Sbr#
20295041Sbr
21295041Sbr# Which version of config(8) is required.
22295041Sbr%VERSREQ=	600012
23295041Sbr
24295041Sbr.if !defined(S)
25295041SbrS=	../../..
26295041Sbr.endif
27295041Sbr.include "$S/conf/kern.pre.mk"
28295041Sbr
29295041SbrINCLUDES+= -I$S/contrib/libfdt
30295041Sbr
31295041Sbr.if !empty(DDB_ENABLED)
32296614SbrCFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
33295041Sbr.endif
34295041Sbr
35300617Sbr# hack because genassym.c includes sys/bus.h which includes these.
36300617Sbrgenassym.o: bus_if.h device_if.h
37300617Sbr
38295041Sbr%BEFORE_DEPEND
39295041Sbr
40295041Sbr%OBJS
41295041Sbr
42295041Sbr%FILES.c
43295041Sbr
44295041Sbr%FILES.s
45295041Sbr
46295041Sbr%FILES.m
47295041Sbr
48295041Sbr%CLEAN
49295041Sbr
50295041Sbr%RULES
51295041Sbr
52295041Sbr.include "$S/conf/kern.post.mk"
53