owlps/Makefile

75 lines
1.9 KiB
Makefile

.PHONY : all librtaputil clean purge help install install-librtaputil install-loc-bts install-loc-mobile uninstall uninstall-librtaputil uninstall-loc-bts uninstall-loc-mobile
## Compilation ##
all : librtaputil loc-bts loc-mobile
librtaputil :
@make -C librtaputil
loc-bts : librtaputil
@make -C loc-bts
loc-mobile : librtaputil
@make -C loc-mobile
## Installation ##
install : install-librtaputil install-loc-bts install-loc-mobile
install-librtaputil :
@make -C librtaputil install
install-loc-bts : install-librtaputil
@make -C loc-bts install
install-loc-mobile : install-librtaputil
@make -C loc-mobile install
## Désinstallation ##
uninstall : uninstall-librtaputil uninstall-loc-bts uninstall-loc-mobile
uninstall-librtaputil : uninstall-loc-bts uninstall-loc-mobile
@make -C librtaputil uninstall
uninstall-loc-bts :
@make -C loc-bts uninstall
uninstall-loc-mobile :
@make -C loc-mobile uninstall
## Nettoyage ##
clean :
@make -C librtaputil clean
@make -C loc-bts clean
@make -C loc-mobile clean
purge :
@make -C librtaputil purge
@make -C loc-bts purge
@make -C loc-mobile purge
## Aide ##
help :
@echo "Bibliothèques nécessaires à la compilation :\n\
libpcap0.8-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."