File:  [WindowsNT SDKs] / mstools / samples / rpc / dict / makefile.dos
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:20:58 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntsdk-jun-1992, HEAD
Microsoft Windows NT Build 297 06-28-1992

#*************************************************************#
#**                                                         **#
#**                 Microsoft RPC Examples                  **#
#**                 Dictionary Application                  **#
#**            Copyright(c) Microsoft Corp. 1991            **#
#**                                                         **#
#*************************************************************#

####################################################################
# ----- The following is an example of a makefile for DOS.
# ----- In the DOS environment just type nmake -f makefile.dos
####################################################################

# ----- DOS Environment definitions -----

DOS = 1

!include ..\makefile.dos

CC = cl
EXPAND = -E
MIDL = midl
DEF =
OBJ = obj

CCFLAGS = -I . -I $(OSINCLUDE)
CCFLAGS0 = /AL

!ifdef DBG
CCFLAGS1 = /c /Zel /W2 /Od /Zi
!else
CCFLAGS1 = /c /Zel /W2 /Otnlgei
!endif
# DBG

.c.$(OBJ):
   $(CC) $(CCFLAGS) $(CCFLAGS0) $(CCFLAGS1) $(DEF) $<

!ifdef DBG
LINK = link @dictdbg.lnk
!else
LINK = link @dict.lnk
!endif
# DBG

PLAYLINK = link @play.lnk

CVTOMF = $(LINK)

all : client.exe play.exe

client.exe : client.$(OBJ) util0.$(OBJ) \
   replay_c.$(OBJ) replay_x.$(OBJ)
   $(LINK)

play.exe : play.$(OBJ) lutil0.$(OBJ) dict0.$(OBJ)
    $(PLAYLINK)

client.$(OBJ) : client.c util0.h replay.h

server.$(OBJ) : server.c util0.h replay.h

replay.$(OBJ) : util0.h replay.h replay.c

util0.$(OBJ) : util0.h util0.c

lutil0.$(OBJ) : util0.h util0.c
    copy util0.c lutil0.c
    $(CC) $(CCFLAGS) $(CCFLAGS0) $(CCFLAGS1) -D_LOCAL lutil0.c
    del lutil0.c

dict0.$(OBJ) : dict0.h dict0.c

play.$(OBJ) : play.c util0.h dict0.h

replay.h replay_s.c replay_c.c replay_y.c replay_x.c : replay.idl replay.acf
    $(MIDL) $(DEF) replay.idl

play : play.exe

clean :
    -del *.$(OBJ)
    -del replay.h
    -del replay_?.*

cleanall :
    -del *.$(OBJ)
    -del replay.h
    -del replay_?.*
    -del *.exe

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.