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.44 1994/10/03 18:51:35 phk Exp $
| 3# $Id: Makefile.i386,v 1.45 1994/10/03 23:03:38 rgrimes 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# 17# N.B.: NO 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 22#
| 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 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#
|
23TOUCH= touch -f -c 24LD= /usr/bin/ld 25CC= cc 26CPP= cpp 27DBSYM= /usr/sbin/dbsym
| 23TOUCH?= touch -f -c 24LD?= /usr/bin/ld 25CC?= cc 26CPP?= cpp 27DBSYM?= /usr/sbin/dbsym
|
28.if defined(DEBUG) 29.if defined(NOSTRIP)
| 28.if defined(DEBUG) 29.if defined(NOSTRIP)
|
30STRIP= echo '(skipping) strip'
| 30STRIP?= echo '(skipping) strip'
|
31.else
| 31.else
|
32STRIP= cp $@ $@.sym; strip
| 32STRIP?= cp $@ $@.sym; strip
|
33.endif 34.else
| 33.endif 34.else
|
35STRIP= strip
| 35STRIP?= strip
|
36.endif 37 38.if exists(./@/.) 39S= ./@ 40.else 41S= ../.. 42.endif 43I386= ${S}/i386 44
| 36.endif 37 38.if exists(./@/.) 39S= ./@ 40.else 41S= ../.. 42.endif 43I386= ${S}/i386 44
|
45.if !defined(CWARNFLAGS) 46CWARNFLAGS=-W -Wreturn-type -Wcomment -Wredundant-decls 47.endif
| 45CWARNFLAGS?=-W -Wreturn-type -Wcomment -Wredundant-decls 46
|
48# 49# The following flag is next up for working on: 50# -Wnested-externs 51# 52# When working on removing warnings from code, the `-Werror' flag should be 53# of material assistance. 54#
| 47# 48# The following flag is next up for working on: 49# -Wnested-externs 50# 51# When working on removing warnings from code, the `-Werror' flag should be 52# of material assistance. 53#
|
55.if !defined(COPTFLAGS) 56COPTFLAGS=-O 57.endif
| 54COPTFLAGS?=-O
|
58INCLUDES= -I. -I$S -I$S/sys 59COPTS= ${INCLUDES} ${IDENT} -DKERNEL -Di386 -DLOAD_ADDRESS=0x${LOAD_ADDRESS} 60ASFLAGS= 61CFLAGS= ${COPTFLAGS} ${CWARNFLAGS} ${DEBUG} ${COPTS} 62LOAD_ADDRESS?= F0100000 63 64NORMAL_C= ${CC} -c ${CFLAGS} ${PROF} $< 65NORMAL_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
--- 150 unchanged lines hidden --- | 55INCLUDES= -I. -I$S -I$S/sys 56COPTS= ${INCLUDES} ${IDENT} -DKERNEL -Di386 -DLOAD_ADDRESS=0x${LOAD_ADDRESS} 57ASFLAGS= 58CFLAGS= ${COPTFLAGS} ${CWARNFLAGS} ${DEBUG} ${COPTS} 59LOAD_ADDRESS?= F0100000 60 61NORMAL_C= ${CC} -c ${CFLAGS} ${PROF} $< 62NORMAL_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
--- 150 unchanged lines hidden --- |