Deleted Added
full compact
Makefile.i386 (5) Makefile.i386 (241)
1# Copyright 1990 W. Jolitz
2# @(#)Makefile.i386 7.1 5/10/91
3# Makefile for 4.3 BSD-Reno
4#
5# This makefile is constructed from a machine description:
6# config machineid
7# Most changes should be made in the machine description
8# /sys/i386/conf/``machineid''

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

13# after which config should be rerun for all machines.
14#
15# N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE INVISIBLE TO MAKEFILE
16# IF YOU CHANGE THE DEFINITION OF ANY OF THESE RECOMPILE EVERYTHING
17#
18# -DTRACE compile in kernel tracing hooks
19# -DQUOTA compile in file system quotas
20#
1# Copyright 1990 W. Jolitz
2# @(#)Makefile.i386 7.1 5/10/91
3# Makefile for 4.3 BSD-Reno
4#
5# This makefile is constructed from a machine description:
6# config machineid
7# Most changes should be made in the machine description
8# /sys/i386/conf/``machineid''

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

13# after which config should be rerun for all machines.
14#
15# N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE INVISIBLE TO MAKEFILE
16# IF YOU CHANGE THE DEFINITION OF ANY OF THESE RECOMPILE EVERYTHING
17#
18# -DTRACE compile in kernel tracing hooks
19# -DQUOTA compile in file system quotas
20#
21# PATCHES MAGIC LEVEL PATCH THAT GOT US HERE
22# -------------------- ----- ----------------------
23# CURRENT PATCH LEVEL: 3 00158
24# -------------------- ----- ----------------------
25#
26# 29 Jun 92 Chris G. Demetriou Fix vers.o for kernel profiling and
27# plain old link
28# 25 Mar 93 Sean Eric Fagan Add support for assembler source
29# 25 Apr 93 Bruce Evans Support for intr-0.0, and some fixes
30# Rodney W. Grimes Added depedencies for conf.o due to
31# all the new drivers. And to param.c
32# because there were missing.
33# 26 May 97 Rodney W. Grimes Remove extra SYSTEM_LD_TAIL
34# Redirect stderr from dbsym to null,
35# this is bad, but atleast I won't get
36# 100's of bug reports about the silly
37# warning from dbsym.
38#
21
39TOUCH= touch -f -c
40LD= /usr/bin/ld
41CC= cc
42CPP= cpp
43
44S= ../..
45I386= ../../i386
46
47INCLUDES= -I. -I$S -I$S/sys
48COPTS= ${INCLUDES} ${IDENT} -DKERNEL -Di386 -DNPX
49ASFLAGS=
22TOUCH= touch -f -c
23LD= /usr/bin/ld
24CC= cc
25CPP= cpp
26
27S= ../..
28I386= ../../i386
29
30INCLUDES= -I. -I$S -I$S/sys
31COPTS= ${INCLUDES} ${IDENT} -DKERNEL -Di386 -DNPX
32ASFLAGS=
50CFLAGS= -O ${COPTS}
33CFLAGS= -O ${DEBUG} ${COPTS}
51
52NORMAL_C= ${CC} -c ${CFLAGS} ${PROF} $<
53NORMAL_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
54NORMAL_S= ${CPP} -I. -DLOCORE ${COPTS} $< | ${AS} ${ASFLAGS} -o $*.o
55DRIVER_C= ${CC} -c ${CFLAGS} ${PROF} $<
56DRIVER_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
57SYSTEM_OBJS=locore.o ${OBJS} param.o ioconf.o conf.o
58SYSTEM_DEP=Makefile symbols.sort ${SYSTEM_OBJS}

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

113assym.s: genassym
114 ./genassym >assym.s
115
116genassym:
117 ${CC} ${INCLUDES} -DKERNEL ${IDENT} ${PARAM} \
118 ${I386}/i386/genassym.c -o genassym
119
120depend: assym.s param.c
34
35NORMAL_C= ${CC} -c ${CFLAGS} ${PROF} $<
36NORMAL_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
37NORMAL_S= ${CPP} -I. -DLOCORE ${COPTS} $< | ${AS} ${ASFLAGS} -o $*.o
38DRIVER_C= ${CC} -c ${CFLAGS} ${PROF} $<
39DRIVER_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
40SYSTEM_OBJS=locore.o ${OBJS} param.o ioconf.o conf.o
41SYSTEM_DEP=Makefile symbols.sort ${SYSTEM_OBJS}

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

96assym.s: genassym
97 ./genassym >assym.s
98
99genassym:
100 ${CC} ${INCLUDES} -DKERNEL ${IDENT} ${PARAM} \
101 ${I386}/i386/genassym.c -o genassym
102
103depend: assym.s param.c
121 sh /usr/bin/mkdep ${COPTS} ${CFILES} ioconf.c
104 sh /usr/bin/mkdep ${COPTS} ${CFILES} ioconf.c param.c ${I386}/i386/conf.c
122 sh /usr/bin/mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ${I386}/i386/genassym.c
123
124links:
125 egrep '#if' ${CFILES} | sed -f $S/conf/defines | \
126 sed -e 's/:.*//' -e 's/\.c/.o/' | sort -u > dontlink
127 echo ${CFILES} | tr -s ' ' '\12' | sed 's/\.c/.o/' | \
128 sort -u | comm -23 - dontlink | \
129 sed 's,../.*/\(.*.o\),rm -f \1;ln -s ../GENERIC/\1 \1,' > makelinks

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

149 $S/sys/mbuf.h $S/ufs/quota.h $S/sys/kernel.h machine/vmparam.h \
150 $S/sys/shm.h
151 -rm -f param.c
152 cp $S/conf/param.c .
153
154param.o: param.c Makefile
155 ${CC} -c ${CFLAGS} ${PARAM} param.c
156
105 sh /usr/bin/mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ${I386}/i386/genassym.c
106
107links:
108 egrep '#if' ${CFILES} | sed -f $S/conf/defines | \
109 sed -e 's/:.*//' -e 's/\.c/.o/' | sort -u > dontlink
110 echo ${CFILES} | tr -s ' ' '\12' | sed 's/\.c/.o/' | \
111 sort -u | comm -23 - dontlink | \
112 sed 's,../.*/\(.*.o\),rm -f \1;ln -s ../GENERIC/\1 \1,' > makelinks

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

132 $S/sys/mbuf.h $S/ufs/quota.h $S/sys/kernel.h machine/vmparam.h \
133 $S/sys/shm.h
134 -rm -f param.c
135 cp $S/conf/param.c .
136
137param.o: param.c Makefile
138 ${CC} -c ${CFLAGS} ${PARAM} param.c
139
157newvers:
140vers.o: ${SYSTEM_DEP}
158 sh $S/conf/newvers.sh ${KERN_IDENT} ${IDENT}
159 ${CC} ${CFLAGS} -c vers.c
160
161%RULES
162
163# DO NOT DELETE THIS LINE -- make depend uses it
164
141 sh $S/conf/newvers.sh ${KERN_IDENT} ${IDENT}
142 ${CC} ${CFLAGS} -c vers.c
143
144%RULES
145
146# DO NOT DELETE THIS LINE -- make depend uses it
147