################################################################################ # Makefile # T.Barnaby, BEAM Ltd, 2007-02-13 ################################################################################ # TOP = ../.. include ../Config.mk .SUFFIXES: .mo .ui .h.mo: $(MOC) -o $@.cpp $< $(CXX) $(CXXFLAGS) -c -o $@ $@.cpp #DEBUGFLAGS = -O2 -g -pg DEBUGFLAGS = -O2 -g MOC = $(QTDIR)/bin/moc CXXFLAGS += -I$(QTDIR)/include LDLIBS := -lTms -lfftw3 $(LDLIBS) LDLIBSGUI = -L$(QTDIR)/lib -lqt-mt PROGS = tmsStateGui OBJSGUI = main.o OBJSGUI += Control.o Control.mo OBJSGUI += Gui.o Gui.mo OBJSGUI += AppGui.o AppGui.mo OBJSGUI += TmsStateMainWin.o TmsStateMainWin.mo OBJSGUI += TmsStateGui.o TmsStateGui.mo OBJSGUI += BGraph.o BGraph.mo OBJSGUI += Debug.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) tmsStateGui: $(HUIC) $(OBJSGUI) $(CXX) $(LDFLAGS) -o tmsStateGui $(OBJSGUI) $(LDLIBS) $(LDLIBSGUI) 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) # Dependancies -include $(OBJS:.o=.d)