home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Encyclopedia 96-1
/
novell-nsepro-1996-1-cd2.iso
/
download
/
netware
/
dax1.exe
/
CLIENT
/
ADD
/
NLM
/
MAKEFILE
Wrap
Text File
|
1992-07-15
|
2KB
|
84 lines
#
# Program: Add.NLM
# This makefile rebuilds the Add NetWare Loadable Module
#
# Created: Wed Jul 15 14:03:11 1992
#
# MAKEINIT defines many of the macros used herein
# The following macros can be set via your environment:
# CCF386 : Set compile options
# 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 %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 debug novell
p_linkopt = debug
x_linkopt = $($(version)_linkopt)
debug = /dDEBUG=3 # use /dDEBUG to define DEBUG for C Preprocessor
!ifndef %ccf386
d_wcc386opt = /w4 /e99 /zp1 /3s /d2 /zl $(debug)
p_wcc386opt = /w4 /s /zp1 /3s /oax /zl
x_wcc386opt = $($(version)_wcc386opt)
!else
x_wcc386opt = $(%ccf386)
!endif
compiler_cmd = $(wcc386) $(x_wcc386opt) $[*.c
.BEFORE
echo $(build_msg)
set inc386=$(dcdir);$(inc_386)
set lib386=$(dcdir)
set wcg386=$(code_386)
.c.obj:
$(compiler_cmd)
Add.nlm : Add.obj Add.lnk $(dcdir)\cp\cpc\nlm\cpapi.lib $(dcdir)\dap\dapa\nlm\dapapi.lib
$(linker) @Add
Add.lnk : makefile
@echo form novell nlm 'Add' >$^&.lnk
@echo name $^& >>$^&.lnk
@echo option stack=8k >>$^&.lnk
@echo option caseexact, verbose, nod >>$^&.lnk
@echo option version=1.00 >>$^&.lnk
@echo $(x_linkopt) >>$^&.lnk
@echo option map >>$^&.lnk
@echo file $(startup), $^& >>$^&.lnk
@echo module clib >>$^&.lnk
@echo option screenname 'Add' >>$^&.lnk
@echo option threadname 'Add__P ' >>$^&.lnk
@echo import @$(clibimp) >>$^&.lnk
@echo lib cp\cpc\nlm\cpapi >>$^&.lnk
@echo lib dap\dapa\nlm\dapapi >>$^&.lnk
Add.obj : ..\Add.c
$(compiler_cmd)