NAME=N2T

#OBJS=first.obj second.obj
OBJS=Main.obj CommonFunctions.obj
RES=resurce.res
FLAGS=/x /V4.0 /Tpe /aa


#if you want to make a file without a debug information write text below
#
#     make -DNODEBUG
#
!if $d(NODEBUG)
TASMDEBUG=
LINKDEBUG=
!else
TASMDEBUG=/zi
LINKDEBUG=-v
!endif

!if $d(MAKEDIR)
IMPORT=$(MAKEDIR)\..\lib\import32
!else
IMPORT=import32
!endif

#  *.exe : *.obj ... means that exe is dependent of *.obj file
#so my exe is dependant of object and resurce files

$(NAME).EXE: $(OBJS) $(RES)
	tlink32 $(FLAGS) $(LINKDEBUG) @link.rsp, $(NAME),, $(IMPORT),, $(RES)

.asm.obj:
	tasm32 $(TASMDEBUG) /c /ml /m3 /z /q $*

#Here write .OBJ dependents.
#ex.  First.obj : First.asm defenitions.inc

Main.obj : Main.asm definitions.inc

CommonFunctions.obj : CommonFunctions.asm definitions.inc

.rc.res:
	brcc32 resurce.rc
