Makefile.arm64 (750d951f5aff7fbad1aff6229e8cba24d15c7406) Makefile.arm64 (5641eda2f3f9658de93ad3eefd27880778d49d65)
1# Makefile.arm64 -- 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#

--- 13 unchanged lines hidden (view full) ---

22
23.if !defined(S)
24S= ../../..
25.endif
26.include "$S/conf/kern.pre.mk"
27
28INCLUDES+= -I$S/contrib/libfdt
29
1# Makefile.arm64 -- 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#

--- 13 unchanged lines hidden (view full) ---

22
23.if !defined(S)
24S= ../../..
25.endif
26.include "$S/conf/kern.pre.mk"
27
28INCLUDES+= -I$S/contrib/libfdt
29
30#SYSTEM_LD:= ${SYSTEM_LD:$S/conf/ldscript.$M=ldscript.$M}
31#SYSTEM_DEP:= ${SYSTEM_DEP:$S/conf/ldscript.$M=ldscript.$M}
32
30.if !empty(DDB_ENABLED)
31CFLAGS += -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
32.endif
33
33.if !empty(DDB_ENABLED)
34CFLAGS += -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
35.endif
36
37SYSTEM_LD_ = ${LD} -m ${LD_EMULATION} -Bdynamic -T ldscript.$M.noheader \
38 ${_LDFLAGS} --no-warn-mismatch --warn-common --export-dynamic \
39 --dynamic-linker /red/herring \
40 -o ${FULLKERNEL}.noheader -X ${SYSTEM_OBJS} vers.o
41SYSTEM_LD_TAIL +=;sed s/" + SIZEOF_HEADERS"// $(LDSCRIPT)\
42 >ldscript.$M.noheader;\
43 ${SYSTEM_LD_}; \
44 ${OBJCOPY} -S -O binary ${FULLKERNEL}.noheader \
45 ${KERNEL_KO}.bin; \
46 rm ${FULLKERNEL}.noheader
47
34%BEFORE_DEPEND
35
36%OBJS
37
38%FILES.c
39
40%FILES.s
41
42%FILES.m
43
44%CLEAN
48%BEFORE_DEPEND
49
50%OBJS
51
52%FILES.c
53
54%FILES.s
55
56%FILES.m
57
58%CLEAN
59CLEAN+= ldscript.$M ${KERNEL_KO}.bin ldscript.$M.noheader
45
46%RULES
47
48.include "$S/conf/kern.post.mk"
60
61%RULES
62
63.include "$S/conf/kern.post.mk"