🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #7723

Make for multiple architectures in same directory tree

#7723
From: Joe Van Andel
Date: Fri, 10 May 1991 13:03
27 lines
1579 bytes
I need to restructure some makefiles to allow me to build both Sun3 and
Sun4 (SPARC) objects.  Naturally, I don't want to have to type 'make
clean' everytime I work on this software, so I want to keep both sets of
objects around.  What I'd like is a relatively simple scheme to keep my
objects in subdirectories of the source directory.  E.g.:

	src/lib/foo/
		   abc.c
		   xyz.c
		   sun3/abc.o
                        xyz.o
		   sun4/abc.o
                        xyz.o

I'd prefer not to have to keep parallel source trees, built with links.  I
probably could use 'TFS', but I'd prefer not to, since it gets too
confusing.  I'd be happiest to use Sun's standard 'make', but if "gnumake"
has features that would help me solve this problem,  I'd switch.

Any suggestions?  I'll sumarize any responses.

Thanks much.

	Joseph VanAndel  		Internet:vanandel@ncar.ucar.edu
	NCAR  Mail Stop MAR
	P.O Box 3000		Fax:	 303-497-2044
	Boulder, CO 80307-3000	Voice:	 303-497-2071 
Technical Details
Message-ID: <2794@brchh104.bnr.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request
From: vanandel@ncar.ucar.edu (Joe Van Andel)
Newsgroups: comp.sys.sun
Subject: Make for multiple architectures in same directory tree
Keywords: Miscellaneous
Message-ID: <2794@brchh104.bnr.ca>
Date: 10 May 91 13:03:00 GMT
Sender: news@brchh104.bnr.ca
Organization: Sun-Spots
Lines: 28
Approved: Sun-Spots@rice.edu
X-Original-Date: 30 Apr 91 21:10:55 GMT
X-Sun-Spots-Digest: Volume 10, Issue 100, message 2
X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu