#
#	This is just a sample LMK.DEF file used for
#	compiling, assembling, and linking the object modules.
#
C1=lc1
C2=lc2
LIB=lcs
LD=link
AS=masm
COPY=COPY
DEST=b:/v
ERROR=if not errorlevel 0 goto err

.c.obj:
	echo off
	echo $<
	$(C1) $(C1FLAGS) $* -a
	$(ERROR)
	$(C2) $(C2FLAGS) $* -v
	$(ERROR)
	echo $@ $<
	$(COPY) $@ $(DEST)
	$(COPY) $< $(DEST)

.asm.obj:
	echo $<
	$(AS) $(ASFLAGS) $<;
	$(ERROR)
	echo $@ $<
	$(COPY) $@ $(DEST)
	$(COPY) $< $(DEST)

.obj.exe:
	$(LD) $(LDFLAGS) $O $(LIB)
	echo $@
	$(COPY) $@ $(DEST)

.c.exe:
	$(C1) $(C1FLAGS) $*
	$(ERROR)
	$(C2) $(C2FLAGS) $*
	$(ERROR)
	$(LD) $(LDFLAGS) $*.OBJ $(LIB)

.h.h:
		echo $< 
		$(COPY) $< $D/v

.c.c:
		echo $<
		$(COPY) $< $D/v

.lmk.lmk:
		echo $< 
		$(COPY) $< $D/v

.def.def:
		echo $<
		$(COPY) $< $D/v
