home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / CPI-C.ZIP / MAKEFILE < prev    next >
Text File  |  1992-06-25  |  4KB  |  127 lines

  1. #
  2. #   PROGRAM:   JQCPIC -- John Q's Portable CPI-C Abuser
  3. #
  4. #   MODULE:    MAKEFILE -- for Microsoft C version 6.00A
  5. #
  6. #   COPYRIGHTS:
  7. #              This module contains code made available by IBM
  8. #              Corporation on an AS IS basis.  Any one receiving the
  9. #              module is considered to be licensed under IBM copyrights
  10. #              to use the IBM-provided source code in any way he or she
  11. #              deems fit, including copying it, compiling it, modifying
  12. #              it, and redistributing it, with or without
  13. #              modifications.  No license under any IBM patents or
  14. #              patent applications is to be implied from this copyright
  15. #              license.
  16. #
  17. #              A user of the module should understand that IBM cannot
  18. #              provide technical support for the module and will not be
  19. #              responsible for any consequences of use of the program.
  20. #
  21. #              Any notices, including this one, are not to be removed
  22. #              from the module without the prior written consent of
  23. #              IBM.
  24. #
  25. #   AUTHOR:    Dr. John Q. Walker II
  26. #              IBM VNET: JOHNQ at RALVM6          IBM tie line: 444-4414
  27. #              Internet: johnq@vnet.ibm.com        phone: (919) 254-4414
  28. #
  29. #   RELATED FILES:
  30. #              See file JQCPIC.DOC for detailed information.
  31. #
  32. #   CHANGE HISTORY:
  33. #   Date       Description
  34. #   05/12/92   Added prologue.
  35. #   06/07/92   Removed usage.c file.
  36. #   06/24/92   Added port.c
  37. #-----------------------------------------------------------------------
  38.  
  39. # Source file extension
  40. C = .c
  41. # Source file extension
  42. H = .h
  43. # Object module extension
  44. OBJ = .obj
  45. # Executable file extension
  46. EXE = .exe
  47. # Base library (change this to match your library structure)
  48. BASELIB = clibce+
  49.  
  50. all: jqcpic$(EXE) jqcpicd$(EXE)
  51.  
  52. # Define NOCPIC is you don't want to make any real CPI-C calls.
  53. #DEFS = -DNOCPIC
  54. DEFS =
  55.  
  56. CC     = cl
  57. CFLAGS = -c -Zelp -AC -G0 -W4 -Ozax $(DEFS)
  58. #CFLAGS = -c -Zip -AC -G0 -W4 -Od $(DEFS)
  59.  
  60. LINK   = link
  61. LFLAGS = /F /NOD /NOE /NOI /PACKC /PACKD /PMTYPE:VIO /EXEPACK
  62. #LFLAGS = /F /NOD /NOE /NOI /PACKC /PACKD /PMTYPE:VIO /CODEVIEW
  63.  
  64. INCS   = jqcpic$(H) cpicdefs$(H) calls$(H) build$(H) port$(H)
  65.  
  66. #-----------------------------------------------------------------------
  67.  
  68. # Build the client-side executable
  69. jqcpic$(EXE)   :  jqcpic$(OBJ)   \
  70.                   build$(OBJ)    \
  71.                   calls$(OBJ)    \
  72.                   cmdlin$(OBJ)   \
  73.                   cpicdefs$(OBJ) \
  74.                   port$(OBJ)     \
  75.                   show$(OBJ)
  76.         $(LINK) $(LFLAGS) $*+build+calls+cmdlin+cpicdefs+port+show,\
  77.                        $*.exe, nul.map,\
  78.                        $(BASELIB)\
  79.                        cpic+\
  80.                        doscalls,,
  81. # To build a family-API version with NS/DOS, execute the following:
  82. #       bind $*   CPIC.LIB CPICNSDR.LIB
  83.  
  84.  
  85. # Build the server-side executable
  86. jqcpicd$(EXE)  :  jqcpicd$(OBJ)  \
  87.                   build$(OBJ)    \
  88.                   calls$(OBJ)    \
  89.                   cmdlin$(OBJ)   \
  90.                   cpicdefs$(OBJ) \
  91.                   port$(OBJ)     \
  92.                   show$(OBJ)
  93.         $(LINK) $(LFLAGS) $*+build+calls+cmdlin+cpicdefs+port+show,\
  94.                        $*.exe, nul.map,\
  95.                        $(BASELIB)\
  96.                        cpic+\
  97.                        doscalls,,
  98. # To build a family-API version with NS/DOS, execute the following:
  99. #       bind $*   CPIC.LIB CPICNSDR.LIB
  100.  
  101. #-----------------------------------------------------------------------
  102.  
  103. jqcpic$(OBJ)   :  jqcpic$(C)    $(INCS)
  104.         $(CC) $(CFLAGS) jqcpic$(C)
  105.  
  106. jqcpicd$(OBJ)  :  jqcpic$(C)    $(INCS)
  107.         $(CC) $(CFLAGS) -DSERVER_SIDE -Fo$* jqcpic$(C)
  108.  
  109. build$(OBJ)    :  build$(C)     $(INCS)
  110.         $(CC) $(CFLAGS) $*$(C)
  111.  
  112. calls$(OBJ)    :  calls$(C)     $(INCS)
  113.         $(CC) $(CFLAGS) $*$(C)
  114.  
  115. cmdlin$(OBJ)   :  cmdlin$(C)    $(INCS)
  116.         $(CC) $(CFLAGS) $*$(C)
  117.  
  118. cpicdefs$(OBJ) :  cpicdefs$(C)  $(INCS)
  119.         $(CC) $(CFLAGS) $*$(C)
  120.  
  121. port$(OBJ)     :  port$(C)      $(INCS)
  122.         $(CC) $(CFLAGS) $*$(C)
  123.  
  124. show$(OBJ)     :  show$(C)      $(INCS)
  125.         $(CC) $(CFLAGS) $*$(C)
  126.  
  127.