Makefile.arm revision 140479
1# Makefile.arm -- with config changes.
2# Copyright 1990 W. Jolitz
3#	from: @(#)Makefile.i386	7.1 5/10/91
4# $FreeBSD: head/sys/conf/Makefile.arm 140479 2005-01-19 16:43:43Z cognet $
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/arm/conf/``machineid''
12# after which you should do
13#	 config machineid
14# Generic makefile changes should be made in
15#	/sys/conf/Makefile.arm
16# after which config should be rerun for all machines.
17#
18
19# Which version of config(8) is required.
20%VERSREQ=	600000
21
22# Temporary stuff while we're still embryonic
23NO_MODULES=
24
25STD8X16FONT?=	iso
26
27.if !defined(S)
28.if exists(./@/.)
29S=	./@
30.else
31S=	../../..
32.endif
33.endif
34.include "$S/conf/kern.pre.mk"
35
36SYSTEM_LD:= ${SYSTEM_LD:$S/conf/ldscript.$M=ldscript.$M}
37SYSTEM_DEP:= ${SYSTEM_DEP:$S/conf/ldscript.$M=ldscript.$M}
38
39.if defined(ARM_BIG_ENDIAN)
40CC += -mbig-endian
41SYSTEM_LD += -EB
42.endif
43
44%BEFORE_DEPEND
45
46%OBJS
47
48%FILES.c
49
50%FILES.s
51
52%FILES.m
53
54%CLEAN
55
56ldscript.$M: $S/conf/ldscript.$M
57	cat $S/conf/ldscript.$M|sed s/KERNPHYSADDR/${KERNPHYSADDR}/g| \
58	  sed s/KERNVIRTADDR/${KERNVIRTADDR}/g > ldscript.$M
59%RULES
60	
61.include "$S/conf/kern.post.mk"
62