🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1646

GCC and libraries

#1646
From: Mitchell Troy, (714) 856-8280
Date: Sat, 23 Jan 1993 02:45
20 lines
1075 bytes
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
Technical Details
Message-ID: <930122104133.153@OPTICS.PS.UCI.EDU>
Path: arc1-ca.pugleaf.net!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

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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>