Deleted Added
full compact
Makefile (225736) Makefile (232930)
1# $FreeBSD: stable/9/sys/boot/i386/gptboot/Makefile 225530 2011-09-13 14:03:55Z avg $
1# $FreeBSD: stable/9/sys/boot/i386/gptboot/Makefile 232930 2012-03-13 18:39:57Z dim $
2
3.PATH: ${.CURDIR}/../boot2 ${.CURDIR}/../common ${.CURDIR}/../../common
4
5FILES= gptboot
6
7NM?= nm
8
9BOOT_COMCONSOLE_PORT?= 0x3f8

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

31 -I${.CURDIR}/../btx/lib -I. \
32 -I${.CURDIR}/../boot2 \
33 -I${.CURDIR}/../../.. \
34 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align \
35 -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \
36 -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings \
37 -Winline --param max-inline-insns-single=100
38
2
3.PATH: ${.CURDIR}/../boot2 ${.CURDIR}/../common ${.CURDIR}/../../common
4
5FILES= gptboot
6
7NM?= nm
8
9BOOT_COMCONSOLE_PORT?= 0x3f8

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

31 -I${.CURDIR}/../btx/lib -I. \
32 -I${.CURDIR}/../boot2 \
33 -I${.CURDIR}/../../.. \
34 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align \
35 -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \
36 -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings \
37 -Winline --param max-inline-insns-single=100
38
39.if ${CC:T:Mclang} == "clang"
40# XXX: clang integrated-as doesn't grok .codeNN directives yet
41CFLAGS+= ${.IMPSRC:T:Mgptldr.S:C/^.+$/-no-integrated-as/}
42.endif
43
44LDFLAGS=-static -N --gc-sections
45
46# Pick up ../Makefile.inc early.
47.include <bsd.init.mk>
48
49CLEANFILES= gptboot
50
51gptboot: gptldr.bin gptboot.bin ${BTXKERN}

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

74.if ${MACHINE_CPUARCH} == "amd64"
75beforedepend gptboot.o: machine
76CLEANFILES+= machine
77machine:
78 ln -sf ${.CURDIR}/../../../i386/include machine
79.endif
80
81.include <bsd.prog.mk>
39LDFLAGS=-static -N --gc-sections
40
41# Pick up ../Makefile.inc early.
42.include <bsd.init.mk>
43
44CLEANFILES= gptboot
45
46gptboot: gptldr.bin gptboot.bin ${BTXKERN}

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

69.if ${MACHINE_CPUARCH} == "amd64"
70beforedepend gptboot.o: machine
71CLEANFILES+= machine
72machine:
73 ln -sf ${.CURDIR}/../../../i386/include machine
74.endif
75
76.include <bsd.prog.mk>
77
78# XXX: clang integrated-as doesn't grok .codeNN directives yet
79CFLAGS.gptldr.S= ${CLANG_NO_IAS}
80CFLAGS+= ${CFLAGS.${.IMPSRC:T}}