PROJ	=MOD_LINK
DEBUG	=0
CC	=qcl
AS	=qcl
CFLAGS_G	= /AS /W1 /Ze 
CFLAGS_D	= /Zd /Od 
CFLAGS_R	= /Od /Gs /DNDEBUG 
CFLAGS	=$(CFLAGS_G) $(CFLAGS_R)
AFLAGS_G	= /Cx /W1 /P1 
AFLAGS_D	= /Zd 
AFLAGS_R	= /DNDEBUG 
AFLAGS	=$(AFLAGS_G) $(AFLAGS_R)
LFLAGS_G	= /CP:0xfff /NOI /SE:0x80 /ST:0x800 
LFLAGS_D	= 
LFLAGS_R	= 
LFLAGS	=$(LFLAGS_G) $(LFLAGS_R)
RUNFLAGS	=0
OBJS_EXT = 	
LIBS_EXT = 	

.asm.obj: ; $(AS) $(AFLAGS) -c $*.asm

all:	$(PROJ).EXE

conf.obj:	conf.c $(H)

modem.obj:	modem.c $(H)

mod_link.obj:	mod_link.c $(H)

timer.obj:	timer.c $(H)

tools.obj:	tools.c $(H)

uart.obj:	uart.asm $(INC)

get_word.obj:	get_word.c $(H)

$(PROJ).EXE:	conf.obj modem.obj mod_link.obj timer.obj tools.obj uart.obj get_word.obj $(OBJS_EXT)
	echo >NUL @<<$(PROJ).crf
conf.obj +
modem.obj +
mod_link.obj +
timer.obj +
tools.obj +
uart.obj +
get_word.obj +
$(OBJS_EXT)
$(PROJ).EXE

$(LIBS_EXT);
<<
	qlink $(LFLAGS) @$(PROJ).crf

run: $(PROJ).EXE
	$(PROJ) $(RUNFLAGS)

