15 gSystem->Load(
"libGui");
16 Bool_t UNIX = strcmp(gSystem->GetName(),
"Unix") == 0;
17 Int_t st1 = gSystem->Load(
"$(ROOTSYS)/test/Aclock");
19 printf(
"===>The macro games will try to build the Aclock library\n");
21 gSystem->Exec(
"(cd $ROOTSYS/test; make Aclock)");
23 gSystem->Exec(
"(cd %ROOTSYS%\\test && nmake -f Makefile.win32 Aclock.dll)");
25 st1 = gSystem->Load(
"$(ROOTSYS)/test/Aclock");
27 Int_t st2 = gSystem->Load(
"$(ROOTSYS)/test/Hello");
29 printf(
"===>The macro games will try to build the Hello library\n");
31 gSystem->Exec(
"(cd $ROOTSYS/test; make Hello)");
33 gSystem->Exec(
"(cd %ROOTSYS%\\test && nmake -f Makefile.win32 Hello.dll)");
35 st2 = gSystem->Load(
"$(ROOTSYS)/test/Hello");
37 Int_t st3 = gSystem->Load(
"$(ROOTSYS)/test/Tetris");
40 printf(
"===>The macro games will try to build the Tetris library\n");
41 gSystem->Exec(
"(cd $ROOTSYS/test; make Tetris)");
43 gSystem->Exec(
"(cd %ROOTSYS%\\test && nmake -f Makefile.win32 Tetris.dll)");
45 st3 = gSystem->Load(
"$(ROOTSYS)/test/Tetris");
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");
52 gROOT->ProcessLine(
"#include \"games.C\"");
53 gROOT->ProcessLine(
"rungames()");
54 gROOT->ProcessLine(
"#undef __RUN_GAMES__");
66 Hello *hello =
new Hello();
69 Aclock *clock =
new Aclock();
72 Tetris *tetris =
new Tetris();