###############################################################################
#
# $Id: LMkFile,v 1.11 92/08/15 20:12:50 olsen Sta Locker: olsen $
# $Revision: 1.11 $
# $Date: 92/08/15 20:12:50 $
#
# Makefile for the `LMk' utility required to build `term'
#
# Copyright  1990-1992 by Olaf `Olsen' Barthel & MXM
#    All Rights Reserved
# 
###############################################################################

.c.o:
	LC $(CFLAGS) -HRAM:term.SYM $*.c

.c.oo:
	LC $(CFLAGS) -HRAM:term.SYM -O -o$*.oo $*.c

.asm.o:
	ASM -IASM: $*.asm

.c.sym:
	LC -cimqws -n65 -ph -o$@ $*.c

ED		= ed -sticky
#ED		= ttx wait

#FRONTEND	= SmallMain.o
FRONTEND	=

CFLAGS		= -cmqws -b1 -r1 -v -j89 -mt0 -n65
#CFLAGS		= -cmqws -b1 -r1 -v -j89 -mt3 -n65 -DMC68030
LFLAGS		= SC SD ND

LIBS		= LIB:amiga.lib LIB:lc.lib

OBJS		= $(FRONTEND) termMain.o termAux.o termBeep.o termBuffer.o termCall.o termClip.oo \
		  termConsole.oo termCrypt.oo termData.o termEmulation.oo termFastMacros.o \
		  termFileBuffer.oo termGadTools.o termHotkeys.o termIdentify.o termInfo.o \
		  termInit.o termLocale.o termMarker.o termPacket.o termPhone.o \
		  termRaster.oo termReview.o termRexx.o termSaveILBM.o termSerial.oo \
		  termScale.oo termScroll.oo termSpeech.o termStatus.o termStringHook.o \
		  termStrings.o termTag.o termToneDial.o termTransfer.o termXEM.oo \
		  termXPR.oo DPrintf.o Format.o QuickSort.o CommandPanel.o \
		  CopyPanel.o DatePanel.o DayPanel.o DialPanel.o EmulationPanel.o \
		  FastMacroPanel.o HotkeyPanel.o ImportPanel.o MacroPanel.o MiscPanel.o \
		  ModemPanel.o PasswordUserPanel.o PathPanel.o PhonePanel.o RatePanel.o \
		  ScreenPanel.o SerialPanel.o SpeechPanel.o TerminalPanel.o TimePanel.o \
		  TransferPanel.o UploadPanel.o

all:		term.SYM RAM:term.SYM term

termTag.o:	termTag.asm term.i
		ASM -IASM: termTag.asm

term:		$(OBJS)
		BLINK WITH term.WITH <<!(term.WITH)
			FROM
			$(OBJS)
			TO
			$@
			LIB
			$(LIBS)
			$(LFLAGS)
		<

term.SYM:	PreInclude.c termStrings.h

RAM:term.SYM:	term.SYM
		Copy term.SYM $@

termStrings.o:	termStrings.c termStrings.h
		LC -b1 -r1 -cs -n65 termStrings.c

termGadTools.o:	termGadTools.c
		LC $(CFLAGS) termGadTools.c

SmallMain.o:	SmallMain.c
		LC -cmqws -b1 -r1 -v -j89 -ms0 -n65 -O SmallMain.c
