head	1.23;
access;
symbols
	RELENG_8_4:1.23.0.2
	RELENG_9_1_0_RELEASE:1.22.28.1.4.2
	RELENG_9_1:1.22.28.1.0.4
	RELENG_9_1_BP:1.22.28.1
	RELENG_8_3_0_RELEASE:1.22.22.1.8.1
	RELENG_8_3:1.22.22.1.0.8
	RELENG_8_3_BP:1.22.22.1
	RELENG_9_0_0_RELEASE:1.22.28.1.2.1
	RELENG_9_0:1.22.28.1.0.2
	RELENG_9_0_BP:1.22.28.1
	RELENG_9:1.22.0.28
	RELENG_9_BP:1.22
	RELENG_7_4_0_RELEASE:1.22.26.1
	RELENG_8_2_0_RELEASE:1.22.22.1.6.1
	RELENG_7_4:1.22.0.26
	RELENG_7_4_BP:1.22
	RELENG_8_2:1.22.22.1.0.6
	RELENG_8_2_BP:1.22.22.1
	RELENG_8_1_0_RELEASE:1.22.22.1.4.1
	RELENG_8_1:1.22.22.1.0.4
	RELENG_8_1_BP:1.22.22.1
	RELENG_7_3_0_RELEASE:1.22.24.1
	RELENG_7_3:1.22.0.24
	RELENG_7_3_BP:1.22
	RELENG_8_0_0_RELEASE:1.22.22.1.2.1
	RELENG_8_0:1.22.22.1.0.2
	RELENG_8_0_BP:1.22.22.1
	RELENG_8:1.22.0.22
	RELENG_8_BP:1.22
	RELENG_7_2_0_RELEASE:1.22.20.1
	RELENG_7_2:1.22.0.20
	RELENG_7_2_BP:1.22
	RELENG_7_1_0_RELEASE:1.22.18.1
	RELENG_6_4_0_RELEASE:1.22.16.1
	RELENG_7_1:1.22.0.18
	RELENG_7_1_BP:1.22
	RELENG_6_4:1.22.0.16
	RELENG_6_4_BP:1.22
	RELENG_7_0_0_RELEASE:1.22
	RELENG_6_3_0_RELEASE:1.22
	RELENG_7_0:1.22.0.14
	RELENG_7_0_BP:1.22
	RELENG_6_3:1.22.0.12
	RELENG_6_3_BP:1.22
	RELENG_7:1.22.0.10
	RELENG_7_BP:1.22
	RELENG_6_2_0_RELEASE:1.22
	RELENG_6_2:1.22.0.8
	RELENG_6_2_BP:1.22
	RELENG_5_5_0_RELEASE:1.20
	RELENG_5_5:1.20.0.8
	RELENG_5_5_BP:1.20
	RELENG_6_1_0_RELEASE:1.22
	RELENG_6_1:1.22.0.6
	RELENG_6_1_BP:1.22
	RELENG_6_0_0_RELEASE:1.22
	RELENG_6_0:1.22.0.4
	RELENG_6_0_BP:1.22
	RELENG_6:1.22.0.2
	RELENG_6_BP:1.22
	RELENG_5_4_0_RELEASE:1.20
	RELENG_5_4:1.20.0.6
	RELENG_5_4_BP:1.20
	RELENG_4_11_0_RELEASE:1.3.2.1
	RELENG_4_11:1.3.2.1.0.18
	RELENG_4_11_BP:1.3.2.1
	RELENG_5_3_0_RELEASE:1.20
	RELENG_5_3:1.20.0.4
	RELENG_5_3_BP:1.20
	RELENG_5:1.20.0.2
	RELENG_5_BP:1.20
	RELENG_4_10_0_RELEASE:1.3.2.1
	RELENG_4_10:1.3.2.1.0.16
	RELENG_4_10_BP:1.3.2.1
	RELENG_5_2_1_RELEASE:1.16
	RELENG_5_2_0_RELEASE:1.16
	RELENG_5_2:1.16.0.2
	RELENG_5_2_BP:1.16
	RELENG_4_9_0_RELEASE:1.3.2.1
	RELENG_4_9:1.3.2.1.0.14
	RELENG_4_9_BP:1.3.2.1
	RELENG_5_1_0_RELEASE:1.12
	RELENG_5_1:1.12.0.4
	RELENG_5_1_BP:1.12
	RELENG_4_8_0_RELEASE:1.3.2.1
	RELENG_4_8:1.3.2.1.0.12
	RELENG_4_8_BP:1.3.2.1
	RELENG_5_0_0_RELEASE:1.12
	RELENG_5_0:1.12.0.2
	RELENG_5_0_BP:1.12
	RELENG_4_7_0_RELEASE:1.3.2.1
	RELENG_4_7:1.3.2.1.0.10
	RELENG_4_7_BP:1.3.2.1
	RELENG_4_6_2_RELEASE:1.3.2.1
	RELENG_4_6_1_RELEASE:1.3.2.1
	RELENG_4_6_0_RELEASE:1.3.2.1
	RELENG_4_6:1.3.2.1.0.8
	RELENG_4_6_BP:1.3.2.1
	RELENG_4_5_0_RELEASE:1.3.2.1
	RELENG_4_5:1.3.2.1.0.6
	RELENG_4_5_BP:1.3.2.1
	RELENG_4_4_0_RELEASE:1.3.2.1
	RELENG_4_4:1.3.2.1.0.4
	RELENG_4_4_BP:1.3.2.1
	KSE_MILESTONE_2:1.6
	KSE_PRE_MILESTONE_2:1.6
	RELENG_4_3_0_RELEASE:1.3.2.1
	RELENG_4_3:1.3.2.1.0.2
	RELENG_4_3_BP:1.3.2.1
	RELENG_4_2_0_RELEASE:1.3
	RELENG_4_1_1_RELEASE:1.3
	PRE_SMPNG:1.3
	RELENG_4_1_0_RELEASE:1.3
	RELENG_3_5_0_RELEASE:1.2.2.2
	RELENG_4_0_0_RELEASE:1.3
	RELENG_4:1.3.0.2
	RELENG_4_BP:1.3
	RELENG_3_4_0_RELEASE:1.2.2.2
	RELENG_3_3_0_RELEASE:1.2.2.2
	RELENG_3:1.2.0.2
	v1:1.1.1.1
	RNORDIER:1.1.1;
