home *** CD-ROM | disk | FTP | other *** search
/ IBM Presents OS/2 Software Hits 1995 / OS-2_SW_HITS_2ND_EDITION_1995.ISO / i17 / lwp42n.exe / MAKEFILE < prev    next >
Text File  |  1994-10-05  |  7KB  |  169 lines

  1. #################################################
  2. #                        #
  3. # BWNFSD Makefile Version 3.1c    08/05/94    fjw #
  4. #                        #
  5. #################################################
  6. #                        #
  7. # One can enable various debugging options here #
  8. #                        #
  9. #################################################
  10. CC  = cc
  11. CC2 = cc
  12.  
  13. ##########################
  14. #             #
  15. # Dependencies Section:  #
  16. #             #
  17. ##########################
  18. make:
  19.     @echo 'Make what?  You must tell which system to make BWNFSD for:'
  20.     @echo 'make sun       - Sun or compatible running Sun-OS'
  21.     @echo 'make bsd       - Generic Berkeley Unix'
  22.     @echo 'make bsdi      - Berkely Software Design unix'
  23.     @echo 'make sys3      - Generic ATT System III or System V'
  24.     @echo 'make sys5      - Generic ATT System III or System V'
  25.     @echo 'make svr4      - ATT System V.4 UNIX'
  26.     @echo 'make univel    - Univel System VR4 variant'
  27.     @echo 'make solaris21 - Solaris 2.1'
  28.     @echo 'make solaris22 - Solaris 2.2'
  29.     @echo 'make hpux      - HPUX 8.07 System (Possibly others)'
  30.     @echo 'make sgi       - Silicon Graphics machine'
  31.     @echo 'make sco       - Santa Cruz Organization (SCO)'
  32.     @echo 'make aix       - IBM AIX for RS/6000 or PS/2'
  33.  
  34.  
  35. ################################
  36. #                   #
  37. # Please add your system here  #
  38. #                   #
  39. ################################
  40. OBJS        = bwnfsd.o bwprint.o bwlock.o
  41.  
  42. all: bwnfsd
  43.  
  44. bwnfsd: $(OBJS)
  45.     $(CC) -o bwnfsd $(OBJS) $(CFLAGS)
  46.  
  47. ########################################
  48. #
  49. # Possible defines and their uses include:
  50. # INT_SIG - Indicates that this system thinks that the signal() function
  51. #    takes an integer functional argument, rather than void.
  52. # USE_BCOPY - Indicates that this system doesn't understand memcmp() and
  53. #    memcopy(), and that bcmp() and bcopy() should be used instead.
  54. # FOURTEEN_CHAR - Indicates that there is a fourteen character limit on
  55. #    filenames, which affects print-job queueing
  56. # SHADW - Indicates that a Shadow password file is in use
  57. # WINNFS - Indicates that compilation is for a Wollongong WIN system
  58. # DONT_USE_NETINET_IN - Indicates that the system does not have/need the
  59. #    include of <netinet/in.h>
  60. # P_TITLE_LOWERT - Indicates that the print command wants the printjob title
  61. #    to be indicated with a -t keyword rather than with a -T keyword.
  62. # PORTMAP - Indicates that a Univel machine should include some include files
  63. #    that it otherwise doesn't.  This symbol is checked by the include
  64. #    files on the Univel machine, not in this source code
  65. # INCLUDE_BOGOSITY - Indicates that this machine's include files are not
  66. #    set up so that they can be multiply included.  Some versions of
  67. #    HP/UX suffer from this, as do some AT&T machines.
  68. # USE_ALARM - Indicates that this system uses the alarm() system call to set
  69. #    a timer event. The other mechanism is to use setitimer() calls.
  70. #
  71. # FIND_QUEUES_AIX - Indicates that we can determine the names of the queues
  72. #    on this machine in the AIX manner (parse the /etc/qconfig file)
  73. # Q_CMDS_AIX - Indicates that this machine uses the standard AIX commands
  74. #    (bin/enq) for determining the status of and removing jobs from a print
  75. #    queue
  76. # P_CMDS_AIX - Indicates that this machine uses the standard AIX command
  77. #    (/bin/enq) for printing to a print queue
  78. # P_CMDS_AIX_PIOBE - Indicates that this machine uses the extended ASCII filter
  79. #    which requires the use of the pass-through option for printing.
  80. # P_CMDS_AIX_ENSCRIPT - Indicates that this machine uses the AIX enscript
  81. #    command for printing to a print queue
  82. #
  83. # FIND_QUEUES_PRINTCAP - Indicates that we should determine the names of
  84. #    the queues on this machine by parsing the /etc/printcap file.
  85. # Q_CMDS_BSD - Indicates that this machine uses the standard BSD commands
  86. #    (/usr/ucb/lp{q,rm}) for determining the status of and removing
  87. #    jobs from a print queue
  88. # P_CMDS_BSD - Indicates that this machine uses the standard BSD command
  89. #    (/usr/ucb/lpr) for printing to a print queue
  90. # P_CMDS_BSDI - Like BSD, but use /usr/bin/lpr
  91. # Q_CMDS_BSDI - Like BSD, but use /usr/bin/lp{q,rm}
  92. #
  93. # FIND_QUEUES_SVR4 - Indicates that we should determine the names of the
  94. #    queues on this machine by reading the ASCII files that are in
  95. #    /usr/spool/lp/system/pstatus and /usr/spool/lp/system/cstatus
  96. # CHECK_PRINTER_ACCESS - Indicates that users are to be allowed/disallowed
  97. #    access to printers on a username basis.  This is only used in SVR4
  98. #    -style printing.
  99. # Q_CMDS_SVR4 - Indicates that this machine uses the standard SVR4 commands
  100. #    (/usr/bin/lpstat /usr/bin/cancel) for determining the status of and
  101. #    removing jobs from a print queue
  102. # P_CMDS_SVR4 - Indicates that this machine uses the standard SVR4 command
  103. #    (/usr/bin/lp) for printing to a print queue
  104. #
  105. # Q_CMDS_SCO - Indicates that this machine uses modified SVR4 commands like
  106. #    SCO does (/usr/bin/lpstat /usr/bin/cancel) for determining the
  107. #    status of and removing jobs from a print queue
  108. #
  109. # SCO - Indicates an SCO system
  110. ########################################
  111. #
  112. # Make commands for specific systems:
  113. #
  114. ########################################
  115. #IBM RS/6000 or PS/2 running AIX
  116. aix:
  117.     make bwnfsd "CFLAGS= -O -DFIND_QUEUES_AIX -DQ_CMDS_AIX -DP_CMDS_AIX"
  118.  
  119. #Sun
  120. sun:
  121.     make bwnfsd "CFLAGS= -O -DUSE_BCOPY -DQ_CMDS_BSD -DP_CMDS_BSD -DFIND_QUEUES_PRINTCAP"
  122.  
  123. #Berkeley Unix
  124. bsd:
  125.     make bwnfsd "CFLAGS= -O -DUSE_BCOPY -DQ_CMDS_BSD -DP_CMDS_BSD -DFIND_QUEUES_PRINTCAP"
  126.  
  127. #Berkeley Software Design Unix
  128. #bsdi:
  129. #      make bwnfsd "CFLAGS= -O -DQ_CMDS_BSDI -DP_CMDS_BSDI -DFIND_QUEUES_PRINTCAP -DDONT_USE_NETINET_IN -lrpc"
  130.  
  131. #HPUX Version 8.07 (possibly others) NOTE: uses printcap
  132. hpux:
  133.     make bwnfsd "CFLAGS= -O -DINCLUDE_BOGOSITY -DP_CMDS_SVR4 -DQ_CMDS_SVR4 -DFIND_QUEUES_PRINTCAP"
  134.  
  135. #Generic ATT System III or System V (not R4)
  136. sys5:
  137.     make bwnfsd "CFLAGS= -O -DUSE_BCOPY -DQ_CMDS_BSD -DP_CMDS_SYSV32 -DFIND_QUEUES_PRINTCAP -DFOURTEEN_CHAR"
  138.  
  139. #Generic ATT System III or System V (not R4)
  140. sys3:
  141.     make bwnfsd "CFLAGS= -O -DUSE_BCOPY -DQ_CMDS_BSD -DP_CMDS_SYSV32 -DFIND_QUEUES_PRINTCAP -DFOURTEEN_CHAR"
  142.  
  143. #Generic System V R4
  144. svr4:
  145.     make bwnfsd "CFLAGS= -O -DINT_SIG -DFOURTEEN_CHAR -DCHECK_PRINTER_ACCESS -DFIND_QUEUES_SVR4 -DP_CMDS_SVR4 -DQ_CMDS_SVR4 -DSHADW -lrpcsvc -lsocket -lresolv -lnsl -lx -lnls /usr/ucblib/libucb.a"
  146.  
  147. #Univel System V R4
  148. univel:
  149. #old    make bwnfsd "CFLAGS= -O -DPORTMAP -DCHECK_PRINTER_ACCESS -DFIND_QUEUES_SVR4 -DP_CMDS_SVR4 -DQ_CMDS_SVR4 -DSHADW -lrpcsvc -lsocket -lresolv -lnsl -lx -lnls /usr/ucblib/libucb.a"
  150.     make bwnfsd "CFLAGS= -O -DPORTMAP -DCHECK_PRINTER_ACCESS -DFIND_QUEUES_SVR4 -DP_CMDS_SVR4 -DQ_CMDS_SVR4 -DSHADW -lsocket -lresolv -lnsl -lx -lnls /usr/ucblib/libucb.a"
  151.  
  152. #Solaris 2.1
  153. solaris21:
  154.     make bwnfsd "CFLAGS= -w -O -DINT_SIG -DFIND_QUEUES_PRINTCAP -DP_CMDS_SVR4 -DQ_CMDS_SCO -DSHADW -lrpcsvc -lsocket -lresolv -lnsl"
  155.  
  156. #Solaris 2.2
  157. solaris22:
  158.     make bwnfsd "CFLAGS= -w -O -DINT_SIG -DFIND_QUEUES_SVR4 -DP_CMDS_SVR4 -DQ_CMDS_SCO -DSHADW -lrpcsvc -lsocket -lresolv -lnsl"
  159.  
  160. #Silicon Graphics machine
  161. sgi:
  162. #old    make bwnfsd "CFLAGS= -O -cckr -I/usr/include/sun -I/usr/include/bsd -DP_CMDS_SYSV32 -DQ_CMDS_BSD -lrpcsvc -lsun -lbsd"
  163.     make bwnfsd "CFLAGS= -O -cckr -I/usr/include/sun -I/usr/include/bsd -DFIND_QUEUES_SVR4 -DCHECK_PRINTER_ACCESS -DP_CMDS_SVR4 -DQ_CMDS_SCO -lrpcsvc -lsun -lbsd"
  164.  
  165. #Intel hardware running Santa Cruz Operation's SCO Unix
  166. sco:
  167.     make bwnfsd "CFLAGS= -O -DSCO -DCHECK_PRINTER_ACCESS -DFIND_QUEUES_SVR4 -DP_CMDS_SVR4 -DQ_CMDS_SCO -DUSE_ALARM -DFOURTEEN_CHAR -lprot -lx -lrpcsvc -lrpc -lsocket -lc_s -lcrypt_i"
  168.  
  169.