head     1.11;
branch   ;
access   ;
symbols  ;
locks    ; strict;
comment  @# @;


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

1.10
date     93.06.07.15.25.02;  author peter;  state Exp;
branches ;
next     1.9;

1.9
date     93.03.18.13.45.04;  author peter;  state Exp;
branches ;
next     1.8;

1.8
date     93.02.15.20.05.41;  author peter;  state Exp;
branches ;
next     1.7;

1.7
date     92.09.04.12.29.50;  author peter;  state Exp;
branches ;
next     1.6;

1.6
date     92.07.21.16.31.35;  author peter;  state Exp;
branches ;
next     1.5;

1.5
date     92.06.05.14.39.34;  author peter;  state Exp;
branches ;
next     1.4;

1.4
date     92.01.13.16.35.09;  author peter;  state Exp;
branches ;
next     1.3;

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

1.2
date     91.02.19.17.18.56;  author kevin;  state Exp;
branches ;
next     1.1;

1.1
date     90.11.07.00.57.39;  author kevin;  state Exp;
branches ;
next     ;


desc
@Convert SFDs into pragmas, protos, etc. and their ilk.
@


1.11
log
@Removed lock/unlock stuff
@
text
@######################################################################
MAKEMETA=	../../tools/makemeta

SUBDIRS=	RAM ROM LVO

all:		lock asm.timestamp ${SUBDIRS} amiga.lib rom.lib small.lib unlock

quick:		lock ${SUBDIRS} amiga.lib rom.lib unlock

sfdheaders:	lock hdr.timestamp unlock