locks; strict;
comment	@# @;


1.23
date	2012.11.17.01.51.17;	author svnexp;	state Exp;
branches
	1.23.2.1;
next	1.22;

1.22
date	2004.12.21.09.59.44;	author ru;	state Exp;
branches
	1.22.2.1
	1.22.10.1
	1.22.16.1
	1.22.18.1
	1.22.20.1
	1.22.22.1
	1.22.24.1
	1.22.26.1
	1.22.28.1;
next	1.21;

1.21
date	2004.12.21.08.47.14;	author ru;	state Exp;
branches;
next	1.20;

1.20
date	2004.02.12.22.06.33;	author ru;	state Exp;
branches;
next	1.19;

1.19
date	2004.02.09.14.11.57;	author ru;	state Exp;
branches;
next	1.18;

1.18
date	2004.02.07.14.32.05;	author ru;	state Exp;
branches;
next	1.17;

1.17
date	2004.02.06.21.58.31;	author ru;	state Exp;
branches;
next	1.16;

1.16
date	2003.06.30.00.15.38;	author ru;	state Exp;
branches;
next	1.15;

1.15
date	2003.06.07.17.42.26;	author obrien;	state Exp;
branches;
next	1.14;

1.14
date	2003.06.07.08.03.19;	author obrien;	state Exp;
branches;
next	1.13;

1.13
date	2003.06.06.13.49.51;	author kuriyama;	state Exp;
branches;
next	1.12;

1.12
date	2002.09.30.20.37.57;	author peter;	state Exp;
branches;
next	1.11;

1.11
date	2002.09.17.01.48.55;	author peter;	state Exp;
branches;
next	1.10;

1.10
date	2002.05.10.01.06.52;	author obrien;	state Exp;
branches;
next	1.9;

1.9
date	2002.05.10.00.53.45;	author obrien;	state Exp;
branches;
next	1.8;

1.8
date	2002.04.17.15.33.40;	author ru;	state Exp;
branches;
next	1.7;

1.7
date	2002.04.12.15.49.30;	author ru;	state Exp;
branches;
next	1.6;

1.6
date	2001.07.21.14.32.44;	author rnordier;	state Exp;
branches;
next	1.5;

1.5
date	2000.11.04.13.03.52;	author rnordier;	state Exp;
branches;
next	1.4;

1.4
date	2000.10.02.17.23.16;	author rnordier;	state Exp;
branches;
next	1.3;

1.3
date	99.08.28.00.40.10;	author peter;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	99.07.19.20.10.17;	author rnordier;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	99.07.19.18.07.44;	author rnordier;	state Exp;
branches
	1.1.1.1;
next	;

1.23.2.1
date	2012.11.17.01.51.17;	author svnexp;	state dead;
branches;
next	1.23.2.2;

1.23.2.2
date	2013.03.28.13.04.01;	author svnexp;	state Exp;
branches;
next	;

