################################################################################ # Makefile # T.Barnaby, BEAM Ltd, 2007-02-13 ################################################################################ # .SUFFIXES: .mo .ui .h.mo: $(MOC) -o $@.cpp $< $(CXX) $(CXXFLAGS) -c -o $@ $@.cpp TOP = $(shell pwd)/.. include ${TOP}/Makefile.config DEBUGFLAGS = -O2 -g -pg MOC = $(QTDIR)/bin/moc CXXFLAGS += -I/usr/lib/qt-3.3/include LDLIBS := -lTms $(LDLIBS) LDLIBSGUI = -L/usr/lib/qt-3.3/lib -lqt-mt PROGS = tmsControl tmsControlGui OBJS = tmsControl.o OBJSGUI = tmsControlGui.o OBJSGUI += Control.o Control.mo OBJSGUI += Gui.o Gui.mo OBJSGUI += AppGui.o AppGui.mo OBJSGUI += tmsControlMainWin.o tmsControlMainWin.mo OBJSGUI += ConfigureWin.o ConfigureWin.mo OBJSGUI += StatusWin.o StatusWin.mo OBJSGUI += TestWin.o TestWin.mo OBJSGUI += BQComboBox.o BQComboBox.mo OBJSGUI += ControlDataWin.o ControlDataWin.mo OBJSGUI += PupeDiagnosticsWin.o PupeDiagnosticsWin.mo OBJSGUI += StatisticsWin.o StatisticsWin.mo OBJSGUI += OptionsWin.o OptionsWin.mo OBJSGUI += PupeSimulateWin.o PupeSimulateWin.mo OBJSGUI += PhaseTableWin.o PhaseTableWin.mo OBJSGUI += Config.o OBJSGUI += Debug.o OBJSGUI += BGraph.o BGraph.mo OBJSGUI += BGraphControls.o BGraphControls.mo OBJSGUI += Globals.o # General all: ${PROGS} install: all mkdir -p ${BINDIR} cp ${PROGS} ${BINDIR} mkdir -p $(DESKTOPDIR) cp tmsControlGui.desktop $(DESKTOPDIR) mkdir -p $(ICONSDIR) cp tmsControlGui.png $(ICONSDIR) depend: makedepend -fMakefile.depend $(DFLAGS) *.cpp *.cc 2> /dev/null tmsControlGui: $(HUIC) $(OBJSGUI) $(CXX) $(LDFLAGS) -o tmsControlGui $(OBJSGUI) $(LDLIBS) $(LDLIBSGUI) tmsControl: $(HUIC) $(OBJS) $(CXX) $(LDFLAGS) -o tmsControl $(OBJS) $(LDLIBS) clean: rm -f *.o *.a *.so *.mo *.mo.cpp data.txt pupeSource?.txt $(PROGS) # Tests bgraph: BGraph1.cpp BGraph1.mo $(CXX) $(CXXFLAGS) -DDEBUG_MAIN -c -o BGraph1.o BGraph1.cpp $(CXX) $(LDFLAGS) -o bgraph BGraph1.o BGraph1.mo $(LDLIBS) $(LDLIBSGUI) include Makefile.depend