RSS Git Download  Clone
Raw Blame History
################################################################################
#	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 -lqwt

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		+= BQwtPlot.o BQwtPlot.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		+= Config.o
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)

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 $(PROGS)

include Makefile.depend