Deleted Added
full compact
Makefile.pc98 (35261) Makefile.pc98 (35514)
1# Makefile for FreeBSD(98) after:
2#
3# Makefile.i386 -- with config changes.
4# Copyright 1990 W. Jolitz
5# from: @(#)Makefile.i386 7.1 5/10/91
1# Makefile for FreeBSD(98) after:
2#
3# Makefile.i386 -- with config changes.
4# Copyright 1990 W. Jolitz
5# from: @(#)Makefile.i386 7.1 5/10/91
6# $Id: Makefile.pc98,v 1.27 1998/04/16 16:34:09 kato Exp $
6# $Id: Makefile.pc98,v 1.28 1998/04/18 05:07:43 kato Exp $
7#
8# Makefile for FreeBSD
9#
10# This makefile is constructed from a machine description:
11# config machineid
12# Most changes should be made in the machine description
13# /sys/i386/conf/``machineid''
14# after which you should do

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

69# is generated from all of ${OBJS}. We don't want to have to compile
70# everything just to do a make depend.
71SYSTEM_CFILES= ioconf.c param.c vnode_if.c config.c
72SYSTEM_SFILES= ${I386}/i386/locore.s
73SYSTEM_DEP= Makefile symbols.exclude symbols.sort ${SYSTEM_OBJS}
74.if ${CFLAGS:M-g} == ""
75SYMORDER_EXCLUDE=-x symbols.exclude
76.endif
7#
8# Makefile for FreeBSD
9#
10# This makefile is constructed from a machine description:
11# config machineid
12# Most changes should be made in the machine description
13# /sys/i386/conf/``machineid''
14# after which you should do

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

69# is generated from all of ${OBJS}. We don't want to have to compile
70# everything just to do a make depend.
71SYSTEM_CFILES= ioconf.c param.c vnode_if.c config.c
72SYSTEM_SFILES= ${I386}/i386/locore.s
73SYSTEM_DEP= Makefile symbols.exclude symbols.sort ${SYSTEM_OBJS}
74.if ${CFLAGS:M-g} == ""
75SYMORDER_EXCLUDE=-x symbols.exclude
76.endif
77SYSTEM_LD_HEAD= @echo loading $@; rm -f $@
77SYSTEM_LD_HEAD= @echo loading ${.TARGET}; rm -f ${.TARGET}
78.if ${BINFORMAT} == aout
79SYSTEM_OBJS= locore.o vnode_if.o ${OBJS} ioconf.o param.o config.o
78.if ${BINFORMAT} == aout
79SYSTEM_OBJS= locore.o vnode_if.o ${OBJS} ioconf.o param.o config.o
80SYSTEM_LD= @${LD} -Bstatic -Z -T ${LOAD_ADDRESS} -o $@ -X ${SYSTEM_OBJS} vers.o
80SYSTEM_LD= @${LD} -Bstatic -Z -T ${LOAD_ADDRESS} -o ${.TARGET} -X ${SYSTEM_OBJS} vers.o
81SYSTEM_LD_TAIL= @echo rearranging symbols; \
81SYSTEM_LD_TAIL= @echo rearranging symbols; \
82 symorder -m ${SYMORDER_EXCLUDE} symbols.sort $@; \
83 size $@; chmod 755 $@
82 symorder -m ${SYMORDER_EXCLUDE} symbols.sort ${.TARGET} \
83 size ${.TARGET} ; chmod 755 ${.TARGET}
84.endif
85.if ${BINFORMAT} == aoutkld
86SYSTEM_OBJS= locore.o vnode_if.o ${OBJS} ioconf.o param.o config.o
84.endif
85.if ${BINFORMAT} == aoutkld
86SYSTEM_OBJS= locore.o vnode_if.o ${OBJS} ioconf.o param.o config.o
87SYSTEM_LD= @${LD} -Bforcedynamic -Z -T ${LOAD_ADDRESS} -o $@ -X ${SYSTEM_OBJS} vers.o
87SYSTEM_LD= @${LD} -Bforcedynamic -Z -T ${LOAD_ADDRESS} -o ${.TARGET} -X ${SYSTEM_OBJS} vers.o
88SYSTEM_LD_TAIL= @echo rearranging symbols; \
88SYSTEM_LD_TAIL= @echo rearranging symbols; \
89 symorder -m ${SYMORDER_EXCLUDE} symbols.sort $@; \
90 size $@; chmod 755 $@
89 symorder -m ${SYMORDER_EXCLUDE} symbols.sort ${.TARGET}; \
90 size ${.TARGET} ; chmod 755 ${.TARGET}
91.endif
92.if ${BINFORMAT} == elf
93SYSTEM_OBJS= locore.o setdef0.o vnode_if.o ${OBJS} ioconf.o param.o config.o \
94 setdef1.o
95SYSTEM_LD= @${LD} -Bstatic -Ttext ${LOAD_ADDRESS} -e btext -defsym _DYNAMIC=0 \
91.endif
92.if ${BINFORMAT} == elf
93SYSTEM_OBJS= locore.o setdef0.o vnode_if.o ${OBJS} ioconf.o param.o config.o \
94 setdef1.o
95SYSTEM_LD= @${LD} -Bstatic -Ttext ${LOAD_ADDRESS} -e btext -defsym _DYNAMIC=0 \
96 -o $@ -X ${SYSTEM_OBJS} vers.o
97SYSTEM_LD_TAIL= @size $@; chmod 755 $@
96 -o ${.TARGET} -X ${SYSTEM_OBJS} vers.o
97SYSTEM_LD_TAIL= @size ${.TARGET}; chmod 755 ${.TARGET}
98.endif
99
100%BEFORE_DEPEND
101
102%OBJS
103
104%CFILES
105

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

