Incorporation de la dernière version de Julien
Extrait de son courriel :
« Par rapport à la précédente j'ai surtout corrigé des bugs. »
Note : la version du listener portable sur Fonera, envoyée en même temps
par Julien, viendra plus tard (le temps que je l'incorpore).
Détail des changements après analyse du code :
aggregator : correction de bogues.
positioning :
* Ajout d'un fichier de config format boost (cfg/config.cfg).
* Makefile : implantation des cibles "install" et "uninstall" ; la cible
"astyle" devient "style".
* accesspoint.{hh,cc}, area.cc, measurement.hh, point.{hh,cc},
referencepoint.{hh,cc} : cosmétique.
* owlps-positioning.c : correction de la lecture du fichier de config
(ajout d'une option permettant de spécifier un fichier alternatif).
* server.cc : essentiellement correction des requêtes.
* libowlps-positioning.{hh,cc} : passage de "unsigned long long" à
"uint64_t" comme type de retour de timeval_to_ms().
writeInDb :
* Ajout de la gestion d'un fichier de config.
* Ajout de deux scripts pour la BDD.
git-svn-id: https://pif.pu-pm.univ-fcomte.fr/svn/loc@96 785a6c6c-259e-4ff1-8b91-dc31627914f0
2009-07-01 15:39:58 +02:00
|
|
|
.PHONY : all clean purge install uninstall style
|
|
|
|
|
|
|
|
# Répertoire d'installation
|
|
|
|
PREFIX = /usr/local
|
|
|
|
INSTALL_DIR = $(PREFIX)/bin
|
|
|
|
|
|
|
|
# Commandes d'installation et de désinstallation
|
|
|
|
RM = rm -fv
|
|
|
|
CP = cp -v
|
|
|
|
|
|
|
|
# Autres outils
|
|
|
|
STYLE = astyle --style=gnu
|
2009-05-29 17:02:20 +02:00
|
|
|
|
2008-10-15 16:18:04 +02:00
|
|
|
GXX = g++
|
|
|
|
DEBUG = -g
|
|
|
|
GXXFLAGS = $(DEBUG) -Wall -pedantic
|
|
|
|
LD = g++
|
|
|
|
LDFLAGS = -lm
|
2009-07-03 14:29:40 +02:00
|
|
|
LIBS = -lpq -lboost_program_options-mt
|
2008-04-11 10:11:29 +02:00
|
|
|
|
2009-05-29 14:39:35 +02:00
|
|
|
TARGET = owlps-positioning
|
2009-05-29 14:07:05 +02:00
|
|
|
HEADER = owlps-positioning.hh
|
2010-01-07 16:34:31 +01:00
|
|
|
OBJ = posutil.o point3d.o referencepoint.o waypoint.o building.o area.o wifidevice.o accesspoint.o mobile.o measurement.o calibrationmeasurement.o inputcsv.o
|
2008-04-11 10:11:29 +02:00
|
|
|
|
2009-12-14 15:45:16 +01:00
|
|
|
all: $(TARGET)
|
2008-04-11 10:11:29 +02:00
|
|
|
|
2009-12-14 15:45:16 +01:00
|
|
|
%: %.o
|
2009-05-29 17:02:20 +02:00
|
|
|
$(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
|
2009-12-14 15:45:16 +01:00
|
|
|
%.o: %.cc $(HEADER)
|
2008-05-29 10:48:05 +02:00
|
|
|
$(GXX) $(GXXFLAGS) -c $<
|
|
|
|
|
2009-12-14 15:45:16 +01:00
|
|
|
posutil.o: posutil.hh
|
|
|
|
point3d.o: point3d.hh
|
|
|
|
referencepoint.o : referencepoint.hh point3d.hh calibrationmeasurement.hh
|
2010-01-07 16:26:13 +01:00
|
|
|
waypoint.o: waypoint.hh point3d.hh building.hh
|
2009-12-14 15:45:16 +01:00
|
|
|
building.o: building.hh
|
|
|
|
area.o: area.hh building.hh point3d.hh
|
|
|
|
wifidevice.o: wifidevice.hh posutil.hh
|
|
|
|
accesspoint.o: accesspoint.hh wifidevice.hh point3d.hh
|
|
|
|
mobile.o: mobile.hh wifidevice.hh
|
|
|
|
measurement.o: measurement.hh mobile.hh accesspoint.hh
|
|
|
|
calibrationmeasurement.o: calibrationmeasurement.hh measurement.hh referencepoint.hh
|
2010-01-07 16:34:31 +01:00
|
|
|
inputcsv.o: inputcsv.hh inputmedium.hh
|
2009-12-14 15:45:16 +01:00
|
|
|
#libowlps-positioning.o: libowlps-positioning.hh
|
|
|
|
#positioning.o: point.hh referencepoint.hh accesspoint.hh area.hh measurement.hh libowlps-positioning.hh
|
|
|
|
#server.o: server.hh positioning.hh point.hh measurement.hh treatment.hh libowlps-positioning.hh
|
|
|
|
#owlps-positioning.o: server.hh
|
|
|
|
#treatment.o: treatment.hh point.hh measurement.hh referencepoint.hh accesspoint.hh libowlps-positioning.hh
|
2008-05-29 10:48:05 +02:00
|
|
|
|
2009-12-14 15:45:16 +01:00
|
|
|
obj: $(OBJ)
|
|
|
|
|
|
|
|
$(TARGET): $(OBJ)
|
2008-04-11 10:11:29 +02:00
|
|
|
|
|
|
|
clean:
|
2009-12-07 16:03:53 +01:00
|
|
|
@rm -fv *~ *.o *.gch *.orig
|
2008-04-15 12:19:15 +02:00
|
|
|
|
2009-12-14 15:45:16 +01:00
|
|
|
purge: clean
|
2009-05-29 17:02:20 +02:00
|
|
|
@rm -f $(TARGET)
|
2008-10-09 09:44:48 +02:00
|
|
|
|
2009-12-14 15:45:16 +01:00
|
|
|
install: $(TARGET)
|
Incorporation de la dernière version de Julien
Extrait de son courriel :
« Par rapport à la précédente j'ai surtout corrigé des bugs. »
Note : la version du listener portable sur Fonera, envoyée en même temps
par Julien, viendra plus tard (le temps que je l'incorpore).
Détail des changements après analyse du code :
aggregator : correction de bogues.
positioning :
* Ajout d'un fichier de config format boost (cfg/config.cfg).
* Makefile : implantation des cibles "install" et "uninstall" ; la cible
"astyle" devient "style".
* accesspoint.{hh,cc}, area.cc, measurement.hh, point.{hh,cc},
referencepoint.{hh,cc} : cosmétique.
* owlps-positioning.c : correction de la lecture du fichier de config
(ajout d'une option permettant de spécifier un fichier alternatif).
* server.cc : essentiellement correction des requêtes.
* libowlps-positioning.{hh,cc} : passage de "unsigned long long" à
"uint64_t" comme type de retour de timeval_to_ms().
writeInDb :
* Ajout de la gestion d'un fichier de config.
* Ajout de deux scripts pour la BDD.
git-svn-id: https://pif.pu-pm.univ-fcomte.fr/svn/loc@96 785a6c6c-259e-4ff1-8b91-dc31627914f0
2009-07-01 15:39:58 +02:00
|
|
|
@$(CP) $(TARGET) $(INSTALL_DIR) && \
|
|
|
|
chmod 755 $(INSTALL_DIR)/$(TARGET) && \
|
|
|
|
chown root:root $(INSTALL_DIR)/$(TARGET)
|
2008-10-09 09:44:48 +02:00
|
|
|
|
2009-12-14 15:45:16 +01:00
|
|
|
uninstall:
|
Incorporation de la dernière version de Julien
Extrait de son courriel :
« Par rapport à la précédente j'ai surtout corrigé des bugs. »
Note : la version du listener portable sur Fonera, envoyée en même temps
par Julien, viendra plus tard (le temps que je l'incorpore).
Détail des changements après analyse du code :
aggregator : correction de bogues.
positioning :
* Ajout d'un fichier de config format boost (cfg/config.cfg).
* Makefile : implantation des cibles "install" et "uninstall" ; la cible
"astyle" devient "style".
* accesspoint.{hh,cc}, area.cc, measurement.hh, point.{hh,cc},
referencepoint.{hh,cc} : cosmétique.
* owlps-positioning.c : correction de la lecture du fichier de config
(ajout d'une option permettant de spécifier un fichier alternatif).
* server.cc : essentiellement correction des requêtes.
* libowlps-positioning.{hh,cc} : passage de "unsigned long long" à
"uint64_t" comme type de retour de timeval_to_ms().
writeInDb :
* Ajout de la gestion d'un fichier de config.
* Ajout de deux scripts pour la BDD.
git-svn-id: https://pif.pu-pm.univ-fcomte.fr/svn/loc@96 785a6c6c-259e-4ff1-8b91-dc31627914f0
2009-07-01 15:39:58 +02:00
|
|
|
@$(RM) $(INSTALL_DIR)/$(TARGET)
|
2009-05-29 14:39:35 +02:00
|
|
|
|
2009-12-14 15:45:16 +01:00
|
|
|
style:
|
2010-01-07 16:34:31 +01:00
|
|
|
@$(STYLE) $(OBJ:.o=.hh) $(OBJ:.o=.cc) inputmedium.hh
|