Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #8180

Re: Incremental build systems, infamake

From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.lang.c++, comp.software.config-mgmt
Subject Re: Incremental build systems, infamake
Date 2011-07-25 21:55 +1200
Message-ID <994ssaFkjtU1@mid.individual.net> (permalink)
References <704e6777-f646-4040-a70a-f7f0c158b92f@a15g2000yqk.googlegroups.com> <994plqFkjuU6@mid.individual.net> <d5038770-8677-4a16-b3ec-4ffff7f6b6c9@m6g2000prh.googlegroups.com> <994rjoFkjuU7@mid.individual.net> <041c04ac-e74a-4674-ba39-fe794b5c1d89@u6g2000prc.googlegroups.com>

Cross-posted to 2 groups.

Show all headers | View raw


On 07/25/11 09:38 PM, Joshua Maurice wrote:
> On Jul 25, 2:33 am, Ian Collins<ian-n...@hotmail.com>  wrote:
>> On 07/25/11 09:11 PM, Joshua Maurice wrote:
>>
>>> It will? I admit - if you hack the bejesus out of it as compared to
>>> traditional solutions you find online, such as the Recursive Make
>>> Considered Harmful solution, then yes. I would be greatly surprised if
>>> anyone but a remote fraction of actual build systems in use would
>>> actually do a recompile of an object file if you added a new header
>>> file which hid a previously included header file on the include path.
>>
>> Well Sun (d)make certainly does.
>>
>> If I have a rule
>>
>> x.o: x.cc
>>          CC x.cc -o x -I b -I a
>>
>> and a header in a, adding a header with the same name to b will trigger
>> a rebuild.
>
> Well, apparently I must do some more learning. I am surprised. I
> wonder exactly what sort of hackery is done here. This is kind of what
> I want. It would be nice if it had already been done. I will comment
> later...

It's very simple, dmake keeps a state file (if asked).  In this case, 
the contents are:

.MAKE_VERSION:	VERSION-1.0
.BUILT_LAST_MAKE_RUN:
x.o:	a/x.h /lib/libc.so /lib/libm.so /opt/studio/lib/libCrun.so 
/opt/studio/lib/libCstd.so
	CC x.cc -o x -I b -I a

So it knows a/x.h was used in the last build and it knows the compiler 
options and libraries used.

-- 
Ian Collins

Back to comp.lang.c++ | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Incremental build systems, infamake Joshua Maurice <joshuamaurice@gmail.com> - 2011-07-25 00:25 -0700
  Re: Incremental build systems, infamake Ian Collins <ian-news@hotmail.com> - 2011-07-25 21:00 +1200
    Re: Incremental build systems, infamake Joshua Maurice <joshuamaurice@gmail.com> - 2011-07-25 02:11 -0700
      Re: Incremental build systems, infamake Ian Collins <ian-news@hotmail.com> - 2011-07-25 21:33 +1200
        Re: Incremental build systems, infamake Joshua Maurice <joshuamaurice@gmail.com> - 2011-07-25 02:38 -0700
          Re: Incremental build systems, infamake Ian Collins <ian-news@hotmail.com> - 2011-07-25 21:55 +1200
          Re: Incremental build systems, infamake Joshua Maurice <joshuamaurice@gmail.com> - 2011-07-25 03:04 -0700
            Re: Incremental build systems, infamake Ian Collins <ian-news@hotmail.com> - 2011-07-25 22:22 +1200
              Re: Incremental build systems, infamake Joshua Maurice <joshuamaurice@gmail.com> - 2011-07-25 03:25 -0700
                Re: Incremental build systems, infamake Ian Collins <ian-news@hotmail.com> - 2011-07-25 23:41 +1200
            Re: Incremental build systems, infamake Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-07-26 16:11 +0000
              Re: Incremental build systems, infamake Joshua Maurice <joshuamaurice@gmail.com> - 2011-07-26 15:19 -0700
                Re: Incremental build systems, infamake Joshua Maurice <joshuamaurice@gmail.com> - 2011-07-26 15:28 -0700
                Re: Incremental build systems, infamake Joshua Maurice <joshuamaurice@gmail.com> - 2011-07-26 15:49 -0700
  Re: Incremental build systems, infamake Nobody <nobody@nowhere.com> - 2011-07-25 12:52 +0100
    Re: Incremental build systems, infamake Joshua Maurice <joshuamaurice@gmail.com> - 2011-07-25 13:34 -0700
      Re: Incremental build systems, infamake Nobody <nobody@nowhere.com> - 2011-07-27 19:49 +0100
        Re: Incremental build systems, infamake Joshua Maurice <joshuamaurice@gmail.com> - 2011-07-29 03:58 -0700
  Re: Incremental build systems, infamake Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-07-26 15:04 +0000

csiph-web