home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
mass61.zip
/
mass.zip
/
masm61
/
DISK3
/
SAMPLES
/
TSR
/
BELL.MA$
/
BELL
Wrap
Text File
|
1992-11-12
|
2KB
|
122 lines
PROJ = BELL
PROJFILE = BELL.MAK
DEBUG = 1
PWBRMAKE = pwbrmake
NMAKEBSC1 = set
NMAKEBSC2 = nmake
CC = cl
CFLAGS_G = /W2 /BATCH
CFLAGS_D = /Od /Zi
CFLAGS_R = /Ot /Oi /Ol /Oe /Og /Gs
ASM = ml
AFLAGS_G = /Cx /W2
AFLAGS_D = /Zi
AFLAGS_R = /nologo
MAPFILE_D = NUL
MAPFILE_R = NUL
LFLAGS_G = /NOI /BATCH /NOE
LFLAGS_D = /CO /FAR
LFLAGS_R = /EXE /FAR
LINKER = link
ILINK = ilink
LRF = echo > NUL
#LLIBS_R = /NOD:SLIBCE SLIBCE
#LLIBS_D = /NOD:SLIBCE SLIBCE
OBJS = BELL.obj HANDLERS.obj INSTALL.obj
SBRS = BELL.sbr HANDLERS.sbr INSTALL.sbr
all: $(PROJ).exe
.SUFFIXES:
.SUFFIXES: .sbr .obj .c .asm
BELL.obj : BELL.C
BELL.sbr : BELL.C
HANDLERS.obj : HANDLERS.ASM
HANDLERS.sbr : HANDLERS.ASM
INSTALL.obj : INSTALL.ASM
INSTALL.sbr : INSTALL.ASM
$(PROJ).bsc : $(SBRS)
$(PWBRMAKE) @<<
$(BRFLAGS) $(SBRS)
<<
$(PROJ).exe : $(OBJS)
!IF $(DEBUG)
$(LRF) @<<$(PROJ).lrf
$(RT_OBJS: = +^
) $(OBJS: = +^
)
$@
$(MAPFILE_D)
$(LLIBS_G: = +^
) +
$(LLIBS_D: = +^
) +
$(LIBS: = +^
)
$(DEF_FILE) $(LFLAGS_G) $(LFLAGS_D);
<<
!ELSE
$(LRF) @<<$(PROJ).lrf
$(RT_OBJS: = +^
) $(OBJS: = +^
)
$@
$(MAPFILE_R)
$(LLIBS_G: = +^
) +
$(LLIBS_R: = +^
) +
$(LIBS: = +^
)
$(DEF_FILE) $(LFLAGS_G) $(LFLAGS_R);
<<
!ENDIF
$(LINKER) @$(PROJ).lrf
.c.sbr :
!IF $(DEBUG)
$(CC) /Zs $(CFLAGS_G) $(CFLAGS_D) /FR$@ $<
!ELSE
$(CC) /Zs $(CFLAGS_G) $(CFLAGS_R) /FR$@ $<
!ENDIF
.asm.sbr :
!IF $(DEBUG)
$(ASM) /Zs $(AFLAGS_G) $(AFLAGS_D) /FR$@ $<
!ELSE
$(ASM) /Zs $(AFLAGS_G) $(AFLAGS_R) /FR$@ $<
!ENDIF
.c.obj :
!IF $(DEBUG)
$(CC) /c $(CFLAGS_G) $(CFLAGS_D) /Fo$@ $<
!ELSE
$(CC) /c $(CFLAGS_G) $(CFLAGS_R) /Fo$@ $<
!ENDIF
.asm.obj :
!IF $(DEBUG)
$(ASM) /c $(AFLAGS_G) $(AFLAGS_D) /Fo$@ $<
!ELSE
$(ASM) /c $(AFLAGS_G) $(AFLAGS_R) /Fo$@ $<
!ENDIF
run: $(PROJ).exe
$(PROJ).exe $(RUNFLAGS)
debug: $(PROJ).exe
CV $(CVFLAGS) $(PROJ).exe $(RUNFLAGS)