Deleted Added
full compact
Makefile.powerpc (82393) Makefile.powerpc (84897)
1# Makefile.powerpc -- with config changes.
2# Copyright 1990 W. Jolitz
3# from: @(#)Makefile.i386 7.1 5/10/91
1# Makefile.powerpc -- with config changes.
2# Copyright 1990 W. Jolitz
3# from: @(#)Makefile.i386 7.1 5/10/91
4# $FreeBSD: head/sys/conf/Makefile.powerpc 82393 2001-08-27 05:11:53Z peter $
4# $FreeBSD: head/sys/conf/Makefile.powerpc 84897 2001-10-13 19:57:28Z mp $
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/powerpc/conf/``machineid''
12# after which you should do

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

34.else
35S= ../../..
36.endif
37.endif
38M= ${MACHINE_ARCH}
39
40SIZE?= size
41OBJCOPY?= objcopy
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/powerpc/conf/``machineid''
12# after which you should do

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

34.else
35S= ../../..
36.endif
37.endif
38M= ${MACHINE_ARCH}
39
40SIZE?= size
41OBJCOPY?= objcopy
42NM?= nm
42
43COPTFLAGS?=-O -pipe
44.if !defined(NO_CPU_COPTFLAGS)
45COPTFLAGS+= ${_CPUCFLAGS}
46.endif
47INCLUDES= -nostdinc -I- ${INCLMAGIC} -I. -I$S -I$S/dev
48
49# This hack lets us use the Intel ACPICA code without spamming a new

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

56# This hack is to allow kernel compiles to succeed on machines w/out srcdist
57.if exists($S/../include)
58INCLUDES+= -I$S/../include
59.else
60INCLUDES+= -I/usr/include
61.endif
62
63COPTS= ${INCLUDES} ${IDENT} -D_KERNEL -D__ELF__ -D__FreeBSD__ -include opt_global.h -msoft-float
43
44COPTFLAGS?=-O -pipe
45.if !defined(NO_CPU_COPTFLAGS)
46COPTFLAGS+= ${_CPUCFLAGS}
47.endif
48INCLUDES= -nostdinc -I- ${INCLMAGIC} -I. -I$S -I$S/dev
49
50# This hack lets us use the Intel ACPICA code without spamming a new

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

57# This hack is to allow kernel compiles to succeed on machines w/out srcdist
58.if exists($S/../include)
59INCLUDES+= -I$S/../include
60.else
61INCLUDES+= -I/usr/include
62.endif
63
64COPTS= ${INCLUDES} ${IDENT} -D_KERNEL -D__ELF__ -D__FreeBSD__ -include opt_global.h -msoft-float
65CWARNFLAGS=-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
66 -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
64CFLAGS= ${COPTFLAGS} ${CWARNFLAGS} ${DEBUG} ${COPTS}
65
66# XXX LOCORE means "don't declare C stuff" not "for locore.s".
67ASM_CFLAGS= -x assembler-with-cpp -DLOCORE ${CFLAGS}
68
69# Select the correct set of tools. Can't set OBJFORMAT here because it
70# doesn't get exported into the environment, and if it were exported
71# then it might break building of utilities.
67CFLAGS= ${COPTFLAGS} ${CWARNFLAGS} ${DEBUG} ${COPTS}
68
69# XXX LOCORE means "don't declare C stuff" not "for locore.s".
70ASM_CFLAGS= -x assembler-with-cpp -DLOCORE ${CFLAGS}
71
72# Select the correct set of tools. Can't set OBJFORMAT here because it
73# doesn't get exported into the environment, and if it were exported
74# then it might break building of utilities.
72FMT= -elf
75FMT=
73CFLAGS+= ${FMT}
74
75DEFINED_PROF= ${PROF}
76.if defined(PROF)
77CFLAGS+= -malign-functions=4
78.if ${PROFLEVEL} >= 2
79IDENT+= -DGPROF4 -DGUPROF
80PROF+= -mprofiler-epilogue

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

175 touch hack.c
176 ${CC} ${FMT} -shared -nostdlib hack.c -o hack.So
177 rm -f hack.c
178
179# this rule stops ./assym.s in .depend from causing problems
180./assym.s: assym.s
181
182assym.s: $S/kern/genassym.sh genassym.o
76CFLAGS+= ${FMT}
77
78DEFINED_PROF= ${PROF}
79.if defined(PROF)
80CFLAGS+= -malign-functions=4
81.if ${PROFLEVEL} >= 2
82IDENT+= -DGPROF4 -DGUPROF
83PROF+= -mprofiler-epilogue

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

178 touch hack.c
179 ${CC} ${FMT} -shared -nostdlib hack.c -o hack.So
180 rm -f hack.c
181
182# this rule stops ./assym.s in .depend from causing problems
183./assym.s: assym.s
184
185assym.s: $S/kern/genassym.sh genassym.o
183 OBJFORMAT=elf sh $S/kern/genassym.sh genassym.o > ${.TARGET}
186 NM=${NM} OBJFORMAT=elf sh $S/kern/genassym.sh genassym.o > ${.TARGET}
184
185genassym.o: $S/$M/$M/genassym.c
186 ${CC} -c ${CFLAGS} -elf $S/$M/$M/genassym.c
187
188${SYSTEM_OBJS} genassym.o vers.o: opt_global.h
189
190kernel-depend:
191 rm -f .olddep

--- 150 unchanged lines hidden ---
187
188genassym.o: $S/$M/$M/genassym.c
189 ${CC} -c ${CFLAGS} -elf $S/$M/$M/genassym.c
190
191${SYSTEM_OBJS} genassym.o vers.o: opt_global.h
192
193kernel-depend:
194 rm -f .olddep

--- 150 unchanged lines hidden ---