Migration vers le nouveau nom OWLPS
git-svn-id: https://pif.pu-pm.univ-fcomte.fr/svn/loc@71 785a6c6c-259e-4ff1-8b91-dc31627914f0 git-svn-id: https://pif.pu-pm.univ-fcomte.fr/svn/loc@73 785a6c6c-259e-4ff1-8b91-dc31627914f0 git-svn-id: https://pif.pu-pm.univ-fcomte.fr/svn/loc@74 785a6c6c-259e-4ff1-8b91-dc31627914f0 Renommage des fichiers et adaptation des makefiles. git-svn-id: https://pif.pu-pm.univ-fcomte.fr/svn/loc@75 785a6c6c-259e-4ff1-8b91-dc31627914f0 Adaptation des #include, fin d'adaptation des makefiles. Reste à faire : renommage des fichiers de GuiNuMo, adaptation dans le code, amélioration du makefile (cible d'installation).
This commit is contained in:
parent
9a6bcaf8f4
commit
2c30b04a49
67
Makefile
67
Makefile
|
@ -1,55 +1,66 @@
|
||||||
.PHONY : all librtaputil clean purge help install install-librtaputil install-loc-bts install-loc-mobile uninstall uninstall-librtaputil uninstall-loc-bts uninstall-loc-mobile
|
.PHONY : all libowlps owlps-positioning clean purge help install install-libowlps install-infrastructure-centred install-mobile-centred uninstall uninstall-libowlps uninstall-infrastructure-centred uninstall-mobile-centred
|
||||||
|
|
||||||
## Compilation ##
|
## Compilation ##
|
||||||
|
|
||||||
all : librtaputil loc-bts loc-mobile
|
all : libowlps owlps-positioning infrastructure-centred mobile-centred
|
||||||
|
|
||||||
librtaputil :
|
libowlps :
|
||||||
@make -C librtaputil
|
@make -C libowlps
|
||||||
|
|
||||||
loc-bts : librtaputil
|
owlps-positioning :
|
||||||
@make -C loc-bts
|
@make -C owlps-positioning
|
||||||
|
|
||||||
loc-mobile : librtaputil
|
infrastructure-centred : libowlps
|
||||||
@make -C loc-mobile
|
@make -C infrastructure-centred
|
||||||
|
|
||||||
|
mobile-centred : libowlps
|
||||||
|
@make -C mobile-centred
|
||||||
|
|
||||||
## Installation ##
|
## Installation ##
|
||||||
|
|
||||||
install : install-librtaputil install-loc-bts install-loc-mobile
|
install : install-libowlps install-owlps-positioning install-infrastructure-centred install-mobile-centred
|
||||||
|
|
||||||
install-librtaputil :
|
install-libowlps :
|
||||||
@make -C librtaputil install
|
@make -C libowlps install
|
||||||
|
|
||||||
install-loc-bts : install-librtaputil
|
install-owlps-positioning :
|
||||||
@make -C loc-bts install
|
@make -C owlps-positioning install
|
||||||
|
|
||||||
install-loc-mobile : install-librtaputil
|
install-infrastructure-centred : install-libowlps
|
||||||
@make -C loc-mobile install
|
@make -C infrastructure-centred install
|
||||||
|
|
||||||
|
install-mobile-centred : install-libowlps
|
||||||
|
@make -C mobile-centred install
|
||||||
|
|
||||||
## Désinstallation ##
|
## Désinstallation ##
|
||||||
|
|
||||||
uninstall : uninstall-librtaputil uninstall-loc-bts uninstall-loc-mobile
|
uninstall : uninstall-libowlps uninstall-infrastructure-centred uninstall-mobile-centred
|
||||||
|
|
||||||
uninstall-librtaputil : uninstall-loc-bts uninstall-loc-mobile
|
uninstall-libowlps : uninstall-infrastructure-centred uninstall-mobile-centred
|
||||||
@make -C librtaputil uninstall
|
@make -C libowlps uninstall
|
||||||
|
|
||||||
uninstall-loc-bts :
|
uninstall-owlps-positioning :
|
||||||
@make -C loc-bts uninstall
|
@make -C owlps-positioning uninstall
|
||||||
|
|
||||||
uninstall-loc-mobile :
|
uninstall-infrastructure-centred :
|
||||||
@make -C loc-mobile uninstall
|
@make -C infrastructure-centred uninstall
|
||||||
|
|
||||||
|
uninstall-mobile-centred :
|
||||||
|
@make -C mobile-centred uninstall
|
||||||
|
|
||||||
## Nettoyage ##
|
## Nettoyage ##
|
||||||
|
|
||||||
clean :
|
clean :
|
||||||
@make -C librtaputil clean
|
@make -C libowlps clean
|
||||||
@make -C loc-bts clean
|
@make -C owlps-positioning clean
|
||||||
@make -C loc-mobile clean
|
@make -C infrastructure-centred clean
|
||||||
|
@make -C mobile-centred clean
|
||||||
|
|
||||||
purge :
|
purge :
|
||||||
@make -C librtaputil purge
|
@make -C libowlps purge
|
||||||
@make -C loc-bts purge
|
@make -C owlps-positioning purge
|
||||||
@make -C loc-mobile purge
|
@make -C infrastructure-centred purge
|
||||||
|
@make -C mobile-centred purge
|
||||||
|
|
||||||
## Aide ##
|
## Aide ##
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,74 @@
|
||||||
|
.PHONY : all owlps-aggregator owlps-listener owlps-client clean purge help install install-owlps-aggregator install-owlps-listener install-owlps-client uninstall uninstall-owlps-aggregator uninstall-owlps-listener uninstall-owlps-client
|
||||||
|
|
||||||
|
## Compilation ##
|
||||||
|
|
||||||
|
all : owlps-aggregator owlps-listener owlps-client
|
||||||
|
|
||||||
|
owlps-aggregator :
|
||||||
|
@make -C owlps-aggregator
|
||||||
|
|
||||||
|
owlps-listener :
|
||||||
|
@make -C owlps-listener
|
||||||
|
|
||||||
|
owlps-client :
|
||||||
|
@make -C owlps-client
|
||||||
|
|
||||||
|
## Installation ##
|
||||||
|
|
||||||
|
install : install-owlps-aggregator install-owlps-listener install-owlps-client
|
||||||
|
|
||||||
|
install-owlps-aggregator :
|
||||||
|
@make -C owlps-aggregator install
|
||||||
|
|
||||||
|
install-owlps-listener :
|
||||||
|
@make -C owlps-listener install
|
||||||
|
|
||||||
|
install-owlps-client :
|
||||||
|
@make -C owlps-client install
|
||||||
|
|
||||||
|
## Désinstallation ##
|
||||||
|
|
||||||
|
uninstall : uninstall-owlps-aggregator uninstall-owlps-listener uninstall-owlps-client
|
||||||
|
|
||||||
|
uninstall-owlps-aggregator :
|
||||||
|
@make -C owlps-aggregator uninstall
|
||||||
|
|
||||||
|
uninstall-owlps-listener :
|
||||||
|
@make -C owlps-listener uninstall
|
||||||
|
|
||||||
|
uninstall-owlps-client :
|
||||||
|
@make -C owlps-client uninstall
|
||||||
|
|
||||||
|
## Nettoyage ##
|
||||||
|
|
||||||
|
clean :
|
||||||
|
@make -C owlps-aggregator clean
|
||||||
|
@make -C owlps-listener clean
|
||||||
|
@make -C owlps-client clean
|
||||||
|
|
||||||
|
purge :
|
||||||
|
@make -C owlps-aggregator purge
|
||||||
|
@make -C owlps-listener purge
|
||||||
|
@make -C owlps-client purge
|
||||||
|
|
||||||
|
## Aide ##
|
||||||
|
|
||||||
|
help :
|
||||||
|
@echo "Bibliothèques nécessaires à la compilation :\n\
|
||||||
|
libpcap0.8-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."
|
|
@ -0,0 +1,11 @@
|
||||||
|
* Un peu partout : fixer la taille des données échangées (float = 4 octets, etc.).
|
||||||
|
|
||||||
|
* client :
|
||||||
|
- Vérifier que la direction est bien une des quatre possibles.
|
||||||
|
- Éventuellement, permettre l'utilisation d'une chaîne de caractères pour la direction.
|
||||||
|
- Faire une vraie gestion des arguments, enlever ce argv++ fort laid.
|
||||||
|
- Régler avec des arguments plutôt qu'en statique le nombre de paquets envoyés et le délai entre chaque envoi.
|
||||||
|
|
||||||
|
* apd : permettre d'utiliser un nom d'hôte putôt qu'une IP pour le serveur d'agrégation.
|
||||||
|
|
||||||
|
* Permettre de choisir soi-même le port des communications, aussi bien sur le mobile (demande de localisation), que sur les AP et le serveur d'agrégation. Pour l'instant, les ports sont gérés grâce aux constantes AGGREGATE_DEFAULT_PORT et LOC_REQUEST_DEFAULT_PORT.
|
|
@ -13,15 +13,15 @@ RM=rm -fv
|
||||||
CP=cp -v
|
CP=cp -v
|
||||||
|
|
||||||
# Cible
|
# Cible
|
||||||
TARGET=rtapaggregated
|
TARGET=owlps-aggregatord
|
||||||
HEADER=rtapaggregate.h
|
HEADER=owlps-aggregator.h
|
||||||
|
|
||||||
# Flags
|
# Flags
|
||||||
CFLAGS=-O2 -W -Wall -Wstrict-prototypes -O -I.
|
CFLAGS=-O2 -W -Wall -Wstrict-prototypes -O -I.
|
||||||
DEPFLAGS=-MMD
|
DEPFLAGS=-MMD
|
||||||
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
|
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
|
||||||
PICFLAG=-fPIC
|
PICFLAG=-fPIC
|
||||||
LIBS=-lpthread ../../librtaputil/librtaputil.so.1.0
|
LIBS=-lpthread ../../libowlps/libowlps.so.1.0
|
||||||
|
|
||||||
|
|
||||||
## Cibles de compilation standard ##
|
## Cibles de compilation standard ##
|
||||||
|
@ -62,7 +62,7 @@ purge : clean
|
||||||
|
|
||||||
help :
|
help :
|
||||||
@echo "Bibliothèques nécessaires à la compilation :\n\
|
@echo "Bibliothèques nécessaires à la compilation :\n\
|
||||||
librtaputil1.0 (fournie)\n\
|
libowlps1.0 (fournie)\n\
|
||||||
\n\
|
\n\
|
||||||
Cibles possibles :\n\
|
Cibles possibles :\n\
|
||||||
$(TARGET) (cible par défaut) : Compile le programme $(TARGET).\n\
|
$(TARGET) (cible par défaut) : Compile le programme $(TARGET).\n\
|
|
@ -6,7 +6,7 @@
|
||||||
#define _RTAPAGGREGATE_H
|
#define _RTAPAGGREGATE_H
|
||||||
|
|
||||||
|
|
||||||
#include "../../librtaputil/rtaputil.h"
|
#include "../../libowlps/owlps.h"
|
||||||
|
|
||||||
|
|
||||||
//#define TIMESTAMP // Décommenter pour afficher le timestamp à chaque ligne du fichier de sortie.
|
//#define TIMESTAMP // Décommenter pour afficher le timestamp à chaque ligne du fichier de sortie.
|
|
@ -3,7 +3,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "rtapaggregate.h"
|
#include "owlps-aggregator.h"
|
||||||
|
|
||||||
#define DEBUG
|
#define DEBUG
|
||||||
|
|
|
@ -13,7 +13,7 @@ RM=rm -fv
|
||||||
CP=cp -v
|
CP=cp -v
|
||||||
|
|
||||||
# Cible
|
# Cible
|
||||||
TARGET=locclient
|
TARGET=owlps-client
|
||||||
HEADER=
|
HEADER=
|
||||||
|
|
||||||
# Flags
|
# Flags
|
||||||
|
@ -21,7 +21,7 @@ CFLAGS=-O2 -W -Wall -Wstrict-prototypes -O -I.
|
||||||
DEPFLAGS=-MMD
|
DEPFLAGS=-MMD
|
||||||
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
|
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
|
||||||
PICFLAG=-fPIC
|
PICFLAG=-fPIC
|
||||||
LIBS=-lrtaputil
|
LIBS=../../libowlps/libowlps.so.1.0
|
||||||
STATIC_LIBS=-liw -lm
|
STATIC_LIBS=-liw -lm
|
||||||
|
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ purge : clean
|
||||||
|
|
||||||
help :
|
help :
|
||||||
@echo "Bibliothèques nécessaires à la compilation :\n\
|
@echo "Bibliothèques nécessaires à la compilation :\n\
|
||||||
librtaputil1.0 (fournie)\n\
|
libowlps1.0 (fournie)\n\
|
||||||
\n\
|
\n\
|
||||||
Cibles possibles :\n\
|
Cibles possibles :\n\
|
||||||
$(TARGET) (cible par défaut) : Compile le programme $(TARGET).\n\
|
$(TARGET) (cible par défaut) : Compile le programme $(TARGET).\n\
|
|
@ -3,7 +3,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "../../librtaputil/rtaputil.h"
|
#include "../../libowlps/owlps.h"
|
||||||
|
|
||||||
#define DEBUG
|
#define DEBUG
|
||||||
|
|
||||||
|
@ -21,8 +21,8 @@
|
||||||
#define NBPKT_NORMAL 10 // Nombre de paquets envoyés dans le cas d'une demande de localisation
|
#define NBPKT_NORMAL 10 // Nombre de paquets envoyés dans le cas d'une demande de localisation
|
||||||
|
|
||||||
/* Délai entre chaque paquet envoyé */
|
/* Délai entre chaque paquet envoyé */
|
||||||
#define DELAY_CALIB 50000 // Délai entre chaque émission de paquet lors de la calibration (en ms)
|
#define DELAY_CALIB 50000 // Délai entre chaque émission de paquet lors de la calibration (en microsecondes)
|
||||||
#define DELAY_NORMAL 25000 // Délai entre chaque émission de paquet dans le cas d'une demande de localisation (en ms)
|
#define DELAY_NORMAL 25000 // Délai entre chaque émission de paquet dans le cas d'une demande de localisation (en microsecondes)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -13,15 +13,15 @@ RM=rm -fv
|
||||||
CP=cp -v
|
CP=cp -v
|
||||||
|
|
||||||
# Cible
|
# Cible
|
||||||
TARGET=apd
|
TARGET=owlps-listenerd
|
||||||
HEADER=ap.h
|
HEADER=owlps-listener.h
|
||||||
|
|
||||||
# Flags
|
# Flags
|
||||||
CFLAGS=-O2 -W -Wall -Wstrict-prototypes -O -I.
|
CFLAGS=-O2 -W -Wall -Wstrict-prototypes -O -I.
|
||||||
DEPFLAGS=-MMD
|
DEPFLAGS=-MMD
|
||||||
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
|
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
|
||||||
PICFLAG=-fPIC
|
PICFLAG=-fPIC
|
||||||
LIBS=-lm -lpcap -lpthread ../../librtaputil/librtaputil.so.1.0
|
LIBS=-lm -lpcap -lpthread ../../libowlps/libowlps.so.1.0
|
||||||
|
|
||||||
|
|
||||||
## Cibles de compilation standard ##
|
## Cibles de compilation standard ##
|
||||||
|
@ -63,7 +63,7 @@ purge : clean
|
||||||
help :
|
help :
|
||||||
@echo "Bibliothèques nécessaires à la compilation :\n\
|
@echo "Bibliothèques nécessaires à la compilation :\n\
|
||||||
libpcap0.8-dev\n\
|
libpcap0.8-dev\n\
|
||||||
librtaputil1.0 (fournie)\n\
|
libowlps1.0 (fournie)\n\
|
||||||
\n\
|
\n\
|
||||||
Cibles possibles :\n\
|
Cibles possibles :\n\
|
||||||
$(TARGET) (cible par défaut) : Compile le programme $(TARGET).\n\
|
$(TARGET) (cible par défaut) : Compile le programme $(TARGET).\n\
|
|
@ -6,7 +6,7 @@
|
||||||
#define _AP_H
|
#define _AP_H
|
||||||
|
|
||||||
|
|
||||||
#include "../../librtaputil/rtaputil.h"
|
#include "../../libowlps/owlps.h"
|
||||||
#include <pcap.h>
|
#include <pcap.h>
|
||||||
|
|
||||||
// Pour la fonction get_mac_addr() :
|
// Pour la fonction get_mac_addr() :
|
|
@ -3,7 +3,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "ap.h"
|
#include "owlps-listener.h"
|
||||||
|
|
||||||
#define DEBUG
|
#define DEBUG
|
||||||
|
|
|
@ -17,14 +17,14 @@ CP=cp -v
|
||||||
SYMLINK=ln -svf
|
SYMLINK=ln -svf
|
||||||
|
|
||||||
# Variables générales
|
# Variables générales
|
||||||
LIB_CIBLE=librtaputil
|
LIB_CIBLE=libowlps
|
||||||
VERSION=1.0
|
VERSION=1.0
|
||||||
|
|
||||||
# Cibles à construire
|
# Cibles à construire
|
||||||
STATIC=$(LIB_CIBLE).a
|
STATIC=$(LIB_CIBLE).a
|
||||||
DYNAMIC=$(LIB_CIBLE).so.$(VERSION)
|
DYNAMIC=$(LIB_CIBLE).so.$(VERSION)
|
||||||
#PROGS=
|
#PROGS=
|
||||||
HEADER=rtaputil.h
|
HEADER=owlps.h
|
||||||
#HEADERS=
|
#HEADERS=
|
||||||
|
|
||||||
# Composition de la bibliothèque
|
# Composition de la bibliothèque
|
|
@ -3,7 +3,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "rtaputil.h"
|
#include "owlps.h"
|
||||||
|
|
||||||
|
|
||||||
#define DEBUG
|
#define DEBUG
|
|
@ -1,74 +0,0 @@
|
||||||
.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."
|
|
|
@ -1,3 +0,0 @@
|
||||||
* apd : permettre d'utiliser un nom d'hôte putôt qu'une IP pour le serveur d'agrégation.
|
|
||||||
|
|
||||||
* Permettre de choisir soi-même le port des communications, aussi bien sur le mobile (demande de localisation), que sur les AP et le serveur d'agrégation. Pour l'instant, les ports sont gérés grâce aux constantes AGGREGATE_DEFAULT_PORT et LOC_REQUEST_DEFAULT_PORT.
|
|
|
@ -34,7 +34,8 @@ CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
|
||||||
DEPFLAGS=-MMD
|
DEPFLAGS=-MMD
|
||||||
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
|
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
|
||||||
PICFLAG=-fPIC
|
PICFLAG=-fPIC
|
||||||
LIBS=-lm -lpcap ../../librtaputil/librtaputil.so.1.0
|
LIBS=-lm -lpcap
|
||||||
|
|
||||||
#STRIPFLAGS= -Wl,-s
|
#STRIPFLAGS= -Wl,-s
|
||||||
|
|
||||||
|
|
||||||
|
@ -112,7 +113,7 @@ purge : clean
|
||||||
help :
|
help :
|
||||||
@echo -e "Bibliothèques nécessaires à la compilation :\n\
|
@echo -e "Bibliothèques nécessaires à la compilation :\n\
|
||||||
libpcap0.8-dev\n\
|
libpcap0.8-dev\n\
|
||||||
librtaputil1.0 (fournie)\n\
|
libowlps1.0 (fournie)\n\
|
||||||
\n\
|
\n\
|
||||||
Cibles possibles :\n\
|
Cibles possibles :\n\
|
||||||
all (cible par défaut) : Compile la bibliothèque partagée et statique.\n\
|
all (cible par défaut) : Compile la bibliothèque partagée et statique.\n\
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
#include <pcap.h>
|
#include <pcap.h>
|
||||||
|
|
||||||
#include "../../librtaputil/rtaputil.h"
|
#include "../../libowlps/owlps.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,7 @@ CFLAGS=-O2 -W -Wall -Wstrict-prototypes -O -I.
|
||||||
DEPFLAGS=-MMD
|
DEPFLAGS=-MMD
|
||||||
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
|
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
|
||||||
PICFLAG=-fPIC
|
PICFLAG=-fPIC
|
||||||
#LIBS=../../librtaputil/librtaputil.so.1.0 ../librtapscanmob/librtapscanmob.so.1.0
|
LIBS=../../libowlps/libowlps.so.1.0 ../librtapscanmob/librtapscanmob.so.1.0
|
||||||
LIBS=../librtapscanmob/librtapscanmob.so.1.0
|
|
||||||
|
|
||||||
|
|
||||||
## Cibles de compilation standard ##
|
## Cibles de compilation standard ##
|
|
@ -2521,17 +2521,17 @@ void Server::radar_exp(const string &outfile, const string &testfile)
|
||||||
logfile << solution << "\t" << solution.distance(ref_coords) << "\t" ;
|
logfile << solution << "\t" << solution.distance(ref_coords) << "\t" ;
|
||||||
frbhm_error += solution.distance(ref_coords);
|
frbhm_error += solution.distance(ref_coords);
|
||||||
|
|
||||||
/* 2-NSS
|
// /* 2-NSS */
|
||||||
solution = getkWeightedInSs(vm, 2, &ref_coords);
|
// solution = getkWeightedInSs(vm, 2, &ref_coords);
|
||||||
logfile << solution << "\t" << solution.distance(ref_coords) << "\t";
|
// logfile << solution << "\t" << solution.distance(ref_coords) << "\t";
|
||||||
|
|
||||||
/* 3-NSS
|
// /* 3-NSS */
|
||||||
solution = getkWeightedInSs(vm, 3, &ref_coords);
|
// solution = getkWeightedInSs(vm, 3, &ref_coords);
|
||||||
logfile << solution << "\t" << solution.distance(ref_coords) << "\t";
|
// logfile << solution << "\t" << solution.distance(ref_coords) << "\t";
|
||||||
|
|
||||||
/* 5-NSS
|
// /* 5-NSS */
|
||||||
solution = getkWeightedInSs(vm, 5, &ref_coords);
|
// solution = getkWeightedInSs(vm, 5, &ref_coords);
|
||||||
logfile << solution << "\t" << solution.distance(ref_coords) << "\t";*/
|
// logfile << solution << "\t" << solution.distance(ref_coords) << "\t";
|
||||||
|
|
||||||
logfile << endl ;
|
logfile << endl ;
|
||||||
vm.clear() ;
|
vm.clear() ;
|
Loading…
Reference in New Issue