2010-02-26 16:03:14 +01:00
|
|
|
.PHONY : all test doc prepare clean purge install uninstall style check
|
2010-01-16 12:23:07 +01:00
|
|
|
|
2010-02-26 16:03:14 +01:00
|
|
|
SRC_DIR = src
|
|
|
|
OBJ_DIR = obj
|
2010-02-15 20:39:08 +01:00
|
|
|
TESTS_DIR = tests
|
2010-01-16 12:23:07 +01:00
|
|
|
DOXYGEN_DIR = doc
|
|
|
|
DOXYFILE = Doxyfile
|
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
|
|
|
|
2010-02-11 10:37:15 +01:00
|
|
|
# Installation directory
|
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
|
|
|
PREFIX = /usr/local
|
|
|
|
INSTALL_DIR = $(PREFIX)/bin
|
|
|
|
|
2010-02-11 10:37:15 +01:00
|
|
|
# System tools
|
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 = rm -fv
|
2010-02-04 18:46:23 +01:00
|
|
|
RM_RECURSIVE = \rm -fr
|
2010-02-26 16:03:14 +01:00
|
|
|
RM_RECURSIVE_VERBOSE = rm -frv
|
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 = cp -v
|
2010-02-26 16:03:14 +01:00
|
|
|
MKDIR = mkdir -pv
|
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
|
|
|
|
2010-02-11 10:37:15 +01:00
|
|
|
# Other tools
|
2010-02-11 09:46:40 +01:00
|
|
|
STYLE = astyle --style=gnu --formatted
|
2010-01-18 14:19:57 +01:00
|
|
|
CPPCHECK = cppcheck --enable=all
|
2010-03-05 17:24:18 +01:00
|
|
|
DOXYGEN = doxygen >/dev/null
|
2009-05-29 17:02:20 +02:00
|
|
|
|
2011-03-18 10:37:06 +01:00
|
|
|
# Compilation tools
|
2011-03-04 16:10:08 +01:00
|
|
|
COLORGCC := $(shell which colorgcc >/dev/null 2>&1 ; echo $$?)
|
|
|
|
ifeq ($(COLORGCC), 0)
|
|
|
|
CXX = colorgcc
|
|
|
|
endif
|
2011-03-18 10:37:06 +01:00
|
|
|
|
|
|
|
# Flags
|
|
|
|
LIBOWLPS_DIR = ../libowlps
|
2010-02-01 17:36:45 +01:00
|
|
|
#DEBUG = -g
|
2010-02-26 16:03:14 +01:00
|
|
|
TESTSGXXFLAGS = -I$(TESTS_DIR) -I$(SRC_DIR) -I.
|
2011-03-18 10:37:06 +01:00
|
|
|
GXXFLAGS = $(DEBUG) -Wall -Wextra -I$(LIBOWLPS_DIR)
|
2011-03-04 16:10:08 +01:00
|
|
|
LD = $(CXX)
|
2011-03-18 10:37:06 +01:00
|
|
|
LDFLAGS = -lstdc++ -lm -lrt -lboost_program_options \
|
|
|
|
-L$(LIBOWLPS_DIR) -lowlps
|
2008-04-11 10:11:29 +02:00
|
|
|
|
2010-02-11 10:37:15 +01:00
|
|
|
# Targets
|
2009-05-29 14:39:35 +02:00
|
|
|
TARGET = owlps-positioning
|
2010-02-26 16:03:14 +01:00
|
|
|
OBJ_TARGET = $(OBJ_DIR)/$(TARGET).o
|
|
|
|
SOURCE_TARGET = $(SRC_DIR)/$(TARGET).cc
|
|
|
|
|
|
|
|
OBJ_LIST = \
|
|
|
|
posutil.o \
|
2010-02-18 12:23:05 +01:00
|
|
|
stock.o \
|
|
|
|
timestamp.o \
|
|
|
|
direction.o \
|
|
|
|
point3d.o \
|
|
|
|
referencepoint.o \
|
|
|
|
waypoint.o \
|
|
|
|
building.o \
|
|
|
|
area.o \
|
|
|
|
wifidevice.o \
|
|
|
|
accesspoint.o \
|
|
|
|
mobile.o \
|
|
|
|
measurement.o \
|
|
|
|
request.o \
|
|
|
|
calibrationrequest.o \
|
2010-03-03 16:06:41 +01:00
|
|
|
result.o \
|
2010-03-22 13:47:19 +01:00
|
|
|
minmax.o \
|
|
|
|
interlinknetworks.o \
|
2010-06-10 15:57:03 +02:00
|
|
|
fbcm.o \
|
2010-06-14 17:15:48 +02:00
|
|
|
frbhmbasic.o \
|
2010-06-02 12:37:43 +02:00
|
|
|
radar.o \
|
2010-03-03 16:15:06 +01:00
|
|
|
realposition.o \
|
2010-02-18 12:23:05 +01:00
|
|
|
configuration.o \
|
|
|
|
userinterface.o \
|
2010-04-02 15:49:22 +02:00
|
|
|
inputdatareader.o \
|
2010-06-23 17:50:44 +02:00
|
|
|
accesspointsreadercsv.o \
|
2010-04-02 15:49:22 +02:00
|
|
|
topologyreadercsv.o \
|
2010-03-23 11:32:05 +01:00
|
|
|
textfilereader.o \
|
2010-04-01 11:15:48 +02:00
|
|
|
csvfilereader.o \
|
2010-03-09 12:04:00 +01:00
|
|
|
textfilewriter.o \
|
2010-03-04 11:59:17 +01:00
|
|
|
output.o \
|
2010-03-04 11:26:13 +01:00
|
|
|
outputterminal.o \
|
2010-03-08 17:36:16 +01:00
|
|
|
outputcsv.o \
|
2010-03-04 17:51:44 +01:00
|
|
|
positioning.o \
|
2010-02-18 12:23:05 +01:00
|
|
|
input.o \
|
|
|
|
inputcsv.o \
|
2011-03-18 10:37:06 +01:00
|
|
|
inputudpsocket.o \
|
2010-02-18 12:23:05 +01:00
|
|
|
inputlogcsv.o
|
2010-02-26 16:03:14 +01:00
|
|
|
OBJ_NOTEST_LIST = \
|
|
|
|
posexcept.o \
|
2010-03-22 13:47:19 +01:00
|
|
|
multilaterationalgorithm.o \
|
2010-06-02 12:37:43 +02:00
|
|
|
cartographyalgorithm.o \
|
2010-02-26 16:03:14 +01:00
|
|
|
inputmedium.o
|
2010-03-04 11:26:13 +01:00
|
|
|
INTERFACES_LIST = \
|
|
|
|
inputlogmedium.hh \
|
|
|
|
outputmedium.hh \
|
2010-03-22 13:47:19 +01:00
|
|
|
multilaterationmethod.hh \
|
2010-03-04 11:26:13 +01:00
|
|
|
positioningalgorithm.hh
|
2010-02-26 16:03:14 +01:00
|
|
|
|
|
|
|
OBJ = $(OBJ_LIST:%=$(OBJ_DIR)/%)
|
|
|
|
OBJ_NOTEST = $(OBJ_NOTEST_LIST:%=$(OBJ_DIR)/%)
|
|
|
|
INTERFACES = $(INTERFACES_LIST:%=$(SRC_DIR)/%)
|
|
|
|
SOURCE = \
|
|
|
|
$(OBJ:$(OBJ_DIR)/%.o=$(SRC_DIR)/%.hh) \
|
|
|
|
$(OBJ:$(OBJ_DIR)/%.o=$(SRC_DIR)/%.cc) \
|
|
|
|
$(OBJ_NOTEST:$(OBJ_DIR)/%.o=$(SRC_DIR)/%.hh) \
|
|
|
|
$(OBJ_NOTEST:$(OBJ_DIR)/%.o=$(SRC_DIR)/%.cc) \
|
|
|
|
$(INTERFACES)
|
2008-04-11 10:11:29 +02:00
|
|
|
|
2010-02-15 20:39:08 +01:00
|
|
|
TESTS_XX = $(TESTS_DIR)/tests.cc
|
|
|
|
TESTS_OBJ = $(TESTS_DIR)/tests.o
|
|
|
|
TESTS_TARGET = $(TESTS_DIR)/tests
|
|
|
|
TESTUTIL_OBJ = $(TESTS_DIR)/testutil.o
|
|
|
|
TESTSETUP_OBJ = $(TESTS_DIR)/testsetup.o
|
2010-02-26 16:03:14 +01:00
|
|
|
SOURCE_TESTS = $(OBJ:$(OBJ_DIR)/%.o=$(TESTS_DIR)/%_test.hh)
|
2010-02-15 20:39:08 +01:00
|
|
|
OBJ_TESTS = $(TESTUTIL_OBJ) $(TESTSETUP_OBJ)
|
|
|
|
INCLUDES_TESTS = $(TESTS_DIR)/valuetraits.hh
|
|
|
|
|
2010-02-26 16:03:14 +01:00
|
|
|
all: prepare $(TARGET)
|
2008-04-11 10:11:29 +02:00
|
|
|
|
2010-02-11 10:37:15 +01:00
|
|
|
# Generic targets
|
2010-02-15 20:39:08 +01:00
|
|
|
$(TESTS_DIR)/%.o: $(TESTS_DIR)/%.cc $(TESTS_DIR)/%.hh
|
2011-03-04 16:10:08 +01:00
|
|
|
$(CXX) $(GXXFLAGS) $(TESTSGXXFLAGS) -o $@ -c $<
|
2010-02-01 17:36:45 +01:00
|
|
|
|
2010-02-26 16:03:14 +01:00
|
|
|
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.cc $(SRC_DIR)/%.hh
|
2011-03-04 16:10:08 +01:00
|
|
|
$(CXX) $(GXXFLAGS) -o $@ -c $<
|
2008-05-29 10:48:05 +02:00
|
|
|
|
2010-02-26 16:03:14 +01:00
|
|
|
%: $(OBJ_DIR)/%.o
|
2010-02-15 20:39:08 +01:00
|
|
|
$(LD) $(LDFLAGS) -o $@ $^
|
2010-02-02 12:51:50 +01:00
|
|
|
|
2010-02-11 10:37:15 +01:00
|
|
|
# Dependencies
|
2010-06-23 17:50:44 +02:00
|
|
|
$(OBJ_DIR)/posutil.o: \
|
|
|
|
$(OBJ_DIR)/posexcept.o
|
2010-06-02 12:37:43 +02:00
|
|
|
$(OBJ_DIR)/owlps-positioning.o: \
|
|
|
|
$(OBJ_DIR)/posexcept.o
|
2010-04-02 15:49:22 +02:00
|
|
|
$(OBJ_DIR)/owlps-positioning.o: \
|
|
|
|
$(OBJ_DIR)/userinterface.o \
|
|
|
|
$(OBJ_DIR)/inputdatareader.o \
|
|
|
|
$(OBJ_DIR)/stock.o \
|
|
|
|
$(OBJ_DIR)/positioning.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/userinterface.o: \
|
2010-02-26 16:03:14 +01:00
|
|
|
$(OBJ_DIR)/configuration.o
|
2010-04-02 15:49:22 +02:00
|
|
|
$(OBJ_DIR)/inputdatareader.o: \
|
2010-06-23 17:50:44 +02:00
|
|
|
$(OBJ_DIR)/accesspointsreadercsv.o \
|
2010-04-02 15:49:22 +02:00
|
|
|
$(OBJ_DIR)/topologyreadercsv.o \
|
|
|
|
$(OBJ_DIR)/configuration.o \
|
|
|
|
$(OBJ_DIR)/posexcept.o
|
2010-06-23 17:50:44 +02:00
|
|
|
$(OBJ_DIR)/accesspointsreadercsv.o: \
|
|
|
|
$(OBJ_DIR)/csvfilereader.o \
|
|
|
|
$(OBJ_DIR)/accesspoint.o \
|
|
|
|
$(OBJ_DIR)/stock.o
|
2010-04-02 15:49:22 +02:00
|
|
|
$(OBJ_DIR)/topologyreadercsv.o: \
|
2010-04-13 10:47:10 +02:00
|
|
|
$(OBJ_DIR)/csvfilereader.o \
|
|
|
|
$(OBJ_DIR)/area.o \
|
|
|
|
$(OBJ_DIR)/waypoint.o \
|
|
|
|
$(OBJ_DIR)/stock.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/referencepoint.o: \
|
2010-06-02 12:37:43 +02:00
|
|
|
$(OBJ_DIR)/point3d.o \
|
|
|
|
$(OBJ_DIR)/measurement.o \
|
|
|
|
$(OBJ_DIR)/stock.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/waypoint.o: \
|
2010-02-26 16:03:14 +01:00
|
|
|
$(OBJ_DIR)/point3d.o \
|
|
|
|
$(OBJ_DIR)/building.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/area.o: \
|
2010-02-26 16:03:14 +01:00
|
|
|
$(OBJ_DIR)/building.o \
|
|
|
|
$(OBJ_DIR)/point3d.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/wifidevice.o: \
|
2010-02-26 16:03:14 +01:00
|
|
|
$(OBJ_DIR)/posutil.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/accesspoint.o: \
|
2010-02-26 16:03:14 +01:00
|
|
|
$(OBJ_DIR)/wifidevice.o \
|
2010-06-23 17:50:44 +02:00
|
|
|
$(OBJ_DIR)/posutil.o \
|
2010-02-26 16:03:14 +01:00
|
|
|
$(OBJ_DIR)/point3d.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/mobile.o: \
|
2010-02-26 16:03:14 +01:00
|
|
|
$(OBJ_DIR)/wifidevice.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/measurement.o: \
|
2010-06-02 12:37:43 +02:00
|
|
|
$(OBJ_DIR)/accesspoint.o \
|
|
|
|
$(OBJ_DIR)/posexcept.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/request.o: \
|
2010-02-26 16:03:14 +01:00
|
|
|
$(OBJ_DIR)/timestamp.o \
|
|
|
|
$(OBJ_DIR)/measurement.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/calibrationrequest.o: \
|
2010-02-26 16:03:14 +01:00
|
|
|
$(OBJ_DIR)/request.o \
|
|
|
|
$(OBJ_DIR)/referencepoint.o \
|
|
|
|
$(OBJ_DIR)/direction.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/textfilereader.o: \
|
2010-03-23 11:32:05 +01:00
|
|
|
$(OBJ_DIR)/posexcept.o
|
2010-04-01 11:15:48 +02:00
|
|
|
$(OBJ_DIR)/csvfilereader.o: \
|
|
|
|
$(OBJ_DIR)/textfilereader.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/textfilewriter.o: \
|
2010-03-08 17:23:20 +01:00
|
|
|
$(OBJ_DIR)/posexcept.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/inputcsv.o: \
|
2010-02-26 16:03:14 +01:00
|
|
|
$(OBJ_DIR)/inputmedium.o \
|
2010-04-01 11:15:48 +02:00
|
|
|
$(OBJ_DIR)/csvfilereader.o \
|
2010-02-26 16:03:14 +01:00
|
|
|
$(OBJ_DIR)/request.o \
|
|
|
|
$(OBJ_DIR)/calibrationrequest.o \
|
|
|
|
$(OBJ_DIR)/stock.o
|
2011-03-18 10:37:06 +01:00
|
|
|
$(OBJ_DIR)/inputudpsocket.o: \
|
|
|
|
$(OBJ_DIR)/inputmedium.o \
|
|
|
|
$(OBJ_DIR)/posexcept.o \
|
|
|
|
$(OBJ_DIR)/request.o \
|
|
|
|
$(OBJ_DIR)/calibrationrequest.o \
|
|
|
|
$(OBJ_DIR)/stock.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/inputlogcsv.o: \
|
2010-03-03 16:06:41 +01:00
|
|
|
$(SRC_DIR)/inputlogmedium.hh \
|
2010-02-26 16:03:14 +01:00
|
|
|
$(OBJ_DIR)/request.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/input.o: \
|
2010-03-04 11:59:17 +01:00
|
|
|
$(OBJ_DIR)/inputcsv.o \
|
2011-03-18 10:37:06 +01:00
|
|
|
$(OBJ_DIR)/inputudpsocket.o \
|
2010-03-04 11:59:17 +01:00
|
|
|
$(OBJ_DIR)/inputlogcsv.o \
|
|
|
|
$(OBJ_DIR)/calibrationrequest.o \
|
|
|
|
$(OBJ_DIR)/configuration.o \
|
|
|
|
$(OBJ_DIR)/posexcept.o \
|
|
|
|
$(OBJ_DIR)/stock.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/outputterminal.o: \
|
2010-03-04 11:59:17 +01:00
|
|
|
$(SRC_DIR)/outputmedium.hh \
|
|
|
|
$(OBJ_DIR)/result.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/outputcsv.o: \
|
2010-03-08 17:36:16 +01:00
|
|
|
$(SRC_DIR)/outputmedium.hh \
|
2010-03-09 12:04:00 +01:00
|
|
|
$(OBJ_DIR)/textfilewriter.o \
|
2010-03-08 17:36:16 +01:00
|
|
|
$(OBJ_DIR)/result.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/output.o: \
|
2010-03-04 11:59:17 +01:00
|
|
|
$(OBJ_DIR)/outputterminal.o \
|
|
|
|
$(OBJ_DIR)/configuration.o \
|
2010-02-26 16:03:14 +01:00
|
|
|
$(OBJ_DIR)/posexcept.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/multilaterationalgorithm.o: \
|
2010-03-22 13:47:19 +01:00
|
|
|
$(SRC_DIR)/positioningalgorithm.hh \
|
|
|
|
$(OBJ_DIR)/minmax.o \
|
|
|
|
$(OBJ_DIR)/mobile.o
|
2010-06-14 17:15:48 +02:00
|
|
|
$(OBJ_DIR)/cartographyalgorithm.o: \
|
|
|
|
$(SRC_DIR)/positioningalgorithm.hh \
|
|
|
|
$(OBJ_DIR)/referencepoint.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/minmax.o: \
|
2010-03-22 13:47:19 +01:00
|
|
|
$(SRC_DIR)/multilaterationmethod.hh \
|
|
|
|
$(OBJ_DIR)/point3d.o \
|
|
|
|
$(OBJ_DIR)/accesspoint.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/interlinknetworks.o: \
|
2010-03-22 13:47:19 +01:00
|
|
|
$(OBJ_DIR)/multilaterationalgorithm.o
|
2010-06-10 15:57:03 +02:00
|
|
|
$(OBJ_DIR)/fbcm.o: \
|
|
|
|
$(OBJ_DIR)/multilaterationalgorithm.o
|
2010-06-14 17:15:48 +02:00
|
|
|
$(OBJ_DIR)/frbhmbasic.o: \
|
|
|
|
$(OBJ_DIR)/radar.o \
|
|
|
|
$(OBJ_DIR)/fbcm.o
|
2010-06-02 12:37:43 +02:00
|
|
|
$(OBJ_DIR)/radar.o: \
|
|
|
|
$(OBJ_DIR)/cartographyalgorithm.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/realposition.o: \
|
2010-03-03 16:15:06 +01:00
|
|
|
$(SRC_DIR)/positioningalgorithm.hh \
|
|
|
|
$(OBJ_DIR)/result.o \
|
|
|
|
$(OBJ_DIR)/calibrationrequest.o \
|
|
|
|
$(OBJ_DIR)/referencepoint.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/positioning.o: \
|
2010-04-02 15:49:22 +02:00
|
|
|
$(OBJ_DIR)/inputdatareader.o \
|
2010-03-04 17:51:44 +01:00
|
|
|
$(OBJ_DIR)/input.o \
|
|
|
|
$(OBJ_DIR)/realposition.o \
|
2010-06-14 17:15:48 +02:00
|
|
|
$(OBJ_DIR)/fbcm.o \
|
|
|
|
$(OBJ_DIR)/frbhmbasic.o \
|
2010-06-02 12:37:43 +02:00
|
|
|
$(OBJ_DIR)/interlinknetworks.o \
|
2010-06-14 17:15:48 +02:00
|
|
|
$(OBJ_DIR)/radar.o \
|
2010-03-04 17:51:44 +01:00
|
|
|
$(OBJ_DIR)/output.o \
|
|
|
|
$(OBJ_DIR)/configuration.o \
|
|
|
|
$(OBJ_DIR)/posexcept.o
|
2010-02-11 10:37:15 +01:00
|
|
|
|
|
|
|
# Specific targets
|
2010-02-26 16:03:14 +01:00
|
|
|
$(TARGET): $(OBJ) $(OBJ_NOTEST) $(OBJ_TARGET)
|
|
|
|
|
|
|
|
$(OBJ_TARGET): $(SOURCE_TARGET)
|
2011-03-04 16:10:08 +01:00
|
|
|
$(CXX) $(GXXFLAGS) -o $@ -c $<
|
2008-04-11 10:11:29 +02:00
|
|
|
|
2010-02-26 16:03:14 +01:00
|
|
|
$(TESTS_XX): $(SOURCE_TESTS) $(OBJ)
|
2010-02-15 20:39:08 +01:00
|
|
|
$(TESTS_DIR)/cxxtestgen.pl --error-printer \
|
|
|
|
--include=$(TESTS_DIR)/valuetraits.hh \
|
2010-02-11 11:15:57 +01:00
|
|
|
--include=$(TESTUTIL_OBJ:.o=.hh) \
|
2010-02-26 16:03:14 +01:00
|
|
|
-o $@ $(SOURCE_TESTS)
|
2010-02-02 12:51:50 +01:00
|
|
|
|
2010-02-19 11:11:47 +01:00
|
|
|
$(TESTS_OBJ): $(TESTS_XX) $(INCLUDES_TESTS)
|
2011-03-04 16:10:08 +01:00
|
|
|
$(CXX) $(GXXFLAGS) $(TESTSGXXFLAGS) -o $@ -c $<
|
2010-02-11 11:15:57 +01:00
|
|
|
|
2010-02-19 11:11:47 +01:00
|
|
|
$(TESTS_TARGET): $(TESTS_OBJ) $(OBJ_TESTS) $(OBJ) $(OBJ_NOTEST)
|
|
|
|
$(LD) $(LDFLAGS) -o $@ $^
|
2010-02-02 12:51:50 +01:00
|
|
|
|
2010-02-26 16:03:14 +01:00
|
|
|
test: prepare $(TESTS_TARGET)
|
2010-02-15 20:39:08 +01:00
|
|
|
@$(TESTS_TARGET)
|
2010-02-02 12:51:50 +01:00
|
|
|
|
2010-01-16 12:23:07 +01:00
|
|
|
doc:
|
|
|
|
@$(DOXYGEN) $(DOXYFILE)
|
|
|
|
|
2010-02-26 16:03:14 +01:00
|
|
|
prepare:
|
|
|
|
@$(MKDIR) $(OBJ_DIR)
|
|
|
|
|
2008-04-11 10:11:29 +02:00
|
|
|
clean:
|
2010-02-26 16:03:14 +01:00
|
|
|
@$(RM) *~ */*~ *.orig */*.orig
|
|
|
|
@$(RM_RECURSIVE_VERBOSE) $(OBJ_DIR)
|
|
|
|
@$(RM) $(TESTS_XX) $(TESTS_DIR)/*.o
|
2008-04-15 12:19:15 +02:00
|
|
|
|
2009-12-14 15:45:16 +01:00
|
|
|
purge: clean
|
2010-01-16 12:23:07 +01:00
|
|
|
@$(RM) $(TARGET)
|
2010-02-15 20:39:08 +01:00
|
|
|
@$(RM) $(TESTS_TARGET)
|
2010-01-16 12:23:07 +01:00
|
|
|
@$(RM_RECURSIVE) $(DOXYGEN_DIR)
|
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-02-01 17:36:45 +01:00
|
|
|
@$(STYLE) \
|
2010-02-26 16:03:14 +01:00
|
|
|
$(SOURCE) \
|
2010-02-15 20:39:08 +01:00
|
|
|
$(TESTS_DIR)/*.hh \
|
|
|
|
$(TESTS_DIR)/*.cc
|
2010-01-18 14:19:57 +01:00
|
|
|
|
|
|
|
check:
|
2010-02-11 17:24:21 +01:00
|
|
|
@$(CPPCHECK) \
|
2010-02-26 16:03:14 +01:00
|
|
|
$(SOURCE) \
|
|
|
|
$(TARGET).cc
|
2011-03-04 16:09:23 +01:00
|
|
|
|
|
|
|
help:
|
|
|
|
@echo -e "Needed libraries:\n\
|
|
|
|
libboost-dev\n\
|
|
|
|
libboost-program-options-dev\n\
|
|
|
|
\n\
|
|
|
|
Optional programs nedded for specific targets:\n\
|
|
|
|
doxygen\n\
|
|
|
|
CxxTest suite\n\
|
|
|
|
astyle (Artistic Style)\n\
|
|
|
|
cppcheck\n\
|
|
|
|
\n\
|
|
|
|
Targets:\n\
|
|
|
|
all (default target): Compiles OwlPS Positioning.\n\
|
|
|
|
doc: Generates documentation from source files (doxygen is required).\n\
|
|
|
|
install: Installs OwlPS Positioning.\n\
|
|
|
|
uninstall: Uninstalls OwlPS Positioning.\n\
|
|
|
|
\n\
|
|
|
|
test: Run unit tests (CxxTest suite is required).\n\
|
|
|
|
style: Reindent source files (astyle is required).\n\
|
|
|
|
check: Run automated checs on the source code (cppcheck is required).\n\
|
|
|
|
\n\
|
|
|
|
clean: Delete temporary files.\n\
|
|
|
|
purge: Delete all generated files.\n\
|
|
|
|
\n\
|
|
|
|
Note: Files are installed under /usr/local. Tune the PREFIX variable in the Makefile to change that."
|