2004-05-14 11:49:40 +00:00
|
|
|
# Makefile.arm -- with config changes.
|
|
|
|
# Copyright 1990 W. Jolitz
|
|
|
|
# from: @(#)Makefile.i386 7.1 5/10/91
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# Makefile for FreeBSD
|
|
|
|
#
|
|
|
|
# This makefile is constructed from a machine description:
|
|
|
|
# config machineid
|
|
|
|
# Most changes should be made in the machine description
|
2004-09-23 22:47:57 +00:00
|
|
|
# /sys/arm/conf/``machineid''
|
2004-05-14 11:49:40 +00:00
|
|
|
# after which you should do
|
|
|
|
# config machineid
|
|
|
|
# Generic makefile changes should be made in
|
2004-09-23 22:47:57 +00:00
|
|
|
# /sys/conf/Makefile.arm
|
2004-05-14 11:49:40 +00:00
|
|
|
# after which config should be rerun for all machines.
|
|
|
|
#
|
|
|
|
|
|
|
|
# Which version of config(8) is required.
|
2005-02-10 21:15:31 +00:00
|
|
|
%VERSREQ= 600001
|
2004-05-14 11:49:40 +00:00
|
|
|
|
|
|
|
# Temporary stuff while we're still embryonic
|
2004-10-24 15:33:08 +00:00
|
|
|
NO_MODULES=
|
2004-05-14 11:49:40 +00:00
|
|
|
|
|
|
|
STD8X16FONT?= iso
|
|
|
|
|
|
|
|
.if !defined(S)
|
|
|
|
.if exists(./@/.)
|
|
|
|
S= ./@
|
|
|
|
.else
|
|
|
|
S= ../../..
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
.include "$S/conf/kern.pre.mk"
|
|
|
|
|
2004-09-23 22:47:57 +00:00
|
|
|
SYSTEM_LD:= ${SYSTEM_LD:$S/conf/ldscript.$M=ldscript.$M}
|
|
|
|
SYSTEM_DEP:= ${SYSTEM_DEP:$S/conf/ldscript.$M=ldscript.$M}
|
2005-01-19 16:43:43 +00:00
|
|
|
|
|
|
|
.if defined(ARM_BIG_ENDIAN)
|
|
|
|
CC += -mbig-endian
|
|
|
|
SYSTEM_LD += -EB
|
|
|
|
.endif
|
|
|
|
|
2004-05-14 11:49:40 +00:00
|
|
|
%BEFORE_DEPEND
|
|
|
|
|
|
|
|
%OBJS
|
|
|
|
|
|
|
|
%FILES.c
|
|
|
|
|
|
|
|
%FILES.s
|
|
|
|
|
|
|
|
%FILES.m
|
|
|
|
|
|
|
|
%CLEAN
|
|
|
|
|
2004-09-23 22:47:57 +00:00
|
|
|
ldscript.$M: $S/conf/ldscript.$M
|
|
|
|
cat $S/conf/ldscript.$M|sed s/KERNPHYSADDR/${KERNPHYSADDR}/g| \
|
|
|
|
sed s/KERNVIRTADDR/${KERNVIRTADDR}/g > ldscript.$M
|
2004-05-14 11:49:40 +00:00
|
|
|
%RULES
|
|
|
|
|
|
|
|
.include "$S/conf/kern.post.mk"
|