home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / nihcl-3.0 / vector / MAKEFILE < prev    next >
Encoding:
Text File  |  1990-05-20  |  4.5 KB  |  138 lines

  1. # $Header: /afs/alw.nih.gov/unix/sun4_40c/usr/local/src/nihcl-3.0/share/vector/RCS/MAKEFILE,v 3.0 90/05/20 21:04:07 kgorlen Rel $
  2. # C++ compiler
  3. CC = CC
  4.  
  5. # C++ debug switch
  6. CCDEBUG =
  7. #CCDEBUG = -g
  8.  
  9. # C++ flags
  10. # NOTE: Disable +p option when compiling with AT&T R2.1
  11. CCFLAGS = +p
  12. #CCFLAGS =
  13.  
  14. # C++ include files
  15. I = /usr/include/CC
  16.  
  17. # If using BSD
  18. SYS = BSD
  19. # If using System V
  20. #SYS = SYSV
  21.  
  22. # Compile with nested types (works with AT&T R2.1 and GNU C++)
  23. NESTED_TYPES =
  24. #NESTED_TYPES = -DNESTED_TYPES
  25.  
  26. # Disable AT&T R2.0/R2.1 bug work-around code
  27. BUGDEFS =
  28. #BUGDEFS = -DBUG_bC2728 -DBUG_38 -DBUG_39 -DBUG_OPTYPECONST
  29. # Defining BUG_TOOBIG disables code that prevents C compiler "yacc stack overflows"
  30. #BUGDEFS = -DBUG_bC2728 -DBUG_38 -DBUG_39 -DBUG_OPTYPECONST -DBUG_TOOBIG
  31.  
  32. # Enable debug code
  33. DEBUGDEFS =
  34. #DEBUGDEFS = -DDEBUG_OBJIO -DDEBUG_PROCESS
  35.  
  36. # For no multiple inheritance support
  37. MI =
  38. # Enable support for multiple inheritance
  39. #MI = -DMI
  40.  
  41. NIHCLLIB = ../lib/libnihcl.a
  42. NIHVECLIB = libnihclvec.a
  43.  
  44. CFLAGS = -I${NIHCLINCDIR} ${MI} ${CCDEBUG} ${CCFLAGS} ${NESTED_TYPES} ${BUGDEFS} ${DEBUGDEFS}
  45.  
  46. # Target Directories
  47. NIHCLLIBDIR = /usr/lib
  48. NIHCLINCDIR = ../lib
  49.  
  50. VECS = BitVec.c ByteVec.c DoubleVec.c FloatVec.c IntVec.c LongVec.c ShortVec.c
  51. OBJECTS = BitVec.o ByteVec.o ByteVect.o DoubleVec.o DoubleVect.o FloatVec.o FloatVect.o IntVec.o IntVect.o LongVec.o LongVect.o ShortVec.o ShortVect.o Vector.o
  52.  
  53. .SUFFIXES: ..c .s
  54. .c.o:
  55.     ${CC} ${CFLAGS} -c $<
  56. .c..c:
  57.     ${CC} ${CFLAGS} +i -c $<
  58. .c.s:
  59.     ${CC} ${CFLAGS} +i -S $<
  60.  
  61. .PRECIOUS: ${NIHVECLIB}
  62.  
  63. all: always ${NIHVECLIB}
  64.  
  65. ${NIHVECLIB}: ${OBJECTS}
  66.     ar rv $@ $?
  67.     if test ${SYS} = BSD ; then ranlib ${NIHVECLIB}; fi
  68.     rm $?
  69.  
  70. always:
  71.     ${MAKE} generic
  72.  
  73. generic:
  74.     ${MAKE} -f genericmake ${VECS}
  75.  
  76. install:
  77.     cp lib*.a ${NIHCLLIBDIR}
  78.     if test ${SYS} = BSD ; then \
  79.         for i in lib*.a; do (cd ${NIHCLLIBDIR}; ranlib -t $$i); done; \
  80.     fi
  81.     -mkdir ${NIHCLINCDIR}
  82.     cp *.h ${NIHCLINCDIR}
  83.  
  84. clean:
  85.     -chmod u+w *Vec.c
  86.     -rm -f targetlist *.o *Vec.c *..c *.s *.a make.tdep*
  87.  
  88. # DO NOT DELETE THIS LINE -- make depend depends on it.
  89.  
  90. BitVec.o: IntVec.h Vector.h ${NIHCLINCDIR}/Object.h
  91. BitVec.o: BitVec.h bitstreams.h ${NIHCLINCDIR}/nihclconfig.h
  92. BitVec.o: ${NIHCLINCDIR}/nihclIO.h ${NIHCLINCDIR}/OIO.h
  93. BitVec.o: ${NIHCLINCDIR}/OIOfd.h
  94. ByteVec.o: ByteVec.h Vector.h ${NIHCLINCDIR}/Object.h
  95. ByteVec.o: BitVec.h IntVec.h ${NIHCLINCDIR}/nihclIO.h ${NIHCLINCDIR}/OIO.h ${NIHCLINCDIR}/OIOfd.h
  96. ByteVect.o: ByteVec.h Vector.h ${NIHCLINCDIR}/Object.h
  97. ByteVect.o: BitVec.h IntVec.h
  98. ByteVect.o: ${NIHCLINCDIR}/nihclconfig.h
  99. ByteVect.o: ${NIHCLINCDIR}/nihclIO.h ${NIHCLINCDIR}/OIO.h
  100. ByteVect.o: ${NIHCLINCDIR}/OIOfd.h
  101. DoubleVec.o: DoubleVec.h Vector.h ${NIHCLINCDIR}/Object.h
  102. DoubleVec.o: BitVec.h IntVec.h
  103. DoubleVec.o: ${NIHCLINCDIR}/nihclIO.h ${NIHCLINCDIR}/OIO.h ${NIHCLINCDIR}/OIOfd.h
  104. DoubleVect.o: DoubleVec.h Vector.h ${NIHCLINCDIR}/Object.h
  105. DoubleVect.o: BitVec.h IntVec.h FloatVec.h
  106. DoubleVect.o: ${NIHCLINCDIR}/nihclconfig.h
  107. DoubleVect.o: ${NIHCLINCDIR}/nihclIO.h ${NIHCLINCDIR}/OIO.h
  108. DoubleVect.o: ${NIHCLINCDIR}/OIOfd.h
  109. FloatVec.o: FloatVec.h Vector.h ${NIHCLINCDIR}/Object.h
  110. FloatVec.o: BitVec.h IntVec.h
  111. FloatVec.o: ${NIHCLINCDIR}/nihclIO.h ${NIHCLINCDIR}/OIO.h ${NIHCLINCDIR}/OIOfd.h
  112. FloatVect.o: FloatVec.h Vector.h ${NIHCLINCDIR}/Object.h
  113. FloatVect.o: BitVec.h IntVec.h DoubleVec.h
  114. FloatVect.o: ${NIHCLINCDIR}/nihclconfig.h
  115. IntVec.o: IntVec.h Vector.h ${NIHCLINCDIR}/Object.h
  116. IntVec.o: BitVec.h ${NIHCLINCDIR}/nihclIO.h ${NIHCLINCDIR}/OIO.h ${NIHCLINCDIR}/OIOfd.h
  117. IntVect.o: IntVec.h Vector.h ${NIHCLINCDIR}/Object.h
  118. IntVect.o: BitVec.h ${NIHCLINCDIR}/nihclconfig.h
  119. IntVect.o: ${NIHCLINCDIR}/nihclIO.h ${NIHCLINCDIR}/OIO.h
  120. IntVect.o: ${NIHCLINCDIR}/OIOfd.h
  121. LongVec.o: LongVec.h Vector.h ${NIHCLINCDIR}/Object.h
  122. LongVec.o: BitVec.h IntVec.h ${NIHCLINCDIR}/nihclIO.h ${NIHCLINCDIR}/OIO.h ${NIHCLINCDIR}/OIOfd.h
  123. LongVect.o: LongVec.h Vector.h ${NIHCLINCDIR}/Object.h
  124. LongVect.o: BitVec.h IntVec.h
  125. LongVect.o: ${NIHCLINCDIR}/nihclconfig.h
  126. LongVect.o: ${NIHCLINCDIR}/nihclIO.h ${NIHCLINCDIR}/OIO.h
  127. LongVect.o: ${NIHCLINCDIR}/OIOfd.h
  128. ShortVec.o: ShortVec.h Vector.h ${NIHCLINCDIR}/Object.h
  129. ShortVec.o: BitVec.h IntVec.h
  130. ShortVec.o: ${NIHCLINCDIR}/nihclIO.h ${NIHCLINCDIR}/OIO.h ${NIHCLINCDIR}/OIOfd.h
  131. ShortVect.o: ShortVec.h Vector.h ${NIHCLINCDIR}/Object.h
  132. ShortVect.o: BitVec.h IntVec.h
  133. ShortVect.o: ${NIHCLINCDIR}/nihclconfig.h
  134. ShortVect.o: ${NIHCLINCDIR}/nihclIO.h ${NIHCLINCDIR}/OIO.h
  135. ShortVect.o: ${NIHCLINCDIR}/OIOfd.h
  136. Vector.o: Vector.h ${NIHCLINCDIR}/Object.h
  137. Vector.o: ${NIHCLINCDIR}/nihclIO.h ${NIHCLINCDIR}/OIO.h ${NIHCLINCDIR}/OIOfd.h
  138.