INCLUDE = \INCLUDE



# 
# maintain small C-library with toms && guenters subroutines
#
#	cl /DMEDIUM /Zl /NT_TOMLIB_TEXT /Ox /c /AM /Fo$*.obm $*.c 
#	lib ..\mtomlib.lib -+$*.obm,,

.C.Obm:
	$ERROR $ed $*.c
	cl /Zl /Ox /c /Fo$*.obs  $(TEXTSEGMENT) $*.c 
	lib ..\stomlib.lib -+$*.obs,,
	del $*.obs
	$CREATE $*.obm

.ASM.Obm:
	$ERROR $ed $*.asm
	masm /Mx /n /t $*.ASM,$*.obs;
	lib ..\stomlib.lib -+$*.obs,,

#	masm /DMEDIUM /Mx /n /t $*.ASM,$*.obm;
#	lib ..\mtomlib.lib -+$*.obm,,

# quit.c:
#    quit(s,a1,a2,a3,a4,a5,a6,a7,a8,a9)
#      exit with return code 1, printing a message before doing this
#
quit.obm: quit.c

# quit.c:
#    quit(s,a1,a2,a3,a4,a5,a6,a7,a8,a9)
#      exit with return code 1, printing a message before doing this
#
txinter.obm: $*.c


# getargs.c
#  char *getargs(&argc,argv,string)
#    return and delete next option starting with character from string
#    if string == NULL or *string = 0 then return next argument
# 
#    returns pointer to option or NULL if none found
#    use : while ((nextarg = getargs(&argc,argv,"-/")) != NULL
# 	    		 decode options
#          while ((filename = getargs(&argc,argv,NULL)) != NULL
#				 do with filenames

getargs.obm: getargs.c  


#
# mikro.asm :
#  precisions-timer fuer PC/AT
# ticks_abs(),mikro_abs(),mikro_since(),mikro_diff() ! mikro_init() !
# use : 
# mikro_init();
# long mikro_since() will return long mikroseconds since last call
#   normalized for it's own duration
# mikro_diff : same not normalized
# mikro_abs : mikroseconds since an absolute starting time (undefined)
# siehe "mikrotest.c"

mikro.obm: mikro.asm

bios.obm: $*.asm


#
#  int segment  = dosalloc(long bufferlength)
#  int ok       = dosfree(segment)
#
dosalloc.obm: $*.c

#****************************************************************************#
# far_read (handle,far *,length)
# far_write(handle,far *,length)
farread.obm: $*.c

