[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

makefiles



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