Makefile.i386 (42368) | Makefile.i386 (42450) |
---|---|
1# Makefile.i386 -- with config changes. 2# Copyright 1990 W. Jolitz 3# from: @(#)Makefile.i386 7.1 5/10/91 | 1# Makefile.i386 -- with config changes. 2# Copyright 1990 W. Jolitz 3# from: @(#)Makefile.i386 7.1 5/10/91 |
4# $Id: Makefile.i386,v 1.132 1998/12/21 10:29:09 msmith Exp $ | 4# $Id: Makefile.i386,v 1.133 1999/01/07 06:52:41 peter Exp $ |
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/i386/conf/``machineid'' 12# after which you should do --- 77 unchanged lines hidden (view full) --- 90SYSTEM_OBJS= locore.o vnode_if.o ${OBJS} ioconf.o param.o config.o 91SYSTEM_LD= @${LD} -aout -Bforcedynamic -Z -T ${LOAD_ADDRESS} -o ${.TARGET} -X ${SYSTEM_OBJS} vers.o 92SYSTEM_LD_TAIL= @echo rearranging symbols; \ 93 symorder -m ${SYMORDER_EXCLUDE} symbols.sort ${.TARGET}; \ 94 size -aout ${.TARGET} ; chmod 755 ${.TARGET} 95.endif 96.if ${KERNFORMAT} == elf 97SYSTEM_OBJS= locore.o setdef0.o vnode_if.o ${OBJS} ioconf.o param.o config.o \ | 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/i386/conf/``machineid'' 12# after which you should do --- 77 unchanged lines hidden (view full) --- 90SYSTEM_OBJS= locore.o vnode_if.o ${OBJS} ioconf.o param.o config.o 91SYSTEM_LD= @${LD} -aout -Bforcedynamic -Z -T ${LOAD_ADDRESS} -o ${.TARGET} -X ${SYSTEM_OBJS} vers.o 92SYSTEM_LD_TAIL= @echo rearranging symbols; \ 93 symorder -m ${SYMORDER_EXCLUDE} symbols.sort ${.TARGET}; \ 94 size -aout ${.TARGET} ; chmod 755 ${.TARGET} 95.endif 96.if ${KERNFORMAT} == elf 97SYSTEM_OBJS= locore.o setdef0.o vnode_if.o ${OBJS} ioconf.o param.o config.o \ |
98 setdef1.o hack.so | 98 setdef1.o hack.So |
99SYSTEM_LD= @${LD} -elf -Bdynamic -T $S/i386/conf/kernel.script \ 100 -export-dynamic -dynamic-linker /red/herring \ 101 -o ${.TARGET} -X ${SYSTEM_OBJS} vers.o 102SYSTEM_LD_TAIL= @size -elf ${.TARGET} ; chmod 755 ${.TARGET} 103SYSTEM_DEP+= $S/i386/conf/kernel.script 104.endif 105 106%BEFORE_DEPEND --- 10 unchanged lines hidden (view full) --- 117 118%CLEAN 119 120.if !exists(.depend) 121${SYSTEM_OBJS}: ${BEFORE_DEPEND:M*.h} 122.endif 123 124clean: | 99SYSTEM_LD= @${LD} -elf -Bdynamic -T $S/i386/conf/kernel.script \ 100 -export-dynamic -dynamic-linker /red/herring \ 101 -o ${.TARGET} -X ${SYSTEM_OBJS} vers.o 102SYSTEM_LD_TAIL= @size -elf ${.TARGET} ; chmod 755 ${.TARGET} 103SYSTEM_DEP+= $S/i386/conf/kernel.script 104.endif 105 106%BEFORE_DEPEND --- 10 unchanged lines hidden (view full) --- 117 118%CLEAN 119 120.if !exists(.depend) 121${SYSTEM_OBJS}: ${BEFORE_DEPEND:M*.h} 122.endif 123 124clean: |
125 rm -f *.o *.so *.ko *.s eddep errs genassym gensetdefs kernel linterrs \ 126 makelinks param.c setdefs.h symbols.exclude symbols.sort tags \ | 125 rm -f *.o *.so *.So *.ko *.s eddep errs genassym gensetdefs \ 126 kernel linterrs makelinks param.c setdefs.h \ 127 symbols.exclude symbols.sort tags \ |
127 vers.c vnode_if.c vnode_if.h ${CLEAN} 128 129#lint: /tmp param.c 130# @lint -hbxn -DGENERIC -Dvolatile= ${COPTS} \ 131# ${I386}/i386/Locore.c ${CFILES} ioconf.c param.c | \ 132# grep -v 'struct/union .* never defined' | \ 133# grep -v 'possible pointer alignment problem' 134 --- 7 unchanged lines hidden (view full) --- 142 143locore.o: ${I386}/i386/locore.s assym.s 144 ${NORMAL_S} 145 146.if ${KERNFORMAT} == elf 147# This is a hack. BFD "optimizes" away dynamic mode if there are no 148# dynamic references. We could probably do a '-Bforcedynamic' mode like 149# in the a.out ld. For now, this works. | 128 vers.c vnode_if.c vnode_if.h ${CLEAN} 129 130#lint: /tmp param.c 131# @lint -hbxn -DGENERIC -Dvolatile= ${COPTS} \ 132# ${I386}/i386/Locore.c ${CFILES} ioconf.c param.c | \ 133# grep -v 'struct/union .* never defined' | \ 134# grep -v 'possible pointer alignment problem' 135 --- 7 unchanged lines hidden (view full) --- 143 144locore.o: ${I386}/i386/locore.s assym.s 145 ${NORMAL_S} 146 147.if ${KERNFORMAT} == elf 148# This is a hack. BFD "optimizes" away dynamic mode if there are no 149# dynamic references. We could probably do a '-Bforcedynamic' mode like 150# in the a.out ld. For now, this works. |
150hack.so: Makefile | 151hack.So: Makefile |
151 touch hack.c | 152 touch hack.c |
152 ${CC} -elf -shared -nostdlib hack.c -o hack.so | 153 ${CC} -elf -shared -nostdlib hack.c -o hack.So |
153 rm -f hack.c 154.endif 155 156setdef0.o: ${I386}/i386/setdef0.c setdefs.h 157 ${NORMAL_C} 158 159setdef1.o: ${I386}/i386/setdef1.c setdefs.h 160 ${NORMAL_C} --- 113 unchanged lines hidden --- | 154 rm -f hack.c 155.endif 156 157setdef0.o: ${I386}/i386/setdef0.c setdefs.h 158 ${NORMAL_C} 159 160setdef1.o: ${I386}/i386/setdef1.c setdefs.h 161 ${NORMAL_C} --- 113 unchanged lines hidden --- |