Makefile 1.88 KB
Newer Older
1 2 3 4 5 6
####
#
# /*! 
# * \brief Makefile for the ViTE interface. Commands are : \
# * make all : compiles the released version.
# * make debugs : compiles with debug informations.
7
# * make mtest : compiles the tests.
8 9 10 11 12
# * make clean : deletes generated files.
# */
#
###

13 14


15
all:
16
	cd ./src && qmake-qt4 && make all
17 18 19
	@echo " "
	@echo "Compilation completed! (release)"
	@echo " "
20

21 22 23 24 25 26 27
doc:
	doxygen Doxyfile
	@echo " "
	@echo "Documentation generated successfully !"
	@echo "Please open index.html in 'html' folder for a web documentation, or use 'make' in the 'latex' folder for a pdf documentation."
	@echo " "

28

29 30 31 32 33
#build:
#	cd ./src && qmake-qt4 -project "TARGET += vite" "RESOURCES= vite.qrc" "SOURCES+=../../main.cpp" "OBJECTS_DIR=../bin" "DESTDIR=../../bin" "CONFIG+=uitools" "QT+=opengl" && qmake-qt4 -makefile -o Makefile  src.pro && make all 
#	@echo " "
#	@echo "Built and compiled! (release)"
#	@echo " "
34 35


36 37 38 39 40 41
plugins:
	cd ./plugin && qmake-qt4 && make
	@echo " "
	@echo "Plugins are built and installed ! Please manually install it ('libplugin.so') from 'plugin' folder to the qtdesigner plugin folder ('/usr/lib/qt4/plugins/designer' on linux) (plugin)"
	@echo " "

42

43 44


45 46 47 48 49 50
#debugs:
	#cd ./src && qmake-qt4 -project && qmake-qt4 -makefile -o Makefile  "RESOURCES= vite.qrc" "OBJECTS_DIR=../debug" "CONFIG+=uitools debug console" "QT+=opengl" "DESTDIR = ../debug" src.pro && make all
	#mv src/*.o bin/
	#@echo " "
	#@echo "Compilation completed! (debug)"
	#@echo " "
51

52

53
mtest:
54
	make -C test
55 56 57
	@echo " "
	@echo "Compilation completed! (test)"
	@echo " "
58

59
clean:
60
	make -i -f Makefile wash # The washing is launched to ignore errors. 
61 62 63 64
	@echo " "
	@echo "Cleaned!"
	@echo " "

65 66 67

# Must be called with option -i, otherwise an error occured in the first instructions, the followings won't be executed.
wash: 
68
	cd ./src && $(RM) *~ *.o Makefile qrc_vite.cpp core
69
	cd ./test && $(RM) *~ *.o Makefile core
70 71
	cd ./bin && $(RM) *.o
	cd ./debug && $(RM) *