owlps/loc-bts/Makefile

75 lines
1.7 KiB
Makefile

.PHONY : all rtapaggregate ap client clean purge help install install-rtapaggregate install-ap install-client uninstall uninstall-rtapaggregate uninstall-ap uninstall-client
## Compilation ##
all : rtapaggregate ap client
rtapaggregate :
@make -C rtapaggregate
ap :
@make -C ap
client :
@make -C client
## Installation ##
install : install-rtapaggregate install-ap install-client
install-rtapaggregate :
@make -C rtapaggregate install
install-ap :
@make -C ap install
install-client :
@make -C client install
## Désinstallation ##
uninstall : uninstall-rtapaggregate uninstall-ap uninstall-client
uninstall-rtapaggregate :
@make -C rtapaggregate uninstall
uninstall-ap :
@make -C ap uninstall
uninstall-client :
@make -C client uninstall
## Nettoyage ##
clean :
@make -C rtapaggregate clean
@make -C ap clean
@make -C client clean
purge :
@make -C rtapaggregate purge
@make -C ap purge
@make -C client purge
## Aide ##
help :
@echo "Bibliothèques nécessaires à la compilation :\n\
libpcap0.8-dev\n\
librtaputil1.0 (fournie)\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."