owlps/infrastructure-centred/Makefile

90 lines
2.2 KiB
Makefile

.PHONY : \
all clean purge help \
owlps-aggregator libowlps-client owlps-listener owlps-client \
install install-owlps-aggregator \
install-owlps-listener install-owlps-client \
uninstall uninstall-owlps-aggregator \
uninstall-owlps-listener uninstall-owlps-client
## Compilation ##
all : owlps-aggregator libowlps-client owlps-listener owlps-client
owlps-aggregator :
@make -C $@
libowlps-client :
@make -C $@
owlps-listener :
@make -C $@
owlps-client :
@make -C $@
## Installation ##
install : \
install-owlps-aggregator \
install-owlps-listener install-owlps-client
install-owlps-aggregator :
@make -C $(subst install-,,$@) install
install-owlps-listener :
@make -C $(subst install-,,$@) install
install-owlps-client :
@make -C $(subst install-,,$@) install
## Désinstallation ##
uninstall : \
uninstall-owlps-aggregator \
uninstall-owlps-listener uninstall-owlps-client
uninstall-owlps-aggregator :
@make -C $(subst uninstall-,,$@) uninstall
uninstall-owlps-listener :
@make -C $(subst uninstall-,,$@) uninstall
uninstall-owlps-client :
@make -C $(subst uninstall-,,$@) uninstall
## Nettoyage ##
clean :
@make -C owlps-aggregator clean
@make -C libowlps-client clean
@make -C owlps-listener clean
@make -C owlps-client clean
purge :
@make -C owlps-aggregator purge
@make -C libowlps-client purge
@make -C owlps-listener purge
@make -C owlps-client purge
## Aide ##
help :
@echo -e "Bibliothèques nécessaires à la compilation :\n\
libpcap0.8-dev\n\
libconfuse-dev\n\
libowlps1.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."