1.22.2.1
date	2012.11.17.07.42.38;	author svnexp;	state Exp;
branches;
next	;

1.22.10.1
date	2012.11.17.08.04.53;	author svnexp;	state Exp;
branches;
next	;

1.22.16.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.22.18.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.22.20.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.22.22.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.22.22.1.2.1
	1.22.22.1.4.1
	1.22.22.1.6.1
	1.22.22.1.8.1;
next	1.22.22.2;

1.22.22.2
date	2012.11.17.10.36.27;	author svnexp;	state Exp;
branches;
next	;

1.22.22.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.22.22.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.22.22.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.22.22.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.22.22.1.8.2;

1.22.22.1.8.2
date	2012.11.17.08.25.07;	author svnexp;	state Exp;
branches;
next	;

1.22.24.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.22.26.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.22.26.2;

1.22.26.2
date	2012.11.17.08.17.05;	author svnexp;	state Exp;
branches;
next	;

1.22.28.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.22.28.1.2.1
	1.22.28.1.4.1;
next	1.22.28.2;

1.22.28.2
date	2012.11.17.11.36.47;	author svnexp;	state Exp;
branches;
next	;

1.22.28.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.22.28.1.2.2;

1.22.28.1.2.2
date	2012.11.17.08.36.46;	author svnexp;	state Exp;
branches;
next	;

1.22.28.1.4.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.22.28.1.4.2;

1.22.28.1.4.2
date	2012.11.17.08.47.36;	author svnexp;	state Exp;
branches;
next	;

1.3.2.1
date	2001.03.04.05.04.33;	author obrien;	state Exp;
branches;
next	1.3.2.2;

1.3.2.2
date	2012.11.17.07.25.21;	author svnexp;	state Exp;
branches;
next	;

1.2.2.1
date	99.07.28.08.37.01;	author rnordier;	state Exp;
branches;
next	1.2.2.2;

1.2.2.2
date	99.08.29.16.20.54;	author peter;	state Exp;
branches;
next	;

1.1.1.1
date	99.07.19.18.07.44;	author rnordier;	state Exp;
branches;
next	;


desc
@@


1.23
log
@Switching exporter and resync
@
text
@# $FreeBSD: head/sys/boot/i386/kgzldr/Makefile 139112 2004-12-21 09:59:45Z ru $

PROG=	kgzldr.o
STRIP=
BINMODE=${LIBMODE}
BINDIR=	${LIBDIR}
NO_MAN=

SRCS=	start.s boot.c inflate.c lib.c crt.s sio.s
CFLAGS=	-Os
CFLAGS+=-DKZIP
NO_SHARED=
LDFLAGS=-Wl,-r
.PATH:	${.CURDIR}/../../../kern

BOOT_COMCONSOLE_PORT?=	0x3f8
AFLAGS+=--defsym SIO_PRT=${BOOT_COMCONSOLE_PORT}

.include <bsd.prog.mk>
@


1.23.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:04:01 +0000
@
text
@d1 19
@


1.23.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 19
# $FreeBSD: releng/8.4/sys/boot/i386/kgzldr/Makefile 139112 2004-12-21 09:59:45Z ru $

PROG=	kgzldr.o
STRIP=
BINMODE=${LIBMODE}
BINDIR=	${LIBDIR}
NO_MAN=

SRCS=	start.s boot.c inflate.c lib.c crt.s sio.s
CFLAGS=	-Os
CFLAGS+=-DKZIP
NO_SHARED=
LDFLAGS=-Wl,-r
.PATH:	${.CURDIR}/../../../kern

BOOT_COMCONSOLE_PORT?=	0x3f8
AFLAGS+=--defsym SIO_PRT=${BOOT_COMCONSOLE_PORT}

.include <bsd.prog.mk>
@


1.22
log
@NOSHARED -> NO_SHARED
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.22.10.1
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/7/sys/boot/i386/kgzldr/Makefile 139112 2004-12-21 09:59:45Z ru $
@


1.22.2.1
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/6/sys/boot/i386/kgzldr/Makefile 139112 2004-12-21 09:59:45Z ru $
@


1.22.28.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.22.28.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/sys/boot/i386/kgzldr/Makefile 139112 2004-12-21 09:59:45Z ru $
@


1.22.28.1.4.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.22.28.1.4.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.1/sys/boot/i386/kgzldr/Makefile 139112 2004-12-21 09:59:45Z ru $
@


1.22.28.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.22.28.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.0/sys/boot/i386/kgzldr/Makefile 139112 2004-12-21 09:59:45Z ru $
@


