INCLUDES = -I/atlas/daq/daq-1/installed/include INCLUDES += -I/atlas/daq/daq-1/installed/i686-rh72-gcc295/include JINCLUDES = -i /atlas/daq/daq-1/installed/include #INCLUDES += -I/atlas/daq/test/include LIBS = -L/atlas/daq/daq-1/installed/i686-rh72-gcc295/lib -lcmdline -loh -lis -lipc -lilu-c++ -lilu -lowl \ -lHist -lCore -lMatrix -lCint -lHistPainter -lX3d \ -lGX11 -lGui -lGraf -lGraf3d -lGpad ROOTCFLAGS := $(shell root-config --cflags) ROOTLIBS := $(shell root-config --libs) ROOTGLIBS := $(shell root-config --glibs) CXXFLAGS = -g -fPIC -D_GNU_SOURCE $(INCLUDES) $(ROOTCFLAGS) #CXXFLAGS = -g -ansi $(INCLUDES) LIBS += $(ROOTLIBS) all: helloworld_server helloworld_client jsrc/sct/test_client.class @echo "To run the java class, make sure ./jsrc is in the classpath then type: java -Dipc.ref.file=$IPC_REF_FILE sct.test_client" helloworld_server: helloworld.cpp sct-server-stubs.cc sct.cc gcc $(CXXFLAGS) $(LIBS) -o helloworld_server helloworld.cpp sct-server-stubs.cc sct.cc helloworld_client: helloworld_client.cpp sct.cc gcc $(CXXFLAGS) $(LIBS) -o helloworld_client helloworld_client.cpp sct.cc sct-server-stubs.cc: c++-stubber ./helloworld.idl sct.cc: helloworld.idl c++-stubber ./helloworld.idl jsrc/sct/%.class: jsrc/sct/*.java jsrc/sct/helloworld.java cd jsrc/sct; javac *.java jsrc/sct/helloworld.java: helloworld.idl idlj -fclient -td jsrc $(JINCLUDES) helloworld.idl