home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / nsprpub / pr / src / md / unix / objs.mk < prev    next >
Encoding:
Text File  |  1998-04-08  |  3.2 KB  |  177 lines

  1. #
  2. # The contents of this file are subject to the Netscape Public License
  3. # Version 1.0 (the "NPL"); you may not use this file except in
  4. # compliance with the NPL.  You may obtain a copy of the NPL at
  5. # http://www.mozilla.org/NPL/
  6. # Software distributed under the NPL is distributed on an "AS IS" basis,
  7. # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  8. # for the specific language governing rights and limitations under the
  9. # NPL.
  10. # The Initial Developer of this code under the NPL is Netscape
  11. # Communications Corporation.  Portions created by Netscape are
  12. # Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  13. # Reserved.
  14. #
  15.  
  16. # This makefile appends to the variable OBJS the platform-dependent
  17. # object modules that will be part of the nspr20 library.
  18.  
  19. CSRCS =          \
  20.     unix.c    \
  21.     unix_errors.c \
  22.     uxproces.c \
  23.     uxwrap.c \
  24.     $(NULL)
  25.  
  26. PTH_USER_CSRCS =          \
  27.     pthreads_user.c \
  28.     $(NULL)
  29.  
  30. IRIX_CSRCS =     \
  31.     irix.c     \
  32.     $(NULL)
  33.  
  34. SUNOS4_CSRCS =     \
  35.     sunos4.c     \
  36.     $(NULL)
  37.  
  38. SOLARIS_CSRCS = \
  39.     solaris.c    \
  40.     $(NULL)
  41.  
  42. AIX_CSRCS =    \
  43.     aix.c    \
  44.     $(NULL)
  45.  
  46. FREEBSD_CSRCS = \
  47.     freebsd.c \
  48.     $(NULL)
  49.  
  50. BSDI_CSRCS = \
  51.     bsdi.c \
  52.     $(NULL)
  53.  
  54. HPUX_CSRCS = \
  55.     hpux.c \
  56.     $(NULL)
  57.  
  58. OSF1_CSRCS = \
  59.     osf1.c \
  60.     $(NULL)
  61.  
  62. LINUX_CSRCS = \
  63.     linux.c \
  64.     $(NULL)
  65.  
  66. UNIXWARE_CSRCS = \
  67.     unixware.c \
  68.     $(NULL)
  69.  
  70. RELIANTUNIX_CSRCS = \
  71.     reliantunix.c \
  72.     $(NULL)
  73.  
  74. NEC_CSRCS = \
  75.     nec.c \
  76.     $(NULL)
  77.  
  78. SONY_CSRCS = \
  79.     sony.c \
  80.     $(NULL)
  81.  
  82. NCR_CSRCS = \
  83.     ncr.c \
  84.     $(NULL)
  85.  
  86. SCOOS_CSRCS = \
  87.     scoos.c \
  88.     $(NULL)
  89.     
  90.     
  91. ifeq ($(PTHREADS_USER),1)
  92. CSRCS += $(PTH_USER_CSRCS)
  93. endif
  94.  
  95. ifeq ($(OS_ARCH),IRIX)
  96. CSRCS += $(IRIX_CSRCS)
  97. endif
  98.  
  99. ifeq ($(OS_ARCH),SunOS)
  100. ifeq ($(OS_RELEASE),4.1.3_U1)
  101. CSRCS += $(SUNOS4_CSRCS)
  102. else
  103. CSRCS += $(SOLARIS_CSRCS)
  104. endif
  105. endif
  106.  
  107. ifeq ($(OS_ARCH),AIX)
  108. CSRCS += $(AIX_CSRCS)
  109. endif
  110. ifeq ($(OS_ARCH),FreeBSD)
  111. CSRCS += $(FREEBSD_CSRCS)
  112. endif
  113. ifeq ($(OS_ARCH),BSD_386)
  114. CSRCS += $(BSDI_CSRCS)
  115. endif
  116. ifeq ($(OS_ARCH),HP-UX)
  117. CSRCS += $(HPUX_CSRCS)
  118. endif
  119. ifeq ($(OS_ARCH),OSF1)
  120. CSRCS += $(OSF1_CSRCS)
  121. endif
  122. ifeq ($(OS_ARCH),Linux)
  123. CSRCS += $(LINUX_CSRCS)
  124. endif
  125. ifeq ($(OS_ARCH),UNIXWARE)
  126. CSRCS += $(UNIXWARE_CSRCS)
  127. endif
  128. ifeq ($(OS_ARCH),ReliantUNIX)
  129. CSRCS += $(RELIANTUNIX_CSRCS)
  130. endif
  131. ifeq ($(OS_ARCH),NEC)
  132. CSRCS += $(NEC_CSRCS)
  133. endif
  134. ifeq ($(OS_ARCH),NEWS-OS)
  135. CSRCS += $(SONY_CSRCS)
  136. endif
  137. ifeq ($(OS_ARCH),NCR)
  138. CSRCS += $(NCR_CSRCS)
  139. endif
  140. ifeq ($(OS_ARCH),SCO_SV)
  141. CSRCS += $(SCOOS_CSRCS)
  142. endif
  143.  
  144. #
  145. # Some Unix platforms have an assembly language file.
  146. # E.g., AIX 3.2, Solaris (both sparc and x86).
  147. #
  148. ifeq ($(OS_ARCH), AIX)
  149.     ifeq ($(OS_RELEASE), 3.2)
  150.     ASFILES   = os_$(OS_ARCH).s
  151.     endif
  152. endif
  153.  
  154. ifeq ($(OS_ARCH),SunOS)
  155.     ifeq ($(OS_TEST),i86pc)
  156.     ASFILES = os_$(OS_ARCH)_x86.s
  157.     else
  158.     ifneq ($(OS_RELEASE),4.1.3_U1)
  159.             ASFILES = os_$(OS_ARCH).s
  160.     endif
  161.     endif
  162. endif
  163.  
  164. ifeq ($(OS_ARCH), ReliantUNIX)
  165.     ASFILES   = os_$(OS_ARCH).s
  166. endif
  167.  
  168. ifeq ($(OS_ARCH)$(OS_RELEASE),BSD_3862.1)
  169.     ASFILES = os_BSD_386_2.s
  170. endif
  171.     
  172. OBJS += $(addprefix md/unix/$(OBJDIR)/,$(CSRCS:.c=.o))  \
  173.     $(addprefix md/unix/$(OBJDIR)/,$(ASFILES:.s=.o))
  174.  
  175.