# Makefile for MyGui. # shell: make -f MakeFile4MyGui # include Makefile.arch from /root/test/ include Makefile.arch #------------------------------------------------------------------------------ LPATH = . MYLIB = -L$(LPATH) -lMyProgress #------------------------------------------------------------------------------ GUIO = MyGui.$(ObjSuf) MyGuiDict.$(ObjSuf) GUIS = MyGui.$(SrcSuf) MyGuiDict.$(SrcSuf) GUI = MyGui(ExeSuf) OBJS = $(GUIO) PROGRAMS = $(GUI) #------------------------------------------------------------------------------ .SUFFIXES: .$(SrcSuf) .$(ObjSuf) .$(DllSuf) all: $(PROGRAMS) $(GUI): $(GUIO) ifeq ($(HASTHREAD),yes) ifeq ($(PLATFORM),win32) $(LD) $(LDFLAGS) $^ $(MYLIB) $(LIBS) ../lib/libThread.lib $(OutPutOpt)$@ else $(LD) $(LDFLAGS) $^ $(MYLIB) $(LIBS) -lThread $(OutPutOpt)$@ endif @echo "$@ done" else @echo "This version of ROOT has no thread support, $@ not built" endif clean: @rm -f $(OBJS) core distclean: clean @rm -f $(PROGRAMS) $(GUIO) *Dict.* *.def *.exp \ *.root *.ps *.so .def so_locations .SUFFIXES: .$(SrcSuf) ### MyGui.$(ObjSuf): MyGui.h MyGuiDict.$(SrcSuf): MyGui.h MyGuiLinkDef.h @echo "Generating dictionary $@..." @rootcint -f $@ -c $^ .$(SrcSuf).$(ObjSuf): $(CXX) $(CXXFLAGS) -c $<