ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl6-Porters
perl6-Porters
Re: Better mousetrap ^W Makefile
by Jarkko Hietaniemi other posts by this author
Apr 30 2000 10:57PM messages near this date
Re: Better mousetrap ^W Makefile | Re: Better mousetrap ^W Makefile
>  I think we'll still want to keep a minimal makefile around for the
 >  very very first steps required to build microperl.  Then we're off!
 
 Yeah, something of the below complexity, and nothing much more.
 (No guarantees on the syntax, I'm making this up as I write :-)
 
 O   = .o
 C   = .c
 SRC = a$(C) b$(C) c$(C) d$(C)
 OBJ = $(SRC:$(C)=$(O))
 
 a$(O): a$(C) a.h
 b$(O): b$(C) b.h a.h
 c$(O): c$(C) c.h x.h
 d$(O): d$(C) d.h a.h x.h
 main$(O): main$(C)
 
 microperl: $(OBJ) main$(O)
 	$(CC) -o $@ main$(O) $(OBJ) 
 
 And, of course, even the above is unportable: -o.  We still need Win*
 and VMS makefiles to cater their compilers' syntaxes, at least -- unless
 we still are assuming gcc.
 
 >  > ... not even to spit at the general direction of GNU
 >  > configure/automake [...]
 >  
 >  I shall waste none of my precious bodily fluids in so foolish an
 >  endeavor.  The GNU build tools are, by and large, awful.  GNU make
 >  is pretty good, but the rest are recycling fodder.
 
 *clap*clap*
 
 >  > And yes, I would make building out of the source directory a
 >  > requirement.
 >  
 >  You mean, 'building outside of the source dir'?  If so, three cheers.
 
 Yes.
 
 -- 
 $jhi++; # http://www.iki.fi/jhi/
         # There is this special biologist word we use for 'stable'.
         # It is 'dead'. -- Jack Cohen
Thread:
Chip Salzenberg
John Tobey
Chip Salzenberg
John Tobey
Chip Salzenberg
Chip Salzenberg
Bennett Todd
Joshua N Pritikin
Mark Hollomon
Jarkko Hietaniemi
Chip Salzenberg
Jarkko Hietaniemi
Jarkko Hietaniemi
John Tobey
Chip Salzenberg
Damien Neil
Benjamin Holzman
Chip Salzenberg
Chip Salzenberg
Benjamin Holzman
Chip Salzenberg
Benjamin Holzman
Chip Salzenberg

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved