-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there
i want to build a library and a testing program in one and the same directory (script below) now what i want is, that the lib is build by default, but the Program only when i specially invoke it with 'make example' is there a way to do this easily (with targets), or do i have to make a conditional, and move the binary-build into another directory thanks in advance for any suggestions Benjamin noinst_LIBRARIES = libORXscript.a libORXscript_a_SOURCES = \ script.cc\ script_manager.cc AM_CPPFLAGS= @LUA_INCLUDES@ noinst_HEADERS = \ lunar.h\ script.h\ script_manager.h bin_PROGRAMS = example example_SOURCES= \ example.cc example_LDADD = libORXscript.a -L../../../extern_libs @LUA_LIBS@ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iQIVAwUBRIBd0q3dUaw0Ln2OAQIyEg/+O+OKzneYfqhkiLkLgAkIFZjwn33euGi1 rSYvCCKpHhEpErcHtdRYpCxbfNL+z3GBmTmEBjk9r+Fp11afSPRp5tpT6vrJESDJ xloJ0AaPHzc3pDZqBU4gSWkmh/a3/NkuKmw7ytBM4sXeIXhC3jvTvjOdLmu6Ef6y yQjnmmj1hpov7FXXFUIN1NywewVteVgUnsN+/Y22wduaIMlvy5Q3SI6jc43ReGuq rEgOoEoKGkbvBi7JsCgt8lBxiWk0ryqpXPzJmBGEpFP6GD8LF23U2jCbEWH/pVE+ zXzBhSDbKeSAKM/ZCWG4ZLE0c2kfo4hbtVtDfdACQAlHTYNtE6rpJkOwRhzm4Jw4 tbh89OYyZpGGwOcbnjxjOLhjug0I97LVK7RS4x+MiLjqQObOGPG+r6G0ux9RsDvc dQvMQ6/5PLzUkH5xn2cvlS0ZnMgjD0pe70B+uDcgOXm+vnbdewzUit86uHI2rIGz ZlqtotuodiiaRUInq+dee+TwIhSx79L9uXTnB+uxDEeaHxM0YRacRCHGXhf6MAtJ 76CMfqWwmVRV8KU9rIyEfnjaAFJ8NapN+nsCQMGiZNWASjuAaXSqaQMC0/55/JXe xBjJeAMTOTV9YL6smuadHphW6/CeTOQ6keXGJUhVcRYFcm47Cg+D6ck8mKnMDelu pBngsKeeb08= =d/cK -----END PGP SIGNATURE-----