136
137setdef1.o: ${I386}/i386/setdef1.c setdefs.h
138 ${NORMAL_C}
139
140setdefs.h: gensetdefs ${OBJS}
141 ./gensetdefs ${OBJS} >setdefs.h
142
143gensetdefs: gensetdefs.o
98.endif
99
100%BEFORE_DEPEND
101
102%OBJS
103
104%CFILES
105

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

136
137setdef1.o: ${I386}/i386/setdef1.c setdefs.h
138 ${NORMAL_C}
139
140setdefs.h: gensetdefs ${OBJS}
141 ./gensetdefs ${OBJS} >setdefs.h
142
143gensetdefs: gensetdefs.o
144 ${CC} ${CFLAGS} gensetdefs.o -o $@
144 ${CC} ${CFLAGS} gensetdefs.o -o ${.TARGET}
145
146gensetdefs.o: ${I386}/i386/gensetdefs.c
147 ${CC} -c ${CFLAGS} ${I386}/i386/gensetdefs.c
148
149# everything potentially depends on the Makefile since everything potentially
150# depends on the options. Some things are more dependent on the Makefile for
151# historical reasons.
152machdep.o: Makefile

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

168
169# Some of the defines that genassym outputs may well depend on the
170# value of kernel options.
171genassym.o: ${I386}/i386/genassym.c Makefile opt_global.h opt_vm86.h
172 rm -f ./machine ; ln -s ${I386}/include ./machine
173 ${CC} -c ${CFLAGS} ${PARAM} -UKERNEL ${I386}/i386/genassym.c
174
175genassym: genassym.o
145
146gensetdefs.o: ${I386}/i386/gensetdefs.c
147 ${CC} -c ${CFLAGS} ${I386}/i386/gensetdefs.c
148
149# everything potentially depends on the Makefile since everything potentially
150# depends on the options. Some things are more dependent on the Makefile for
151# historical reasons.
152machdep.o: Makefile

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

168
169# Some of the defines that genassym outputs may well depend on the
170# value of kernel options.
171genassym.o: ${I386}/i386/genassym.c Makefile opt_global.h opt_vm86.h
172 rm -f ./machine ; ln -s ${I386}/include ./machine
173 ${CC} -c ${CFLAGS} ${PARAM} -UKERNEL ${I386}/i386/genassym.c
174
175genassym: genassym.o
176 ${CC} ${CFLAGS} ${PARAM} genassym.o -o $@
176 ${CC} ${CFLAGS} ${PARAM} genassym.o -o ${.TARGET}
177
178${OBJS}: opt_global.h
179
180# XXX this assumes that the options for NORMAL_C* and DRIVER_C* are identical.
181depend: assym.s param.c vnode_if.h ${BEFORE_DEPEND}
182 rm -f .newdep
183 mkdep -a -f .newdep ${COPTS} ${CFILES} ${SYSTEM_CFILES}
184 mkdep -a -f .newdep ${COPTS} ${PARAM} -UKERNEL ${I386}/i386/genassym.c

--- 62 unchanged lines hidden ---
177
178${OBJS}: opt_global.h
179
180# XXX this assumes that the options for NORMAL_C* and DRIVER_C* are identical.
181depend: assym.s param.c vnode_if.h ${BEFORE_DEPEND}
182 rm -f .newdep
183 mkdep -a -f .newdep ${COPTS} ${CFILES} ${SYSTEM_CFILES}
184 mkdep -a -f .newdep ${COPTS} ${PARAM} -UKERNEL ${I386}/i386/genassym.c

--- 62 unchanged lines hidden ---