2012-05-09 15:50:46 +02:00
|
|
|
include common.mk
|
2011-08-24 10:28:54 +02:00
|
|
|
|
2011-03-17 16:55:01 +01:00
|
|
|
.PHONY: \
|
2011-03-18 15:42:40 +01:00
|
|
|
all c clean purge help \
|
2011-03-17 16:55:01 +01:00
|
|
|
libowlps \
|
|
|
|
libowlps-client \
|
2011-08-22 21:51:30 +02:00
|
|
|
libowlps-resultreader \
|
2011-03-17 16:55:01 +01:00
|
|
|
owlps-client \
|
|
|
|
owlps-listener \
|
|
|
|
owlps-aggregator \
|
2011-08-20 19:56:17 +02:00
|
|
|
owlps-udp-to-http \
|
2012-02-06 17:17:25 +01:00
|
|
|
owlps-positioner \
|
2011-03-17 16:55:01 +01:00
|
|
|
install \
|
|
|
|
install-owlps-client \
|
|
|
|
install-owlps-listener \
|
|
|
|
install-owlps-aggregator \
|
2011-08-20 19:56:17 +02:00
|
|
|
install-owlps-udp-to-http \
|
2012-02-06 17:17:25 +01:00
|
|
|
install-owlps-positioner \
|
2011-03-17 16:55:01 +01:00
|
|
|
uninstall \
|
|
|
|
uninstall-owlps-client \
|
|
|
|
uninstall-owlps-listener \
|
|
|
|
uninstall-owlps-aggregator \
|
2011-08-20 19:56:17 +02:00
|
|
|
uninstall-owlps-udp-to-http \
|
2012-02-06 17:17:25 +01:00
|
|
|
uninstall-owlps-positioner
|
2008-02-22 16:12:42 +01:00
|
|
|
|
|
|
|
## Compilation ##
|
|
|
|
|
2011-03-17 16:55:01 +01:00
|
|
|
all: \
|
2011-03-18 15:42:40 +01:00
|
|
|
c \
|
2012-02-06 17:17:25 +01:00
|
|
|
owlps-positioner
|
2011-03-18 15:42:40 +01:00
|
|
|
|
|
|
|
c: \
|
2011-03-17 16:55:01 +01:00
|
|
|
libowlps \
|
|
|
|
libowlps-client \
|
2011-08-22 21:51:30 +02:00
|
|
|
libowlps-resultreader \
|
2011-03-17 16:55:01 +01:00
|
|
|
owlps-client \
|
|
|
|
owlps-listener \
|
2011-08-20 19:56:17 +02:00
|
|
|
owlps-aggregator \
|
|
|
|
owlps-udp-to-http
|
2011-03-17 16:55:01 +01:00
|
|
|
|
|
|
|
libowlps:
|
2012-01-24 16:13:27 +01:00
|
|
|
@$(MAKE) -C $@ $(ARG)
|
2011-03-17 16:55:01 +01:00
|
|
|
libowlps-client: libowlps
|
2012-01-24 16:13:27 +01:00
|
|
|
@$(MAKE) -C $@ $(ARG)
|
2011-08-22 21:51:30 +02:00
|
|
|
libowlps-resultreader: libowlps
|
2012-01-24 16:13:27 +01:00
|
|
|
@$(MAKE) -C $@ $(ARG)
|
2011-10-24 14:44:59 +02:00
|
|
|
owlps-client: libowlps libowlps-client libowlps-resultreader
|
2012-01-24 16:13:27 +01:00
|
|
|
@$(MAKE) -C $@ $(ARG)
|
2011-03-17 16:55:01 +01:00
|
|
|
owlps-listener: libowlps libowlps-client
|
2012-01-24 16:13:27 +01:00
|
|
|
@$(MAKE) -C $@ $(ARG)
|
2011-03-17 16:55:01 +01:00
|
|
|
owlps-aggregator: libowlps
|
2012-01-24 16:13:27 +01:00
|
|
|
@$(MAKE) -C $@ $(ARG)
|
2011-08-22 21:51:30 +02:00
|
|
|
owlps-udp-to-http: libowlps libowlps-resultreader
|
2012-01-24 16:13:27 +01:00
|
|
|
@$(MAKE) -C $@ $(ARG)
|
2012-02-06 17:17:25 +01:00
|
|
|
owlps-positioner: libowlps
|
2012-01-24 16:13:27 +01:00
|
|
|
@$(MAKE) -C $@ $(ARG)
|
2008-02-22 16:12:42 +01:00
|
|
|
|
2008-10-06 17:27:33 +02:00
|
|
|
|
2008-02-22 16:12:42 +01:00
|
|
|
## Installation ##
|
|
|
|
|
2011-03-17 16:55:01 +01:00
|
|
|
install : \
|
|
|
|
install-libowlps \
|
|
|
|
install-owlps-client \
|
|
|
|
install-owlps-listener \
|
|
|
|
install-owlps-aggregator \
|
2011-08-20 19:56:17 +02:00
|
|
|
install-owlps-udp-to-http \
|
2012-02-06 17:17:25 +01:00
|
|
|
install-owlps-positioner
|
2011-03-17 16:55:01 +01:00
|
|
|
|
|
|
|
install-libowlps:
|
2011-08-24 10:28:54 +02:00
|
|
|
@$(MAKE) -C $(subst install-,,$@) install
|
2011-03-17 16:55:01 +01:00
|
|
|
install-owlps-client: install-libowlps
|
2011-08-24 10:28:54 +02:00
|
|
|
@$(MAKE) -C $(subst install-,,$@) install
|
2011-03-17 16:55:01 +01:00
|
|
|
install-owlps-listener: install-libowlps
|
2011-08-24 10:28:54 +02:00
|
|
|
@$(MAKE) -C $(subst install-,,$@) install
|
2011-03-17 16:55:01 +01:00
|
|
|
install-owlps-aggregator: install-libowlps
|
2011-08-24 10:28:54 +02:00
|
|
|
@$(MAKE) -C $(subst install-,,$@) install
|
2011-08-20 19:56:17 +02:00
|
|
|
install-owlps-udp-to-http: install-libowlps
|
2011-08-24 10:28:54 +02:00
|
|
|
@$(MAKE) -C $(subst install-,,$@) install
|
2012-02-06 17:17:25 +01:00
|
|
|
install-owlps-positioner: install-libowlps
|
2011-08-24 10:28:54 +02:00
|
|
|
@$(MAKE) -C $(subst install-,,$@) install
|
2011-03-17 16:55:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
## Uninstallation ##
|
|
|
|
|
|
|
|
uninstall : \
|
|
|
|
uninstall-libowlps \
|
|
|
|
uninstall-owlps-client \
|
|
|
|
uninstall-owlps-listener \
|
|
|
|
uninstall-owlps-aggregator \
|
2011-08-20 19:56:17 +02:00
|
|
|
uninstall-owlps-udp-to-http \
|
2012-02-06 17:17:25 +01:00
|
|
|
uninstall-owlps-positioner
|
2011-03-17 16:55:01 +01:00
|
|
|
|
|
|
|
uninstall-libowlps:
|
2011-08-24 10:28:54 +02:00
|
|
|
@$(MAKE) -C $(subst uninstall-,,$@) uninstall
|
2011-03-17 16:55:01 +01:00
|
|
|
uninstall-owlps-client:
|
2011-08-24 10:28:54 +02:00
|
|
|
@$(MAKE) -C $(subst uninstall-,,$@) uninstall
|
2011-03-17 16:55:01 +01:00
|
|
|
uninstall-owlps-listener:
|
2011-08-24 10:28:54 +02:00
|
|
|
@$(MAKE) -C $(subst uninstall-,,$@) uninstall
|
2011-03-17 16:55:01 +01:00
|
|
|
uninstall-owlps-aggregator:
|
2011-08-24 10:28:54 +02:00
|
|
|
@$(MAKE) -C $(subst uninstall-,,$@) uninstall
|
2011-08-20 19:56:17 +02:00
|
|
|
uninstall-owlps-udp-to-http:
|
2011-08-24 10:28:54 +02:00
|
|
|
@$(MAKE) -C $(subst uninstall-,,$@) uninstall
|
2012-02-06 17:17:25 +01:00
|
|
|
uninstall-owlps-positioner:
|
2011-08-24 10:28:54 +02:00
|
|
|
@$(MAKE) -C $(subst uninstall-,,$@) uninstall
|
2011-03-17 16:55:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
## Cleaning ##
|
2008-02-22 16:12:42 +01:00
|
|
|
|
|
|
|
clean :
|
2011-08-24 10:28:54 +02:00
|
|
|
@$(MAKE) -C libowlps clean
|
|
|
|
@$(MAKE) -C libowlps-client clean
|
|
|
|
@$(MAKE) -C libowlps-resultreader clean
|
|
|
|
@$(MAKE) -C owlps-client clean
|
|
|
|
@$(MAKE) -C owlps-listener clean
|
|
|
|
@$(MAKE) -C owlps-aggregator clean
|
|
|
|
@$(MAKE) -C owlps-udp-to-http clean
|
2012-02-06 17:17:25 +01:00
|
|
|
@$(MAKE) -C owlps-positioner clean
|
2008-02-22 16:12:42 +01:00
|
|
|
|
|
|
|
purge :
|
2011-08-24 10:28:54 +02:00
|
|
|
@$(MAKE) -C libowlps purge
|
|
|
|
@$(MAKE) -C libowlps-client purge
|
|
|
|
@$(MAKE) -C libowlps-resultreader purge
|
|
|
|
@$(MAKE) -C owlps-client purge
|
|
|
|
@$(MAKE) -C owlps-listener purge
|
|
|
|
@$(MAKE) -C owlps-aggregator purge
|
|
|
|
@$(MAKE) -C owlps-udp-to-http purge
|
2012-02-06 17:17:25 +01:00
|
|
|
@$(MAKE) -C owlps-positioner purge
|
2008-02-22 16:12:42 +01:00
|
|
|
|
2011-03-17 16:55:01 +01:00
|
|
|
|
|
|
|
## Help ##
|
2008-02-22 16:12:42 +01:00
|
|
|
|
|
|
|
help :
|
2011-06-23 13:12:29 +02:00
|
|
|
@echo "Needed libraries:"
|
|
|
|
@echo " libiw-dev"
|
|
|
|
@echo " libpcap0.8-dev"
|
|
|
|
@echo " libconfuse-dev"
|
|
|
|
@echo " libboost-dev"
|
|
|
|
@echo " libboost-program-options-dev"
|
|
|
|
@echo
|
|
|
|
@echo "Targets:"
|
|
|
|
@echo " all (default target): Compile all the modules."
|
|
|
|
@echo " <module>: Compile only the given module (and its \
|
|
|
|
dependencies)."
|
|
|
|
@echo
|
|
|
|
@echo " install: Install all the modules."
|
|
|
|
@echo " install-<module>: Install only the given module (and its \
|
|
|
|
dependencies)."
|
|
|
|
@echo
|
|
|
|
@echo " uninstall: Remove all the modules."
|
|
|
|
@echo " uninstall-<module>: Remove only the given module (and its \
|
|
|
|
dependencies)."
|
|
|
|
@echo
|
2011-12-02 16:27:22 +01:00
|
|
|
@echo " clean: Remove the temporary files."
|
2011-06-23 13:12:29 +02:00
|
|
|
@echo " purge: Remove compiled programs as well as temporary files."
|
|
|
|
@echo
|
2011-12-02 16:27:22 +01:00
|
|
|
@echo "Note: Files are installed under /usr/local."
|
|
|
|
@echo "Tune the PREFIX variable in the Makefiles to change that."
|