clean::		lock unlock
		-rm FD/* HDR/* PRAGMAS/* PROTOS/* asm.timestamp hdr.timestamp

# The list of modules is maintained by hand.  If you add a module,
# you must add it to V:lib/sfd/Makefile, V:lib/sfd/(RAM|ROM|LVO)/Makefile,
# and mkdir V:lib/sfd/(RAM|ROM)/subsystem!

XFDFILES=	amigaguide_lib.sfd \
		asl_lib.sfd \
		battclock_lib.sfd \
		battmem_lib.sfd \
		bullet_lib.sfd \
		cardres_lib.sfd \
		cia_lib.sfd \
		colorwheel_lib.sfd \
		commodities_lib.sfd \
		console_lib.sfd \
		datatypes_lib.sfd \
		disk_lib.sfd \
		diskfont_lib.sfd \
		dos_lib.sfd \
		exec_lib.sfd \
		expansion_lib.sfd \
		gadtools_lib.sfd \
		graphics_lib.sfd \
		icon_lib.sfd \
		iffparse_lib.sfd \
		input_lib.sfd \
		intuition_lib.sfd \
		keymap_lib.sfd \
		layers_lib.sfd \
		locale_lib.sfd \
		lowlevel_lib.sfd \
		mathffp_lib.sfd \
		mathieeedoubbas_lib.sfd \
		mathieeedoubtrans_lib.sfd \
		mathieeesingbas_lib.sfd \
		mathieeesingtrans_lib.sfd \
		mathtrans_lib.sfd \
		misc_lib.sfd \
		nonvolatile_lib.sfd \
		potgo_lib.sfd \
		ramdrive_lib.sfd \
		realtime_lib.sfd \
		rexxsyslib_lib.sfd \
		timer_lib.sfd \
		translator_lib.sfd \
		utility_lib.sfd \
		wb_lib.sfd


# Kevin put in lock/unlock code to prevent two people from simultaneously
# making the SFD stuff.  I've removed this due to several problems:
# - The makefiles don't handle file ownership issues correctly, so
#   it's not currently possible to have more than one person building
#   in this directory anyway.
# - When a module owner changes an SFD file, a syntax error in the SFD
#   file isn't that unlikely, and we don't find out until we get here.
#   Then you have to manually "make unlock" to retry.

lock:
#		whoami >sfd.lock
#		chmod 444 sfd.lock
#		test "`whoami`" = "`cat sfd.lock`"

unlock:
#		rm -f sfd.lock

asm.timestamp:	${XFDFILES}
		CleanLib $?
		../../tools/bin/sfd $?
		touch asm.timestamp
		mv FD/* ${VERDIR}/fd
		mv HDR/* ${SYSINCLNS}/internal
		if test -r PRAGMAS/exec_pragmas.h; then ( \
		    sed -e "s/libcall SysBase/syscall/" PRAGMAS/exec_pragmas.h \
		      >${VERDIR}/inc.lattice/pragmas/exec_old_pragmas.h \
		); fi
		mv PRAGMAS/* ${VERDIR}/inc.lattice/pragmas
		mv PROTOS/* ${SYSINCLNS}/clib
		touch hdr.timestamp

hdr.timestamp:	${XFDFILES}
		../../tools/bin/sfd -h $?
		mv FD/* ${VERDIR}/fd
		mv HDR/* ${SYSINCLNS}/internal
		if test -r PRAGMAS/exec_pragmas.h; then ( \
		    sed -e "s/libcall SysBase/syscall/" PRAGMAS/exec_pragmas.h \
		      >${VERDIR}/inc.lattice/pragmas/exec_old_pragmas.h \
		); fi
		mv PRAGMAS/* ${VERDIR}/inc.lattice/pragmas
		mv PROTOS/* ${SYSINCLNS}/clib
		touch hdr.timestamp

amiga.lib:	FRC
		cat LVO/*.obj RAM/amiga.lib >amiga.lib
		rm RAM/amiga.lib

rom.lib:	FRC
		cat LVO/*.obj ROM/rom.lib >rom.lib
		rm ROM/rom.lib

small.lib:	FRC
		cat LVO/*.obj >small.lib

.INCLUDE=${MAKEMETA}
@


1.10
log
@Added lowlevel and nonvolatile 
@
text
@d62 10
d73 3
a75 3
		whoami >sfd.lock
		chmod 444 sfd.lock
		test "`whoami`" = "`cat sfd.lock`"
d78 1
a78 1
		rm -f sfd.lock
@


1.9
log
@Added realtime.library.
@
text
@d44 1
d52 1
@


1.8
log
@Don't need to make a dir in LVO when adding a subsystem.
@
text
@d53 1
@


1.7
log
@Added cardres.
@
text
@d17 1
a17 1
# and mkdir V:lib/sfd/(RAM|ROM|LVO)/subsystem!
@


1.6
log
@Added colorwheel.
@
text
@d24 1
@


1.5
log
@Added amigaguide and datatypes
@
text
@d25 1
@


1.4
log
@Added bullet and locale, and no longer deal in stripped includes.
@
text
@d19 2
a20 1
XFDFILES=	asl_lib.sfd \
d27 1
@


1.3
log
@Put comment about what to update to add a module.
@
text
@d22 1
d39 1
a67 2
		cd HDR; for h in *; do \
		    sed -e "s/^ *//" $$h >${SYSINCL}/internal/$$h; done;
d69 4
a72 2
		cd PRAGMAS; for p in *; do \
		    stripc $$p >${VERDIR}/inc.lattice.strip/pragmas/$$p; done;
a73 2
		cd PROTOS; for p in *; do \
		    stripc $$p >${SYSINCL}/clib/$$p; done;
a79 2
		cd HDR; for h in *; do \
		    sed -e "s/^ *//" $$h >${SYSINCL}/internal/$$h; done;
a80 2
		cd PRAGMAS; for p in *; do \
		    stripc $$p >${VERDIR}/inc.lattice.strip/pragmas/$$p; done;
a81 3
		    sed -e "s/libcall	SysBase/syscall/" \
		      ${VERDIR}/inc.lattice.strip/pragmas/exec_pragmas.h \
		      >${VERDIR}/inc.lattice.strip/pragmas/exec_old_pragmas.h; \
a85 2
		cd PROTOS; for p in *; do \
		    stripc $$p >${SYSINCL}/clib/$$p; done;
@


1.2
log
@Added a few modules.
@
text
@d15 4
@


1.1
log
@Initial revision
@
text
@d21 1
d43 1
@
