Hello,
I am using LabWindows/CVI under Win NT4.0.
I would like to know if it is possible to create multiple executables from
one main project using a serie of command lines like:
gcc -Dtest1 -o -test1
gcc -Dtest1 -o -test1
So far I have a bench of c-test programs( .c , .lib,.dll) where each test
is in
a different project, and calls libraries and other c-files.
and where all the projects have the same GUI (.uir).
Therefore I would like to have ONE BIG poject (ie.MYTESTs.prj) which
contains the common gui.uir, a main.c all the c-test programs and libs.
In 'main.c' I will have the following:
#ifdef test1
#include test1.h
#include test1.c
#endif
#ifdef test2
#include test2.h
#include test2.c
etc...
where test1.h, test1.
c, test2.h , etc are the different test programs
that will be called at the compilation time and where the executables
will be created by using the command lines.
(gcc main.c -Dtest1 -o test1
gcc main.c -Dtest2 -o test2)
This would allow me to choose the test to run from my main project.
and could create the executable of the chosen test from the main project.
Is this possible ?
I would appreciate if anyone could help me with this or offer me
any suggestions.
cheers
Geraldine