makefile changed

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@114 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
bergamaschi 2012-11-21 09:01:33 +00:00
parent 832287af9e
commit 29a9678d3b
2 changed files with 37 additions and 21 deletions

View File

@ -1,18 +1,29 @@
PROG= bin/slsDetectorGui
PROG= $(DESTDIR)/slsDetectorGui
DIR= $(shell ls src/* slsDetectorPlotting/include/* slsDetectorPlotting/src/* include/* forms/include/*) DIR= $(shell ls src/* slsDetectorPlotting/include/* slsDetectorPlotting/src/* include/* forms/include/*)
DESTDIR?=bin
DOCDIR?=docs
LIBDIR?=../slsDetectorSoftware
all: $(PROG) all: $(PROG) Makefile.gui
clean: clean:
if test -e Makefile.gui; then make -f Makefile.gui clean; make -f Makefile.gui mocclean; rm Makefile.gui; else make Makefile.gui; make -f Makefile.gui clean; make -f Makefile.gui mocclean; fi if test -e Makefile.gui; then make -f Makefile.gui clean; make -f Makefile.gui mocclean; rm Makefile.gui; else make Makefile.gui; make -f Makefile.gui clean; make -f Makefile.gui mocclean; fi
cd manual && make clean
Makefile.gui: slsDetectorGui.pro Makefile.gui: slsDetectorGui.pro
qmake -o Makefile.gui qmake -o Makefile.gui INCLUDES='$(INCLUDES)' DESTDIR=$(DESTDIR)
doc:
cd manual && make DESTDIR=$(DOCDIR)
htmldoc:
cd manual && make html DESTDIR=$(DOCDIR)
$(PROG): Makefile.gui $(DIR) $(PROG): Makefile.gui $(DIR)
make -f Makefile.gui echo $(LDFLAG)
make -f Makefile.gui SLSDETLIB=$(LIBDIR) DESTDIR=$(DESTDIR) SUBLIBS='$(LDFLAG)' INCLUDES='$(INCLUDES)'

View File

@ -1,8 +1,10 @@
DESTDIR = bin
DESTDIR ?= bin
MOC_DIR = mocs MOC_DIR = mocs
OBJECTS_DIR = objs OBJECTS_DIR = objs
UI_HEADERS_DIR = forms/include UI_HEADERS_DIR = forms/include
SLSDETLIB ?=../slsDetectorSoftware
RESOURCES += icons.qrc RESOURCES += icons.qrc
CONFIG += debug CONFIG += debug
@ -18,12 +20,13 @@ documentation.path = /$(DOCPATH)
documentation.files = docs/* documentation.files = docs/*
INSTALLS += target INSTALLS += target
INSTALLS += documentation INSTALLS += documentation
QMAKE_CLEAN += docs/*/* \ QMAKE_CLEAN += docs/*/*
$(DESTDIR)*
LIBS += -Wl,-Bstatic -L../slsDetectorSoftware -lSlsDetector -Wl,-Bdynamic\ #LIBS += -Wl,-Bstatic -L../slsDetectorSoftware -lSlsDetector -Wl,-Bdynamic\
-L$(QWTDIR)/lib -lqwt -L$(QWT3D)/lib # -L$(QWTDIR)/lib -lqwt -L$(QWT3D)/lib
LIBS += -L$(QWTDIR)/lib -lqwt -L$(QWT3D)/lib
DEPENDPATH += \ DEPENDPATH += \
slsDetectorPlotting/include\ slsDetectorPlotting/include\
@ -33,21 +36,23 @@ DEPENDPATH += \
INCLUDEPATH += \ INCLUDEPATH += \
$(shell echo "/lib/modules/`uname -r`/build/include") \
$(QWTDIR)/include\ $(QWTDIR)/include\
$(QWTDIR) \ $(QWTDIR) \
$(QWTDIR)/src\ $(QWTDIR)/src\
$(QWT3D)/include\ $(QWT3D)/include\
slsDetectorPlotting/include\ slsDetectorPlotting/include\
include\ include\
forms/include\ forms/include\
../slsDetectorSoftware/commonFiles\ $(INCLUDES)
../slsDetectorSoftware/MySocketTCP\
../slsDetectorSoftware/slsReceiverInterface\ # $(shell echo "/lib/modules/`uname -r`/build/include") \
../slsDetectorSoftware/slsDetector\ # ../slsDetectorSoftware/commonFiles\
../slsDetectorSoftware/slsDetectorAnalysis\ # ../slsDetectorSoftware/MySocketTCP\
../slsDetectorSoftware/multiSlsDetector\ # ../slsDetectorSoftware/slsReceiverInterface\
../slsDetectorSoftware/usersFunctions # ../slsDetectorSoftware/slsDetector\
# ../slsDetectorSoftware/slsDetectorAnalysis\
# ../slsDetectorSoftware/multiSlsDetector\
# ../slsDetectorSoftware/usersFunctions
SOURCES = \ SOURCES = \
slsDetectorPlotting/src/SlsQt1DPlot.cxx\ slsDetectorPlotting/src/SlsQt1DPlot.cxx\