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


38.1
date     91.06.24.14.53.53;  author mks;  state Exp;
branches ;
next     ;


desc
@New in V38 source tree
@



38.1
log
@Now uses my "shell" lmkfile format
@
text
@#
# lmkfile for CPU 2.0
#
VERSION= 38

MODNAME= cpu

REMOTE = V:src/workbench/c/cpu

HDRS= cpu_rev.h

MYLIBS= LIB:lcr.lib LIB:amiga.lib

MY_OBJS= cpu.o 030stuff.o

LC = lc
ASM = asm

LFLAGS= BATCH SMALLCODE SMALLDATA ND

AFLAGS = -m2 -iinclude:

LCFLAGS = -cimsf -d2 -O -rr -v -b0

$(MODNAME).ld:	$(MY_OBJS)
	blink <with <
FROM $(MY_OBJS)
TO $(MODNAME).ld
LIB $(MYLIBS)
$(LFLAGS)
<

.c.o:
	$(LC) $(LCFLAGS) $*.c

.asm.o:
	$(ASM) $(AFLAGS) $*.asm

cpu.o: cpu.c $(HDRS)

version:
	@@bumprev $(VERSION) $(MODNAME)_rev

internal:
	@@delete $(REMOTE)/(\#?.c|\#?.asm|\#?.h|\#?.i|makefile|lmkfile|\#?.ld|\#?.rev) rwed
	@@protect (\#?.c|\#?.asm|\#?.h|\#?.i|makefile|lmkfile|\#?.ld|\#?.rev) +r quiet
	@@copy (\#?.c|\#?.asm|\#?.h|\#?.i|makefile|lmkfile|\#?.ld|\#?.rev) $(REMOTE)

clean:
	@@delete (\#?.o|\#?.ld)

release:
	@@Echo "Make sure that all files are checked in with 'ci -u'"
	@@Echo "Then do a:"
	@@Echo "           lmk clean"
	@@Echo "           lmk version"
	@@Echo "           lmk"
	@@Echo "           lmk internal"

#
# The following rule is to bring the source down to the local directory
# To do the following you should copy this LMKfile to the local directory
# and make sure it is readable.  Then type MAKE ToLocal to have the
# code copied down...
#
tolocal:
	@@protect \#? rwed QUIET
	@@copy $(REMOTE)/\#? ""
	@@protect \#? +r QUIET
	@@protect \#?_rev\#? rwd QUIET
	@@Echo "Local is updated..."
@
