makefiles

Matej Pfajfar badbytes at freehaven.net
Tue Jul 23 07:11:36 UTC 2002


Bruce (or anyone else),

Would you mind giving me some pointers as to how to correctly integrate 
test units into the makefiles (the make check).

Take the test_onion.c for example (in src/or).
It needs to be linked with all *.o files in that dir - this is fine. But 
it also needs a recompilation of main.c - the reason is that gcc needs to 
be called with -DTEST_PROGRAM to skip the main() function. How do I make 
the damn thing recompile even if it is up to date?

Thanks,
Mat
-- 
Matej Pfajfar

GPG Public Keys @ http://matejpfajfar.co.uk/keys




More information about the tor-dev mailing list