Something like this, GNU make assumed:
dependencies:
$(CC) $(CFLAGS) -MM -MG \
`find . '(' -name '*.c' -o -name '*.cpp' -o -name '*.S' ')' -print -o
-name ignore_this -prune` \
| sed -e '[EMAIL PROTECTED] :]*: *\([^ ]*/\)[^ /[EMAIL PROTECTED]&@' \
| sed -e '[EMAIL PROTECTED](VPATH)/\([^ :]*\):@\1:@' \
>dependencies
Makefile: dependencies
depend:
@rm -f dependencies && $(MAKE) dependencies
include dependencies
(Untested on HL2, but should work with minimal changes.)
--
Peter Bortas http://peter.bortas.org
"Alfred Reynolds" <[EMAIL PROTECTED]> writes:
> Ahh, technically correct, the best kind ;-) Yup, I should have said
> make. A program like "ctags" could do this for you (once you integrate
> it into the makefile) but I typically just do a full rebuild each time
> for linux.
>
> -Alfred
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Luke Graham
> Sent: Tuesday, March 01, 2005 8:41 PM
> To: [email protected]
> Subject: Re: [hlcoders] "Pure Virtual method called" server crash
>
> On Tue, 1 Mar 2005 20:21:25 -0800, Alfred Reynolds
> <[EMAIL PROTECTED]> wrote:
>> Do a full rebuild (i.e delete the obj/ dir), GCC doesn't track header
>> changes well (or at all actually).
>
> Just being pedantic, but gcc doesnt track changes, make does.
>
>> - Alfred
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of Matthew
>> Lewis
>> Sent: Tuesday, March 01, 2005 7:18 PM
>> To: [email protected]
>> Subject: [hlcoders] "Pure Virtual method called" server crash
>>
>> I installed all the patches from the latest SDK and recompiled on my
>> linux system. Now when I start the linux server it instantly crashes
>> with the error "Pure virtual method called... teminate called without
>> active exception". The core file shows the the error is occuring when
>> the InvokeMethod function is executed
>> (game_shared/igamesystem.cpp::264):
>>
>> void IGameSystem::PreClientUpdateAllSystems()
>> {
>> InvokeMethod( &IGameSystem::PreClientUpdate ); }
>>
>> The linux server was working prior to the latest SDK update. Any
> ideas?
>>
>> (RH8.0-2.4.28/gcc-3.4.3)
>>
>> --
>> No virus found in this outgoing message.
>> Checked by AVG Anti-Virus.
>> Version: 7.0.300 / Virus Database: 266.5.2 - Release Date: 2/28/2005
>>
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or view the list archives,
>
>> please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>>
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>>
>>
>
>
> --
> spooq
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders