Category : C Source Code
Archive   : AXMSLIB.ZIP
Filename : XMSTEST.MAK
Output of file : XMSTEST.MAK contained in archive : AXMSLIB.ZIP
# --------------------------------------------------------------------------
# Works with both NMAKE/NMK (Microsoft) and MAKER/MAKE (Borland)
# --------------------------------------------------------------------------
# Definitions
# -----------
PROJECT = XMSTEST
BORLAND = 0 # 0 for Microsoft C, 1 for Borland C++
DEBUG = 0 # 1 to produce program with CV/TD symbols
!if $(BORLAND)
# Borland-specific
CC = BCC
LINK = TLINK
INCPATH = D:\BC\INCLUDE
LIBPATH = D:\BC\LIB
MODEL = s
!if $(DEBUG)
CFLAGS = -v -D_M_DEBUG
LFLAGS = -v
!else
CFLAGS = -O2
LFLAGS = -x
!endif
!else
# Microsoft specific
CC = CL
LINK = LINK
MODEL = S
!if $(DEBUG)
CFLAGS = -W3 -Zp -Od -Zi -D_M_DEBUG
LFLAGS = /CO /NOI
!else
CFLAGS = -W3 -Zp -Ox
LFLAGS = /NOI
!endif
!endif
# Inference rules
# ---------------
.c.obj:
!if $(BORLAND)
$(CC) -c -I$(INCPATH) -m$(MODEL) $(CFLAGS) {$< }
!else
$(CC) -c -A$(MODEL) $(CFLAGS) $<
!endif
# Dependency rules
# ----------------
$(PROJECT).exe: $(PROJECT).obj xmslib.obj
!if $(BORLAND)
$(LINK) -c -L$(LIBPATH) $(LFLAGS) c0$(MODEL) $**,$(PROJECT),,c$(MODEL)
!else
$(LINK) $(LFLAGS) $**;
!endif
$(PROJECT).obj: $(PROJECT).c xtypes.h xmslib.h
xmslib.obj: xmslib.c xtypes.h xmslib.h
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/