Makefile.i386 (5327) | Makefile.i386 (5908) |
---|---|
1# Copyright 1990 W. Jolitz 2# from: @(#)Makefile.i386 7.1 5/10/91 | 1# Copyright 1990 W. Jolitz 2# from: @(#)Makefile.i386 7.1 5/10/91 |
3# $Id: Makefile.i386,v 1.51 1994/11/27 14:26:16 davidg Exp $ | 3# $Id: Makefile.i386,v 1.52 1994/12/31 19:27:28 gibbs Exp $ |
4# 5# Makefile for FreeBSD 6# 7# This makefile is constructed from a machine description: 8# config machineid 9# Most changes should be made in the machine description 10# /sys/i386/conf/``machineid'' 11# after which you should do 12# config machineid 13# Generic makefile changes should be made in 14# /sys/i386/conf/Makefile.i386 15# after which config should be rerun for all machines. 16# | 4# 5# Makefile for FreeBSD 6# 7# This makefile is constructed from a machine description: 8# config machineid 9# Most changes should be made in the machine description 10# /sys/i386/conf/``machineid'' 11# after which you should do 12# config machineid 13# Generic makefile changes should be made in 14# /sys/i386/conf/Makefile.i386 15# after which config should be rerun for all machines. 16# |
17# N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE INVISIBLE TO MAKEFILE | 17# N.B.: DEPENDENCIES ON FOLLOWING FLAGS ARE INVISIBLE TO MAKEFILE |
18# IF YOU CHANGE THE DEFINITION OF ANY OF THESE RECOMPILE EVERYTHING 19# 20# -DTRACE compile in kernel tracing hooks 21# -DQUOTA compile in file system quotas | 18# IF YOU CHANGE THE DEFINITION OF ANY OF THESE RECOMPILE EVERYTHING 19# 20# -DTRACE compile in kernel tracing hooks 21# -DQUOTA compile in file system quotas |
22# -DFOO almost all options |
|
22# | 23# |
23TOUCH?= touch -f -c 24LD?= /usr/bin/ld | |
25CC?= cc 26CPP?= cpp | 24CC?= cc 25CPP?= cpp |
27DBSYM?= /usr/sbin/dbsym | 26LD?= /usr/bin/ld |
28 29.if exists(./@/.) 30S= ./@ 31.else 32S= ../.. 33.endif 34I386= ${S}/i386 35 --- 20 unchanged lines hidden (view full) --- 56DRIVER_C= ${CC} -c ${CFLAGS} ${PROF} $< 57DRIVER_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $< 58PROFILE_C= ${CC} -c ${CFLAGS} ${PARAM} $< 59 60SFILES= ${I386}/i386/exception.s ${I386}/i386/microtime.s \ 61 ${I386}/i386/support.s ${I386}/i386/swtch.s ${I386}/apm/apm_setup.s 62SYSTEM_CFILES= ioconf.c param.c vnode_if.c 63SYSTEM_SFILES= ${I386}/i386/locore.s | 27 28.if exists(./@/.) 29S= ./@ 30.else 31S= ../.. 32.endif 33I386= ${S}/i386 34 --- 20 unchanged lines hidden (view full) --- 55DRIVER_C= ${CC} -c ${CFLAGS} ${PROF} $< 56DRIVER_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $< 57PROFILE_C= ${CC} -c ${CFLAGS} ${PARAM} $< 58 59SFILES= ${I386}/i386/exception.s ${I386}/i386/microtime.s \ 60 ${I386}/i386/support.s ${I386}/i386/swtch.s ${I386}/apm/apm_setup.s 61SYSTEM_CFILES= ioconf.c param.c vnode_if.c 62SYSTEM_SFILES= ${I386}/i386/locore.s |
64SYSTEM_OBJS=locore.o vnode_if.o ${OBJS} ioconf.o param.o 65SYSTEM_DEP=Makefile symbols.sort ${SYSTEM_OBJS} libkern.a 66SYSTEM_LD_HEAD= @echo loading $@; rm -f $@ | 63SYSTEM_OBJS= locore.o vnode_if.o ${OBJS} ioconf.o param.o 64SYSTEM_DEP= Makefile symbols.exclude symbols.sort ${SYSTEM_OBJS} libkern.a 65SYSTEM_LD_HEAD= @echo loading $@; rm -f $@ |
67SYSTEM_LD= @${LD} -Bstatic -Z -T ${LOAD_ADDRESS} -o $@ -X ${SYSTEM_OBJS} vers.o libkern.a | 66SYSTEM_LD= @${LD} -Bstatic -Z -T ${LOAD_ADDRESS} -o $@ -X ${SYSTEM_OBJS} vers.o libkern.a |
68SYSTEM_LD_TAIL= @echo rearranging symbols; symorder symbols.sort $@; \ 69 ${DBSYM} -fT ${LOAD_ADDRESS} $@; size $@; chmod 755 $@ | 67.if ${CFLAGS:M-g} == "" 68SYMORDER_EXCLUDE=-x symbols.exclude 69.endif 70SYSTEM_LD_TAIL= @echo rearranging symbols; \ 71 symorder ${SYMORDER_EXCLUDE} symbols.sort $@; \ 72 size $@; chmod 755 $@ |
70 71%BEFORE_DEPEND 72 73%OBJS 74 75%CFILES 76 77%LOAD --- 16 unchanged lines hidden (view full) --- 94libkern.a: ${LIBKERN} 95 @rm -f libkern.a 96 ln -s ${LIBKERN} libkern.a 97 98${LIBKERN}: 99 @(cd $S/libkern; make) 100 101clean: | 73 74%BEFORE_DEPEND 75 76%OBJS 77 78%CFILES 79 80%LOAD --- 16 unchanged lines hidden (view full) --- 97libkern.a: ${LIBKERN} 98 @rm -f libkern.a 99 ln -s ${LIBKERN} libkern.a 100 101${LIBKERN}: 102 @(cd $S/libkern; make) 103 104clean: |
102 rm -f eddep kernel tags *.o *.s errs linterrs makelinks genassym | 105 rm -f eddep kernel tags *.o *.s errs linterrs makelinks genassym \ 106 symbols.exclude symbols.sort |
103 104#lint: /tmp param.c 105# @lint -hbxn -DGENERIC -Dvolatile= ${COPTS} ${PARAM} \ 106# ${I386}/i386/Locore.c ${CFILES} ioconf.c param.c | \ 107# grep -v 'struct/union .* never defined' | \ 108# grep -v 'possible pointer alignment problem' 109 | 107 108#lint: /tmp param.c 109# @lint -hbxn -DGENERIC -Dvolatile= ${COPTS} ${PARAM} \ 110# ${I386}/i386/Locore.c ${CFILES} ioconf.c param.c | \ 111# grep -v 'struct/union .* never defined' | \ 112# grep -v 'possible pointer alignment problem' 113 |
114symbols.exclude: Makefile 115 echo "gcc2_compiled." >symbols.exclude 116 echo "___gnu_compiled_c" >>symbols.exclude 117 |
|
110symbols.sort: ${I386}/i386/symbols.raw 111 grep -v '^#' ${I386}/i386/symbols.raw \ 112 | sed 's/^ //' | sort -u > symbols.sort 113 114locore.o: ${I386}/i386/locore.s assym.s 115 ${NORMAL_S} 116 117# everything potentially depends on the Makefile since everything potentially --- 73 unchanged lines hidden --- | 118symbols.sort: ${I386}/i386/symbols.raw 119 grep -v '^#' ${I386}/i386/symbols.raw \ 120 | sed 's/^ //' | sort -u > symbols.sort 121 122locore.o: ${I386}/i386/locore.s assym.s 123 ${NORMAL_S} 124 125# everything potentially depends on the Makefile since everything potentially --- 73 unchanged lines hidden --- |