Annotation of mstools/samples/rpc/hello/makefile, revision 1.1.1.2

1.1       root        1: #*************************************************************#
                      2: #**                                                         **#
                      3: #**                 Microsoft RPC Examples                  **#
                      4: #**                  hello Application                     **#
                      5: #**           Copyright(c) Microsoft Corp. 1992            **#
                      6: #**                                                         **#
                      7: #*************************************************************#
                      8: 
                      9: !include <ntwin32.mak>
                     10: 
                     11: !if "$(CPU)" == "i386"
                     12: WARN = -W1
                     13: cvtomf =
1.1.1.2 ! root       14: # workaround for Windows NT 10/92 beta
        !            15: cflags = $(cflags:G3=Gz)
1.1       root       16: !endif
                     17: !if "$(CPU)" == "MIPS"
                     18: WARN =
                     19: cvtomf = mip2coff $@
                     20: !endif
                     21: 
                     22: .c.obj:
                     23:    $(cc) $(cflags) $(cvars) $<
                     24:    $(cvtomf)
                     25: 
                     26: all : helloc hellos
                     27: 
                     28: # Make the client side application helloc
                     29: helloc : helloc.exe
                     30: helloc.exe : helloc.obj hello_c.obj hello_x.obj
                     31:     $(link) $(conflags) -out:helloc.exe \
                     32:       helloc.obj hello_c.obj hello_x.obj \
1.1.1.2 ! root       33:       rpcrt4.lib rpcndr.lib $(conlibs)
1.1       root       34: 
                     35: # helloc main program
                     36: helloc.obj : helloc.c hello.h
                     37: 
                     38: # helloc stub
                     39: hello_c.obj : hello_c.c hello.h
                     40:    $(cc) $(cflags) $(cvars) $(WARN) hello_c.c
                     41:    $(cvtomf)
                     42: 
                     43: # helloc auxiliary file
                     44: hello_x.obj : hello_x.c hello.h
                     45:    $(cc) $(cflags) $(cvars) $(WARN) hello_x.c
                     46:    $(cvtomf)
                     47: 
                     48: # Make the server side application
                     49: hellos : hellos.exe
                     50: hellos.exe : hellos.obj hellop.obj hello_s.obj hello_y.obj
                     51:     $(link) $(conflags) -out:hellos.exe \
                     52:       hellos.obj hello_s.obj hellop.obj hello_y.obj \
1.1.1.2 ! root       53:       rpcrt4.lib rpcndr.lib $(conlibs)
1.1       root       54: 
                     55: # hello server main program
                     56: hellos.obj : hellos.c hello.h
                     57: 
                     58: # remote procedures
                     59: hellop.obj     : hellop.c hello.h
                     60: 
                     61: # hellos stub file
                     62: hello_s.obj : hello_s.c hello.h
                     63:    $(cc) $(cflags) $(cvars) $(WARN) hello_s.c
                     64:    $(cvtomf)
                     65: 
                     66: # hellos auxiliary file
                     67: hello_y.obj : hello_y.c hello.h
                     68:    $(cc) $(cflags) $(cvars) $(WARN) hello_y.c
                     69:    $(cvtomf)
                     70: 
                     71: # Stubs, auxiliary and header file from the IDL file
                     72: hello.h hello_c.c hello_x.c hello_s.c hello_y.c : hello.idl hello.acf
                     73:     midl -cpp_cmd $(cc) -cpp_opt "-E"  hello.idl
                     74: 
                     75: # Clean up everything
                     76: cleanall : clean
                     77:     -del *.exe
                     78: 
                     79: # Clean up everything but the .EXEs
                     80: clean :
                     81:     -del *.obj
                     82:     -del *.map
                     83:     -del hello_c.c
                     84:     -del hello_x.c
                     85:     -del hello_s.c
                     86:     -del hello_y.c
                     87:     -del hello.h

unix.superglobalmegacorp.com

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