File:  [WindowsNT SDKs] / mstools / samples / rpc / hello2 / makefile
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:20:01 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntsdk-oct-1991, ntsdk-dec-1991, HEAD
Microsoft Windows NT Pre-Release 11-19-1991

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

!include <ntwin32.mak>

!if "$(CPU)" == "i386"
CONVERTOBJECTCMD = $(cvtobj) $@
WARN = -W1
!endif
!if "$(CPU)" == "MIPS"
CONVERTOBJECTCMD = $(cvtobj)
WARN =
!endif

.c.obj:
   $(cc) $(cflags) $(cvars) $<
   $(CONVERTOBJECTCMD)

all : client server

# Make the client
client : client.exe
client.exe : client.obj hello2_c.obj hello2_x.obj
    $(link) $(conflags) -out:client.exe \
      client.obj hello2_c.obj hello2_x.obj \
      $(conlibs) $(LIB)\winrpc.lib $(LIB)\ndrlib.lib

# client main program
client.obj : client.c hello2.h

# client stub
hello2_c.obj : hello2_c.c hello2.h
   $(cc) $(cflags) $(cvars) $(WARN) hello2_c.c
   $(CONVERTOBJECTCMD)

# client auxiliary file
hello2_x.obj : hello2_x.c hello2.h
   $(cc) $(cflags) $(cvars) $(WARN) hello2_x.c
   $(CONVERTOBJECTCMD)

# Make the server
server : server.exe
server.exe : server.obj procs.obj hello2_s.obj hello2_y.obj
    $(link) $(conflags) -out:server.exe \
      server.obj hello2_s.obj procs.obj hello2_y.obj \
      $(conlibs) $(LIB)\winrpc.lib $(LIB)\ndrlib.lib

# server main loop
server.obj : server.c hello2.h

# remote procedures
procs.obj  : procs.c hello2.h

# server stub file
hello2_s.obj : hello2_s.c hello2.h
   $(cc) $(cflags) $(cvars) $(WARN) hello2_s.c
   $(CONVERTOBJECTCMD)

# server auxiliary file
hello2_y.obj : hello2_y.c hello2.h
   $(cc) $(cflags) $(cvars) $(WARN) hello2_y.c
   $(CONVERTOBJECTCMD)

# Stubs, auxiliary and header file from the IDL file
hello2.h hello2_c.c hello2_x.c hello2_s.c hello2_y.c : hello2.idl hello2.acf
    midl -cpp_cmd $(cc) -cpp_opt "-E"  hello2.idl

# Clean up everything
cleanall : clean
    -del *.exe

# Clean up everything but the .EXEs
clean :
    -del *.obj
    -del *.map
    -del hello2_c.c
    -del hello2_x.c
    -del hello2_s.c
    -del hello2_y.c
    -del hello2.h

unix.superglobalmegacorp.com

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