home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / netds / sna / aremote / makefile < prev    next >
Makefile  |  1997-09-15  |  2KB  |  67 lines

  1. !include <ntwin32.mak>
  2.  
  3. # APPC Remote Makefile
  4. # produces:
  5. #   aremote.exe - the APPC Remote program
  6. #   arsetup.exe - setup service information for running aremote as a service
  7.  
  8. # the following environment variables should be set before using this makefile
  9. #   ISVLIBS - points to the directory holding the SNA SDK libraries
  10. #   ISVINCS - points to the directory holding the SNA SDK include files
  11. #   CPU     - the CPU type (i386 or mips or alpha) being compiled for
  12.  
  13. snalibs = wappc32.lib wincsv32.lib
  14. otherlibs = user32.lib advapi32.lib
  15. INCLUDE = $(INCLUDE);$(ISVINCS)
  16.  
  17. all: aremote.exe arsetup.exe
  18.  
  19. ##########################
  20. # Stuff to build aremote #
  21. ##########################
  22. aremote.exe: client.obj server.obj aremote.obj appclib.obj queue.obj
  23.     $(link) $(linkdebug) $(conflags) -out:$*.exe $** $(conlibs) $(snalibs) $(otherlibs)
  24.  
  25. .c.obj: 
  26.     $(cc) $(cdebug) $(cflags) $(cvars) -DUNICODE -D_UNICODE $*.c
  27.  
  28. server.c: appclib.h    aremote.h
  29. client.c: appclib.h aremote.h
  30. aremote.c: aremote.h
  31. appclib.c: appclib.h queue.h
  32. queue.c: queue.h
  33.  
  34. ##########################
  35. # Stuff to build arsetup #
  36. ##########################
  37.  
  38. # Update the resource if necessary
  39. arsetup.res: arsetup.rc setupdlg.h
  40.     rc -r -fo arsetup.tmp $(cvars) arsetup.rc
  41.     cvtres -$(CPU) -o arsetup.res arsetup.tmp
  42.     del arsetup.tmp
  43.  
  44. # Update the object file if necessary
  45.  
  46. arsetup.obj: arsetup.c arsetup.h setupdlg.h
  47.     $(cc) $(cdebug) $(cflags) $(cvars) arsetup.c
  48.  
  49. # Update the executable file if necessary, and if so, add the resource back in.
  50.  
  51. arsetup.exe: arsetup.obj arsetup.res
  52.     $(link) $(linkdebug) $(guiflags) -out:arsetup.exe arsetup.obj arsetup.res $(guilibs) advapi32.lib
  53.  
  54. ###########################
  55. # Remove non-source files #
  56. ###########################
  57. clean:
  58.     del arsetup.res
  59.     del arsetup.exe
  60.     del aremote.exe
  61.     del queue.obj
  62.     del client.obj
  63.     del server.obj
  64.     del aremote.obj
  65.     del appclib.obj
  66.     del arsetup.obj
  67.