head	1.6;
access;
symbols
	RELENG_2_2_8_RELEASE:1.1.1.1
	RELENG_2_2_7_RELEASE:1.1.1.1
	RELENG_2_2_6_RELEASE:1.1.1.1
	RELENG_2_2_5_RELEASE:1.1.1.1
	RELENG_2_2_2_RELEASE:1.1.1.1
	RELENG_2_2_1_RELEASE:1.1.1.1
	RELENG_2_2_0_RELEASE:1.1.1.1
	RELENG_2_2:1.1.1.1.0.2
	RELENG_2_2_BP:1.1.1.1
	v1_0:1.1.1.1
	JOERG:1.1.1;
locks; strict;
comment	@# @;


1.6
date	98.07.19.13.41.01;	author rnordier;	state dead;
branches;
next	1.5;

1.5
date	98.03.20.12.20.43;	author bde;	state Exp;
branches;
next	1.4;

1.4
date	97.12.19.23.56.18;	author bde;	state Exp;
branches;
next	1.3;

1.3
date	97.02.22.16.06.35;	author peter;	state Exp;
branches;
next	1.2;

1.2
date	97.01.14.07.12.48;	author jkh;	state Exp;
branches;
next	1.1;

1.1
date	95.11.05.16.02.04;	author joerg;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	95.11.05.16.02.04;	author joerg;	state Exp;
branches
	1.1.1.1.2.1;
next	;

1.1.1.1.2.1
date	99.09.05.11.40.26;	author peter;	state Exp;
branches;
next	;


desc
@@


1.6
log
@Drop mkdosfs (replaced by newfs_msdos).
Prompted by: joerg
@
text
@# $Id: Makefile,v 1.5 1998/03/20 12:20:43 bde Exp $

PROG=	mkdosfs

CFLAGS+=	-Wall

###################################################################
#
# Everything below is solely intented for maintenance.
# As you can see, it requires as86/ld86 from the ``bcc'' package.

# Uncomment this for maintenance.
# Warning: doing this may result in the distribution copy of bootcode.h
# being rebuilt if an objects are built in the current directory.
#
#MKDOSFS_MAINTENANCE=	yes

.if defined(MKDOSFS_MAINTENANCE)
SRCS=	mkdosfs.c bootcode.h
CFLAGS+=	-I.
CLEANFILES+=	bootcode.h

AS86=		as86
LD86=		ld86
AS86FLAGS=	-0
LD86FLAGS=	-0 -s

CLEANFILES+=	*.obj *.bin *.com

.SUFFIXES: .asm .obj .bin .com

.asm.obj:
	${AS86} ${AS86FLAGS} -o ${.TARGET} ${.IMPSRC}

.obj.bin:
	${LD86} ${LD86FLAGS} -T 0x7c00 -o ${.PREFIX}.tmp ${.IMPSRC}
	dd bs=32 skip=1 of=${.TARGET} if=${.PREFIX}.tmp
	rm -f ${.PREFIX}.tmp

# .com file is just for testing
.obj.com:
	${LD86} ${LD86FLAGS} -T 0x100 -o ${.PREFIX}.tmp ${.IMPSRC}
	dd bs=32 skip=1 of=${.TARGET} if=${.PREFIX}.tmp
	rm -f ${.PREFIX}.tmp

bootcode.h: bootcode.bin
	@@echo converting ${.TARGET} into ${.TARGET}...
	@@perl -e 'if(read(STDIN,$$buf,512)<512) {		\
			die "Read error on .bin file\n";	\
		}						\
		@@arr = unpack("C*",$$buf);			\
		print "#ifndef BOOTCODE_H\n";			\
		print "#define BOOTCODE_H 1\n\n";		\
		print "/*\n * This file has been generated\n";	\
		print " * automatically.  Do not edit.\n */\n\n"; \
		print "static unsigned char bootcode[512] = {\n"; \
		for($$i=0; $$i<512; $$i++) {			\
			printf "0x%02x, ",$$arr[$$i];		\
			if($$i % 12 == 11) {print "\n";}	\
		}						\
		print "};\n\n";					\
		print "#endif /* BOOTCODE_H */\n";' 		\
	< ${.ALLSRC} > ${.TARGET}
.endif

.include <bsd.prog.mk>
@


1.5
log
@Don't use beforedepend to complicate and break things.  Just put
generated source files in SRCS.
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.4 1997/12/19 23:56:18 bde Exp $
@


1.4
log
@Handle the ``maintenance'' case better.

Fixed some style bugs.
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.3 1997/02/22 16:06:35 peter Exp $
d19 1
a44 2

all beforedepend: bootcode.h
@


1.3
log
@Revert $FreeBSD$ to $Id$
@
text
@d1 2
a2 2
# $Id$
#
d5 1
a5 1
CFLAGS+= -Wall
d11 4
d16 5
a20 2
# For this reason, the bootcode.h target puts the result into
# ${.CURDIR}
d28 1
d45 4
a48 4
## Do NOT depend this on bootcode.bin unless you've installed the
## bcc package!
bootcode.h: ## bootcode.bin
	@@echo converting bootcode.bin into bootcode.h...
d64 2
a65 1
	< bootcode.bin > ${.CURDIR}/bootcode.h
a67 1

@


1.2
log
@Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $Id$
@


1.1.1.1
log
@mkdosfs -- a tool to create an MS-DOS file system on a device or file.
Since msdosfs is part of the base system, it's not wise to rely on
something like mtools to provide this functionality.

This utility is the agreed fix for PR # misc/804      fdformat did not ...
@
text
@@


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

