# # MAKEFILE: # # Where the OMERO distribution was installed OMERO_DIST?=/omero-4.0/dist # Where the Ice lib/ and include/ directories are to be found ICE_HOME?=/Users/mvalle/Ice-3.3.0/cpp INCLUDES=-I$(OMERO_DIST)/include -I$(ICE_HOME)/include -I. LIBS=-L$(OMERO_DIST)/lib -L$(ICE_HOME)/lib \ -lIce -lIceUtil -lGlacier2 -lomero_client -lstdc++ LIBPATH=$(DYLD_LIBRARY_PATH):$(ICE_HOME)/lib:$(OMERO_DIST)/lib .PHONY: clean run all: client client.o: client.cpp $(CXX) $(CXXFLAGS) -c -o $@ $< $(INCLUDES) client: client.o $(CXX) -o $@ $^ $(LIBS) projects.o: projects.cpp TreeList/AllProjects.h TreeList/PrintProjects.h TreeList/Usage.h $(CXX) $(CXXFLAGS) -c -o $@ $< $(INCLUDES) projects: projects.o $(CXX) -o $@ $^ $(LIBS) run: client DYLD_LIBRARY_PATH="$(LIBPATH)" ./client --Ice.Config=/omero-4.0/dist/etc/ice.config $G run1: client DYLD_LIBRARY_PATH="$(LIBPATH)" ./client --Ice.Config=/omero-4.0/dist/etc/ice.config --omero.dump=1 $G clean: rm -f client projects *.o *~ core