75 lines
1.8 KiB
Makefile
75 lines
1.8 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 :
|
|
@cd rtapaggregate && make
|
|
|
|
ap :
|
|
@cd ap && make
|
|
|
|
client :
|
|
@cd client && make
|
|
|
|
## Installation ##
|
|
|
|
install : install-rtapaggregate install-ap install-client
|
|
|
|
install-rtapaggregate : rtapaggregate
|
|
@cd rtapaggregate && make install
|
|
|
|
install-ap : ap
|
|
@cd ap && make install
|
|
|
|
install-client : client
|
|
@cd client && make install
|
|
|
|
## Désinstallation ##
|
|
|
|
uninstall : uninstall-rtapaggregate uninstall-ap uninstall-client
|
|
|
|
uninstall-rtapaggregate :
|
|
@cd rtapaggregate && make uninstall
|
|
|
|
uninstall-ap :
|
|
@cd ap && make uninstall
|
|
|
|
uninstall-client :
|
|
@cd client && make uninstall
|
|
|
|
## Nettoyage ##
|
|
|
|
clean :
|
|
@cd rtapaggregate && make clean
|
|
@cd ap && make clean
|
|
@cd client && make clean
|
|
|
|
purge :
|
|
@cd rtapaggregate && make purge
|
|
@cd ap && make purge
|
|
@cd client && make 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."
|