home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / netds / rpc / interop / makefile.dce < prev    next >
Encoding:
Makefile  |  1995-11-14  |  1.3 KB  |  54 lines

  1. #*************************************************************#
  2. #**                                                         **#
  3. #**                 Microsoft RPC Examples                  **#
  4. #**               OSF DCE Interop Application               **#
  5. #**           Copyright(c) Microsoft Corp. 1993-1995        **#
  6. #**                                                         **#
  7. #*************************************************************#
  8.  
  9. CC=cc
  10.  
  11. #
  12. # You must define LIBS and CFLAGS depending on platform.
  13. #
  14.  
  15. # This works on DEC Ultrix DCE
  16. # LIBS=-ldce -lcma -ldnet -li
  17. # CFLAGS=-c
  18.  
  19. # This works on HP-UX Beta DCE
  20. # LIBS=-L/usr/lib/dce -lbb -ldce -lm -lc /usr/lib/end.o
  21. # CFLAGS=-c -Aa -D_POSIX_SOURCE -DREENTRANT
  22.  
  23. # default
  24. LIBS=-ldce
  25. CFLAGS=-c
  26.  
  27. all : client server
  28.  
  29. client: client.o msg_cstub.o
  30.         cc -o client client.o msg_cstub.o $(LIBS)
  31.  
  32. server: server.o manager.o msg_sstub.o
  33.         cc -o server server.o manager.o msg_sstub.o $(LIBS)
  34.  
  35. # Update the object files if necessary
  36.  
  37. client.o : client.c msg.h
  38. server.o : server.c msg.h
  39. manager.o : manager.c msg.h
  40.  
  41. msg.h: msg.idl msg.acf
  42.         idl msg.idl
  43.  
  44. # Clean up everything
  45. cleanall : clean
  46.         -del *.exe
  47.  
  48. # Clean up everything but the .EXEs
  49. clean :
  50.         -del *.o
  51.         -del msg_?stub.c
  52.         -del msg.h
  53.  
  54.