owlps/Makefile

87 lines
2.4 KiB
Makefile

.PHONY : all libowlps owlps-positioning clean purge help install install-libowlps install-infrastructure-centred install-mobile-centred uninstall uninstall-libowlps uninstall-infrastructure-centred uninstall-mobile-centred
## Compilation ##
all : libowlps owlps-positioning infrastructure-centred mobile-centred
libowlps :
@make -C libowlps
owlps-positioning :
@make -C owlps-positioning
infrastructure-centred : libowlps
@make -C infrastructure-centred
mobile-centred : libowlps
@make -C mobile-centred
## Installation ##
install : install-libowlps install-owlps-positioning install-infrastructure-centred install-mobile-centred
install-libowlps :
@make -C libowlps install
install-owlps-positioning :
@make -C owlps-positioning install
install-infrastructure-centred : install-libowlps
@make -C infrastructure-centred install
install-mobile-centred : install-libowlps
@make -C mobile-centred install
## Désinstallation ##
uninstall : uninstall-libowlps uninstall-infrastructure-centred uninstall-mobile-centred
uninstall-libowlps : uninstall-infrastructure-centred uninstall-mobile-centred
@make -C libowlps uninstall
uninstall-owlps-positioning :
@make -C owlps-positioning uninstall
uninstall-infrastructure-centred :
@make -C infrastructure-centred uninstall
uninstall-mobile-centred :
@make -C mobile-centred uninstall
## Nettoyage ##
clean :
@make -C libowlps clean
@make -C owlps-positioning clean
@make -C infrastructure-centred clean
@make -C mobile-centred clean
purge :
@make -C libowlps purge
@make -C owlps-positioning purge
@make -C infrastructure-centred purge
@make -C mobile-centred purge
## Aide ##
help :
@echo -e "Bibliothèques nécessaires à la compilation :\n\
libpcap0.8-dev\n\
libconfuse-dev\n\
libiw-dev\n\
\n\
Cibles possibles :\n\
all (cible par défaut) : Compile tous les modules.\n\
<module> : Compile uniquement le module <module> (et ses dépendances).\n\
\n\
install : Installe tous les modules.\n\
install-<module> : Installe uniquement le module <module> (et ses dépendances).\n\
\n\
uninstall : Désinstalle tous les modules.\n\
uninstall-<module> : Désinstalle uniquement le module <module> (et ses dépendances).\n\
\n\
clean : Supprime les fichiers temporaires.\n\
purge : Supprime le résultat de la compilation.\n\
\n\
Note : l'installation se fait dans l'arborescence /usr/local. Modifiez la variable PREFIX de chaque Makefile pour changer ce comportement."