1.22.26.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.22.26.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/7.4/sys/boot/i386/kgzldr/Makefile 139112 2004-12-21 09:59:45Z ru $
@


1.22.24.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.22.22.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.22.22.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/8/sys/boot/i386/kgzldr/Makefile 139112 2004-12-21 09:59:45Z ru $
@


1.22.22.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.22.22.1.8.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/8.3/sys/boot/i386/kgzldr/Makefile 139112 2004-12-21 09:59:45Z ru $
@


1.22.22.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.22.22.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.22.22.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.22.20.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.22.18.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.22.16.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.21
log
@Start the dreaded NOFOO -> NO_FOO conversion.

OK'ed by:	core
@
text
@d12 1
a12 1
NOSHARED=
@


1.20
log
@Fixed the fatal bug introduced in previous commit: don't strip
kgzldr.o -- kgzipping with such a loader produces bad images.
@
text
@d7 1
a7 1
NOMAN=
@


1.19
log
@- Factor out -nostdlib to an upper level Makefile.inc.

- Now that bsd.prog.mk deals with programs linked with -nostdlib
  better, and has a notion of an "internal" program, use PROG
  where possible.  This has a good impact on the contents of
  .depend files and causes programs to be linked with cc(1).

XXX: boot2 couldn't be converted as it's actually two programs.

Tested on:	i386, amd64
@
text
@d4 1
@


1.18
log
@- Removed -elf which is not a valid gcc(1) option anymore.
- Removed -ffreestanding; it's enforced by ../Makefile.inc.
@
text
@d3 4
a6 6
FILES=	kgzldr.o
FILESOWN= ${LIBOWN}
FILESGRP= ${LIBGRP}
FILESMODE= ${LIBMODE}
FILESDIR= ${LIBDIR}
CLEANFILES= kgzldr.o
a8 1
OBJS=	${SRCS:N*.h:R:S/$/.o/g}
d11 2
a12 1
LDFLAGS=-nostdlib -static -Wl,-r
a16 3

kgzldr.o: ${OBJS}
	${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS}
@


1.17
log
@First round of cleanups to sys/boot/ makefiles:

- do not use PROG for what's not a real C program,
- use sys.mk transformation rules where possible,
- only create the "machine" symlink on AMD64,
- removed MAINTAINER lines in individual makefiles,
- added the LIBSTAND defitinion to <bsd.libnames.mk>,
- somewhat better contents in .depend files.

Tested on:	i386, amd64
Prodded by:	bde
@
text
@d12 1
a12 2
CFLAGS=	-ffreestanding
CFLAGS+=-Os
@


1.16
log
@Revision 1.13, besides its useful part, replaced bsd.prog.mk by
bsd.lib.mk and thus broke the build since AFLAGS were not taken
into considered anymore, as bsd.lib.mk currently has wrong .s.o
rule that uses cc(1) instead of as(1).

Revision 1.14 reverted to using as(1), and revision 1.15 brought
AFLAGS back to the business, but revision 1.14 also broke "make
clean".

To fix this, but not break anything that was fixed in revisions
1.13-1.15, we revert mostly to revision 1.13 except for switching
back to using bsd.prog.mk.  This gives us back the default .s.o
rule from sys.mk that uses as(1), and fixes "make clean" by
restoring the full contents of OBJS.

Also fixed LDFLAGS.
@
text
@d3 7
a17 2
CLEANFILES=kgzldr.o

a20 2
all: kgzldr.o

a22 4

