home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / gcc / bug / 3237 < prev    next >
Encoding:
Text File  |  1993-01-23  |  1.0 KB  |  34 lines

  1. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!optics.ps.uci.edu!MTROY
  2. From: MTROY@optics.ps.uci.edu (Mitchell Troy, (714) 856-8280)
  3. Newsgroups: gnu.gcc.bug
  4. Subject: GCC and libraries
  5. Date: 22 Jan 1993 21:45:03 -0500
  6. Organization: GNUs Not Usenet
  7. Lines: 21
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-gcc@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <930122104133.153@OPTICS.PS.UCI.EDU>
  12.  
  13. I am not sure if this is the correct place to post this or not.  We are
  14. using gcc Version 2.3.2 on a SUN 330.  We are trying to create a library out
  15. of a group of c porgrams.  In the past we have used the following makefile,
  16. however, it usses cc to compile the programs.  How do we make it use gcc or
  17. is there a different type of makefile we should be using?
  18.  
  19. CFLAGS = -g
  20.  
  21. nrlib.a: nrlib.a(    nrutil.o    )
  22.     ar rv $@ $?
  23.     ranlib $@
  24.  
  25. nrlib.a(%.o): %.o
  26.     @true
  27.  
  28. Here ntutil.c is the routine and nrlib.a is the library
  29.  
  30.                     Thanks,
  31.                     Mitchell Troy
  32.                     (714) 476-0800
  33.  
  34.