home *** CD-ROM | disk | FTP | other *** search
- 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
- From: MTROY@optics.ps.uci.edu (Mitchell Troy, (714) 856-8280)
- Newsgroups: gnu.gcc.bug
- Subject: GCC and libraries
- Date: 22 Jan 1993 21:45:03 -0500
- Organization: GNUs Not Usenet
- Lines: 21
- Sender: daemon@cis.ohio-state.edu
- Approved: bug-gcc@prep.ai.mit.edu
- Distribution: gnu
- Message-ID: <930122104133.153@OPTICS.PS.UCI.EDU>
-
- I am not sure if this is the correct place to post this or not. We are
- using gcc Version 2.3.2 on a SUN 330. We are trying to create a library out
- of a group of c porgrams. In the past we have used the following makefile,
- however, it usses cc to compile the programs. How do we make it use gcc or
- is there a different type of makefile we should be using?
-
- CFLAGS = -g
-
- nrlib.a: nrlib.a( nrutil.o )
- ar rv $@ $?
- ranlib $@
-
- nrlib.a(%.o): %.o
- @true
-
- Here ntutil.c is the routine and nrlib.a is the library
-
- Thanks,
- Mitchell Troy
- (714) 476-0800
-
-