1# $MirOS: src/sys/arch/i386/conf/Makefile.i386,v 1.18 2009/12/26 11:34:47 tg Exp $
2# $OpenBSD: Makefile.i386,v 1.40 2004/05/11 04:01:00 deraadt Exp $
3
4# Makefile for MirOS BSD
5#
6# This makefile is constructed from a machine description:
7#	config machineid
8# Most changes should be made in the machine description
9#	/sys/arch/i386/conf/MACHINEID
10# after which you should do
11#	config machineid
12# Machine generic makefile changes should be made in
13#	/sys/arch/i386/conf/Makefile.i386
14# after which config should be rerun for all machines of that type.
15#
16# N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE VISIBLE TO MAKEFILE
17#	IF YOU CHANGE THE DEFINITION OF ANY OF THESE RECOMPILE EVERYTHING
18#
19# -DTRACE	compile in kernel tracing hooks
20# -DQUOTA	compile in file system quotas
21
22# DEBUG is set to -g if debugging.
23
24.include <bsd.own.mk>
25
26# source tree is located via $S relative to the compilation directory
27.ifndef S
28S!=	realpath ../../../..
29.endif
30I386=	$S/arch/i386
31_MDINC=	${I386}/i386
32
33CPPFLAGS=	${INCLUDES} ${IDENT} -D_KERNEL -Di386
34
35# machine-dependent default flags (overrides CFLAGS, overridden by COPTS)
36.if !${IDENT:M-DI386_CPU}
37CMACHFLAGS=	-march=i486
38.else
39CMACHFLAGS=	-march=i386 -msoft-float -mno-fp-ret-in-387
40.endif
41
42LINKFLAGS=	-Ttext 0xD0100120 -e start -N
43
44.include "$S/conf/Makefile.inc"
45
46### included rules
47
48%OBJS
49
50%CFILES
51
52%SFILES
53
54%LOAD
55
56
57# depend on network or filesystem configuration
58uipc_domain.o uipc_proto.o vfs_conf.o: Makefile
59if.o if_tun.o if_loop.o if_ethersubr.o: Makefile
60if_arp.o if_ether.o: Makefile
61ip_input.o ip_output.o in_pcb.o in_proto.o: Makefile
62tcp_subr.o tcp_timer.o tcp_output.o: Makefile
63
64# depend on CPU configuration
65locore.o machdep.o: Makefile
66
67
68%RULES
69