home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Encyclopedia 96-1
/
novell-nsepro-1996-1-cd2.iso
/
download
/
netware
/
dbsamp.exe
/
DBAPP
/
SERVER
/
MAKEFILE
< prev
Wrap
Text File
|
1995-01-04
|
2KB
|
77 lines
#
# Program: dbnlm.NLM
# This makefile rebuilds the dbnlm NetWare Loadable Module
#
# Created: Wed Nov 30 10:25:02 1994
#
# 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
program = dbnlm
!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 # 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 = p:\watcom\bin\wcc386 $(x_wcc386opt) $[*.c
.BEFORE
echo $(build_msg)
set inc386=p:\watcom\novh40;j:\nwsdk\nlm\novh;
set wcg386=$(code_386)
.c.obj:
$(compiler_cmd)
dbnlm.nlm : dbnlm.obj dbnlm.lnk
$(linker) @dbnlm
dbnlm.lnk : makefile
@echo form novell nlm 'dbnlm' >$^&.lnk
@echo name $^& >>$^&.lnk
@echo option stack=8k >>$^&.lnk
@echo option caseexact, verbose, nod >>$^&.lnk
@echo option version=0.01 >>$^&.lnk
@echo $(x_linkopt) >>$^&.lnk
@echo option map >>$^&.lnk
@echo file $(startup), $^& >>$^&.lnk
@echo module clib >>$^&.lnk
@echo module dsapi >>$^&.lnk
@echo option screenname 'Extended NCP Authentication Example' >>$^&.lnk
@echo option threadname 'dbnlm__P ' >>$^&.lnk
@echo import @j:clib.imp >>$^&.lnk
@echo import @j:dsapi.imp >>$^&.lnk
dbnlm.obj : dbnlm.c