realinstall:
	${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
	    kgzldr.o ${DESTDIR}${LIBDIR}
@


1.15
log
@Add ${AFLAGS} to 'as' invocation.
@
text
@d3 1
a3 1
SRCS=	boot.c inflate.c lib.c
d8 1
a8 1
LDFLAGS=-nostdlib -static -r
a10 6
.for asm in start crt sio
OBJS+=	${asm}.o
${asm}.o: ${asm}.s
	${AS} ${AFLAGS} -o ${.TARGET} ${.ALLSRC:M*${asm}*}
.endfor

d16 1
a16 1
all: ${OBJS} kgzldr.o
d25 1
a25 1
.include <bsd.lib.mk>
@


1.14
log
@Don't use a C compiler to assemble a pure asm file.
@
text
@d14 1
a14 1
	as -o ${.TARGET} ${.ALLSRC:M*${asm}*}
@


1.13
log
@Tweak make values and targets not to build kgzldr.o at
installation stage.

Reviewed by: bde
@
text
@d3 1
a3 1
SRCS=	start.s boot.c inflate.c lib.c crt.s sio.s
d10 6
@


1.12
log
@Use as's --defsym switch to compensate for the loss of the M4 substitution
of SIOPRT which broke kgzldr and therefore make release.

Pointed out by:	 murray
@
text
@a2 1
FILES=	kgzldr.o
a8 1
BINDIR=	/usr/lib
d11 1
a11 1
CLEANFILES=${FILES}
d16 2
d21 5
a25 1
.include <bsd.prog.mk>
@


1.11
log
@Initiate deorbit burn for the i386-only a.out related support.  Moves are
under way to move the remnants of the a.out toolchain to ports.  As the
comment in src/Makefile said, this stuff is deprecated and one should not
expect this to remain beyond 4.0-REL.  It has already lasted WAY beyond
that.

Notable exceptions:
gcc - I have not touched the a.out generation stuff there.
ldd/ldconfig - still have some code to interface with a.out rtld.
old as/ld/etc - I have not removed these yet, pending their move to ports.
some includes - necessary for ldd/ldconfig for now.

Tested on: i386 (extensively), alpha
@
text
@d16 1
a16 1
M4FLAGS+=-DSIOPRT=${BOOT_COMCONSOLE_PORT}
@


1.10
log
@Don't be redundant.
@
text
@a6 3
.if ${OBJFORMAT} == aout
CFLAGS+=-O2
.else
a7 1
.endif
a14 3
M4?=	m4
M4FLAGS=-DOBJFORMAT=${OBJFORMAT}

a19 4

.s.o:
	(cd ${.CURDIR}; ${M4} ${M4FLAGS} kgzldr.m4 ${.IMPSRC}) |\
		${AS} ${AFLAGS} -o ${.TARGET}
@


1.9
log
@-ffreestanding is the word for /sys.
@
text
@d6 1
a6 1
CFLAGS=	-ffreestanding -fno-builtin
@


1.8
log
@Really unbreak it this time (clean and install were still broken).
@
text
@d6 1
a6 1
CFLAGS=	-fno-builtin
@


1.7
log
@Unbreak this as well.
At the extra bonus of fixing the contents of the .depend file.

Not really my day.
@
text
@d3 1
a13 1
NOMAN=
a14 2
BINMODE=444
STRIP=
d17 2
a23 2

all: kgzldr.o
@


1.6
log
@Unset MAINTAINER.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/boot/i386/kgzldr/Makefile,v 1.5 2000/11/04 13:03:52 rnordier Exp $
a2 1
PROG=	kgzldr.o
d4 1
@


1.5
log
@Support a.out: avoid (%dx) in in/out instructions, and use an m4
macro to supply underscores for externals.
@
text
@d1 1
a1 3
# $FreeBSD: src/sys/boot/i386/kgzldr/Makefile,v 1.4 2000/10/02 17:23:16 rnordier Exp $

MAINTAINER=	rnordier
@


1.4
log
@Set MAINTAINER.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/boot/i386/kgzldr/Makefile,v 1.3 1999/08/28 00:40:10 peter Exp $
d7 6
a12 1
CFLAGS=	-fno-builtin -Os
d22 1
a22 1
M4FLAGS=
d33 1
a33 1
	(cd ${.CURDIR}; ${M4} ${M4FLAGS} ${.IMPSRC}) |\
@


1.3
log
@$Id$ -> $FreeBSD$
@
text
@d1 3
a3 1
# $FreeBSD$
@


1.3.2.1
log
@MFC: use the proper optimization depending on the object format.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/boot/i386/kgzldr/Makefile,v 1.3 1999/08/28 00:40:10 peter Exp $
d5 1
a5 6
CFLAGS=	-fno-builtin
.if ${OBJFORMAT} == aout
CFLAGS+=-O2
.else
CFLAGS+=-Os
.endif
@


1.3.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/4/sys/boot/i386/kgzldr/Makefile 73411 2001-03-04 05:04:33Z obrien $
@


1.2
log
@Use M4FLAGS for m4.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.1.1.1 1999/07/19 18:07:44 rnordier Exp $
@


1.2.2.1
log
@MFC: Add kgzldr.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.2 1999/07/19 20:10:17 rnordier Exp $
d5 1
a5 1
CFLAGS=	-fno-builtin -O2
@


1.2.2.2
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
#	$Id: $
d15 1
a15 1
MFLAGS=
d18 1
a18 1
MFLAGS+=-DSIOPRT=${BOOT_COMCONSOLE_PORT}
d26 1
a26 1
	(cd ${.CURDIR}; ${M4} ${MFLAGS} ${.IMPSRC}) |\
@


1.1.1.1
log
@kgzldr is a kzipboot replacement for use with kgzip(8).

Development sponsored by Global Technology Associates, Inc.

Reviewed/tested by: abial
@
text
@@
