home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Encyclopedia 96-1
/
novell-nsepro-1996-1-cd2.iso
/
download
/
netware
/
dax1.exe
/
CLIENT
/
ADD
/
DOS
/
MAKEFILE
Wrap
Text File
|
1992-07-15
|
2KB
|
85 lines
#
# Program: Add.EXE
# This makefile rebuilds the Add Program
#
# Created: Tue Feb 25 10:20:38 1992
#
# MAKEINIT defines many of the macros used herein
# The following macros can be set via your environment:
# CCFDOS : Set compile options
# MMODEL : Set memory model 'smclh'
# QMKVER : Set to 'd' or 'p' to define VERSION
# SILENT : If defined, .SILENT will be set
!ifdef %SILENT
.silent
!endif
!ifndef %dcdir
dcdir = \nlm\dc
!else
dcdir = $(%dcdir)
!endif
program = Add
!ifndef %mmodel
model = s
!else
model = $(%mmodel)
!endif
!ifndef %qmkver
version = d # use 'd' or 'p' here
!else
version = $(%qmkver)
!endif
!ifeq version d
lversion = DEBUG
!else
lversion = PRODUCTION
!endif
build_msg = Building a $(lversion) version of $(program)
d_linkopt = debug all
p_linkopt = debug
x_linkopt = $($(version)_linkopt)
debug = /dDEBUG # use /dDEBUG to define DEBUG for C Preprocessor
!ifndef %ccfdos
d_wccopt = /m$(model) /w4 /e99 /zp1 /d2 $(debug)
p_wccopt = /m$(model) /w4 /s /zp1 /oax
x_wccopt = $($(version)_wccopt) /dDOSCLIENT
!else
x_wccopt = $(%ccfdos) /dDOSCLIENT
!endif
compiler_cmd = $(wcc) $(x_wccopt) $[*.c
.BEFORE
echo $(build_msg)
set include=$(dcdir);$(inc_dir)
set lib=$(dcdir);$(lib_dir)
set wcg=$(code_gen)
.c.obj:
$(compiler_cmd)
Add.exe : Add.obj Add.lnk $(dcdir)\cp\cpc\dos\cpapi.lib $(dcdir)\dap\dapa\dos\dapapi.lib
$(linker) @Add
Add.lnk : makefile
@echo name $^& >$^&.lnk
@echo option stack=8k >>$^&.lnk
@echo option caseexact, verbose >>$^&.lnk
@echo $(x_linkopt) >>$^&.lnk
@echo option map >>$^&.lnk
@echo file $^& >>$^&.lnk
@echo lib $(model)nit >>$^&.lnk
@echo lib cp\cpc\dos\cpapi >>$^&.lnk
@echo lib dap\dapa\dos\dapapi >>$^&.lnk
Add.obj : ..\Add.c
$(compiler_cmd)