summaryrefslogtreecommitdiffstats
path: root/sys/conf/Makefile.i386
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-11-22 15:39:13 +0000
committerpeter <peter@FreeBSD.org>1999-11-22 15:39:13 +0000
commit01330ff49e7c66a6891e16b12f8d89aee4b48eb0 (patch)
tree47b9eeed749a5cdf028d9fad3883903d78599e0f /sys/conf/Makefile.i386
parent84a3f8a8d21de924b8372e826881b466497db886 (diff)
downloadFreeBSD-src-01330ff49e7c66a6891e16b12f8d89aee4b48eb0.zip
FreeBSD-src-01330ff49e7c66a6891e16b12f8d89aee4b48eb0.tar.gz
Update the Alpha makefile to be more in line with the x86 version. It
was getting quite dated. Attempt to minimize diffs between the two so it's not as painful to do this next time.
Diffstat (limited to 'sys/conf/Makefile.i386')
-rw-r--r--sys/conf/Makefile.i38632
1 files changed, 11 insertions, 21 deletions
diff --git a/sys/conf/Makefile.i386 b/sys/conf/Makefile.i386
index 0e5820c..ffd538b 100644
--- a/sys/conf/Makefile.i386
+++ b/sys/conf/Makefile.i386
@@ -33,6 +33,8 @@ S= ../..
.endif
I386= ${S}/i386
+SIZE?= size
+
COPTFLAGS?=-O
INCLUDES= -nostdinc -I- -I. -I$S
# This hack is to allow kernel compiles to succeed on machines w/out srcdist
@@ -56,10 +58,11 @@ GEN_CFLAGS= ${COPTFLAGS} ${CWARNFLAGS} ${DEBUG} ${COPTS} -UKERNEL
# doesn't get exported into the environment, and if it were exported
# then it might break building of genassym, etc.
.if ${KERNFORMAT} == "elf"
-CFLAGS+= -elf
+FMT= -elf
.else
-CFLAGS+= -aout
+FMT= -aout
.endif
+CFLAGS+= ${FMT}
LOAD_ADDRESS?= C0100000
DEFINED_PROF= ${PROF}
@@ -87,26 +90,21 @@ GEN_CFILES= ${I386}/i386/genassym.c
# everything just to do a make depend.
SYSTEM_CFILES= ioconf.c param.c vnode_if.c config.c
SYSTEM_SFILES= ${I386}/i386/locore.s
-SYSTEM_DEP= Makefile symbols.exclude symbols.sort ${SYSTEM_OBJS}
-.if ${CFLAGS:M-g} == ""
-SYMORDER_EXCLUDE=-x symbols.exclude
-.endif
+SYSTEM_DEP= Makefile ${SYSTEM_OBJS}
.if ${KERNFORMAT} == aout || ${KERNFORMAT} == aoutkld
SYSTEM_OBJS= locore.o vnode_if.o ${OBJS} ioconf.o param.o config.o
-SYSTEM_LD= @${LD} -aout -Bforcedynamic -Z -T ${LOAD_ADDRESS} -o ${.TARGET} -X ${SYSTEM_OBJS} vers.o
-SYSTEM_LD_TAIL= @echo rearranging symbols; \
- symorder -m ${SYMORDER_EXCLUDE} symbols.sort ${.TARGET}; \
- size -aout ${.TARGET} ; chmod 755 ${.TARGET}
+SYSTEM_LD= @${LD} ${FMT} -Bforcedynamic -Z -T ${LOAD_ADDRESS} -o ${.TARGET} -X ${SYSTEM_OBJS} vers.o
+SYSTEM_LD_TAIL= @${SIZE} ${FMT} ${.TARGET} ; chmod 755 ${.TARGET}
.endif
.if ${KERNFORMAT} == elf
SYSTEM_OBJS= locore.o setdef0.o vnode_if.o ${OBJS} ioconf.o param.o config.o \
setdef1.o hack.So
-SYSTEM_LD= @${LD} -elf -Bdynamic -T $S/i386/conf/kernel.script \
+SYSTEM_LD= @${LD} ${FMT} -Bdynamic -T $S/i386/conf/kernel.script \
-export-dynamic -dynamic-linker /red/herring \
-o ${.TARGET} -X ${SYSTEM_OBJS} vers.o
-SYSTEM_LD_TAIL= @size -elf ${.TARGET} ; chmod 755 ${.TARGET}
+SYSTEM_LD_TAIL= @${SIZE} ${FMT} ${.TARGET} ; chmod 755 ${.TARGET}
SYSTEM_DEP+= $S/i386/conf/kernel.script
.endif
@@ -159,14 +157,6 @@ clean:
# grep -v 'struct/union .* never defined' | \
# grep -v 'possible pointer alignment problem'
-symbols.exclude:
- echo "gcc2_compiled." >symbols.exclude
- echo "___gnu_compiled_c" >>symbols.exclude
-
-symbols.sort: ${I386}/i386/symbols.raw
- grep -v '^#' ${I386}/i386/symbols.raw \
- | sed 's/^ //' | sort -u > symbols.sort
-
locore.o: ${I386}/i386/locore.s assym.s
${NORMAL_S}
@@ -176,7 +166,7 @@ locore.o: ${I386}/i386/locore.s assym.s
# in the a.out ld. For now, this works.
hack.So: Makefile
touch hack.c
- ${CC} -elf -shared -nostdlib hack.c -o hack.So
+ ${CC} ${FMT} -shared -nostdlib hack.c -o hack.So
rm -f hack.c
.endif
OpenPOWER on IntegriCloud