19 printf(
"===>The macro games will try to build the Aclock library\n");
23 gSystem->
Exec(
"(cd %ROOTSYS%\\test && nmake -f Makefile.win32 Aclock.dll)");
29 printf(
"===>The macro games will try to build the Hello library\n");
33 gSystem->
Exec(
"(cd %ROOTSYS%\\test && nmake -f Makefile.win32 Hello.dll)");
40 printf(
"===>The macro games will try to build the Tetris library\n");
43 gSystem->
Exec(
"(cd %ROOTSYS%\\test && nmake -f Makefile.win32 Tetris.dll)");
47 if (st1 || st2 || st3) {
48 printf(
"ERROR: one of the shared libs in $ROOTSYS/test didn't load properly\n");
51 gROOT->ProcessLine(
"#define __RUN_GAMES__ 1");
54 gROOT->ProcessLine(
"#include \"Hello.h\"");
55 gROOT->ProcessLine(
"#include \"Aclock.h\"");
56 gROOT->ProcessLine(
"#include \"Tetris.h\"");
58 gROOT->ProcessLine(
"#include \"games.C\"");
59 gROOT->ProcessLine(
"rungames()");
60 gROOT->ProcessLine(
"#undef __RUN_GAMES__");
72 Hello *
hello =
new Hello();
75 Aclock *clock =
new Aclock();
78 Tetris *tetris =
new Tetris();
std::string hello(std::string who, std::string msg)
R__EXTERN TSystem * gSystem
virtual const char * GetName() const
Returns name of object.
virtual Int_t Exec(const char *shellcmd)
Execute a command.
virtual int Load(const char *module, const char *entry="", Bool_t system=kFALSE)
Load a shared library.