2012-05-09 15:50:46 +02:00
|
|
|
include ../common.mk
|
2010-01-16 12:23:07 +01:00
|
|
|
|
2011-04-13 00:10:49 +02:00
|
|
|
# Directories & files
|
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
|
|
|
# Other tools
|
2012-05-17 11:47:30 +02:00
|
|
|
STYLE = astyle --style=gnu --indent=spaces=2 --formatted
|
2011-04-06 14:25:37 +02:00
|
|
|
CPPCHECK = cppcheck --quiet --enable=all
|
2011-05-04 11:31:13 +02:00
|
|
|
DOXYGEN = OWLPS_VERSION=$(OWLPS_VERSION) doxygen >/dev/null
|
2009-05-29 17:02:20 +02:00
|
|
|
|
2012-05-24 14:19:04 +02:00
|
|
|
# Flags for the tests
|
|
|
|
TESTSCXXFLAGS = -I$(TESTS_DIR) -I$(SRC_DIR) -I.
|
2011-06-23 14:27:27 +02:00
|
|
|
|
2012-05-24 14:19:04 +02:00
|
|
|
## Additional libraries ##
|
|
|
|
|
2013-04-24 19:34:34 +02:00
|
|
|
LDFLAGS += -lstdc++ -lm -lboost_program_options -pthread -lowlps
|
2012-01-25 15:42:40 +01:00
|
|
|
ifeq "$(OS)" "Linux"
|
|
|
|
LDFLAGS += -lrt
|
|
|
|
endif
|
|
|
|
ifeq "$(OS)" "GNU/kFreeBSD"
|
2011-06-23 14:27:27 +02:00
|
|
|
LDFLAGS += -lrt
|
|
|
|
endif
|
2008-04-11 10:11:29 +02:00
|
|
|
|
2011-04-13 00:10:49 +02:00
|
|
|
|
2012-02-06 17:17:25 +01:00
|
|
|
TARGET = owlps-positionerd
|
2010-02-26 16:03:14 +01:00
|
|
|
OBJ_TARGET = $(OBJ_DIR)/$(TARGET).o
|
|
|
|
SOURCE_TARGET = $(SRC_DIR)/$(TARGET).cc
|
|
|
|
|
|
|
|
OBJ_LIST = \
|
|
|
|
posutil.o \
|
2012-04-27 17:41:11 +02:00
|
|
|
autocalibration.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 \
|
2011-04-05 11:52:06 +02:00
|
|
|
resultlist.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 \
|
2011-12-30 13:43:01 +01:00
|
|
|
nss.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 \
|
2011-07-19 18:40:17 +02:00
|
|
|
mobilesreadercsv.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 \
|
2013-05-16 22:59:15 +02:00
|
|
|
csvstringreader.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 \
|
2011-04-04 17:37:19 +02:00
|
|
|
outputudpsocket.o \
|
2011-07-14 22:07:48 +02:00
|
|
|
outputtcpsocketevaal.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 \
|
2012-04-11 16:31:48 +02:00
|
|
|
trilaterationalgorithm.o \
|
2010-06-02 12:37:43 +02:00
|
|
|
cartographyalgorithm.o \
|
2011-07-30 15:58:48 +02:00
|
|
|
outputnetworksocket.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 \
|
2012-04-11 16:31:48 +02:00
|
|
|
trilaterationmethod.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
|
|
|
|
|
2012-01-11 16:03:38 +01:00
|
|
|
dynamic: $(TARGET)
|
|
|
|
static: $(TARGET).static
|
|
|
|
all: dynamic static
|
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
|
2012-05-24 14:19:04 +02:00
|
|
|
$(CXX) $(CXXFLAGS) $(TESTSCXXFLAGS) -o $@ -c $<
|
2010-02-01 17:36:45 +01:00
|
|
|
|
2011-04-12 12:17:31 +02:00
|
|
|
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.cc $(SRC_DIR)/%.hh
|
2012-05-24 14:19:04 +02:00
|
|
|
$(MKDIR) $(OBJ_DIR) && $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ -c $<
|
2008-05-29 10:48:05 +02:00
|
|
|
|
2010-02-26 16:03:14 +01:00
|
|
|
%: $(OBJ_DIR)/%.o
|
2012-05-24 14:19:04 +02:00
|
|
|
$(CXX) $(STRIPFLAGS) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
|
2012-01-11 16:03:38 +01:00
|
|
|
|
|
|
|
%.static: $(OBJ_DIR)/%.o
|
2012-05-24 14:19:04 +02:00
|
|
|
$(CXX) $(STRIPFLAGS) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) -static
|
2012-01-11 16:03:38 +01:00
|
|
|
$(STRIP) $@
|
2010-02-02 12:51:50 +01:00
|
|
|
|
2010-02-11 10:37:15 +01:00
|
|
|
# Dependencies
|
2012-04-27 17:41:11 +02:00
|
|
|
$(OBJ_DIR)/autocalibration.o: \
|
|
|
|
$(OBJ_DIR)/stock.o \
|
|
|
|
$(OBJ_DIR)/configuration.o \
|
|
|
|
$(OBJ_DIR)/posexcept.o
|
2011-04-27 18:47:56 +02:00
|
|
|
$(OBJ_DIR)/point3d.o: \
|
2011-07-13 15:00:54 +02:00
|
|
|
$(OBJ_DIR)/posutil.o \
|
2011-04-27 18:47:56 +02:00
|
|
|
$(OBJ_DIR)/posexcept.o
|
2010-06-23 17:50:44 +02:00
|
|
|
$(OBJ_DIR)/posutil.o: \
|
[Positioning] Some ReferencePoint code -> PosUtil
ReferencePoint::complete_with_dummy_measurements(
map<string, Measurement>,
map<string, Measurement>)
becomes PosUtil::complete_with_dummy_measurements(
unordered_map<string, Measurement>,
unordered_map<string, Measurement>)
ReferencePoint::compute_ss_square_distance(
map<string, Measurement>,
map<string, Measurement>)
becomes PosUtil::ss_square_distance(
unordered_map<string, Measurement>,
unordered_map<string, Measurement>)
map<string, Measurement> ReferencePoint::get_all_measurements_sorted()
is now private, returns an unordered_map instead of a map, and is
renamed ReferencePoint::get_all_measurements().
Note that we now use unordered_maps for these functions. The use of
sorted lists (maps) was useless, as stated in the commit message of
e9eab687 (Wed Jun 2 12:37:43 2010 +0200).
2011-05-09 15:19:01 +02:00
|
|
|
$(OBJ_DIR)/stock.o \
|
2010-06-23 17:50:44 +02:00
|
|
|
$(OBJ_DIR)/posexcept.o
|
2012-02-06 17:17:25 +01:00
|
|
|
$(OBJ_DIR)/owlps-positionerd.o: \
|
2010-06-02 12:37:43 +02:00
|
|
|
$(OBJ_DIR)/posexcept.o
|
2012-02-06 17:17:25 +01:00
|
|
|
$(OBJ_DIR)/owlps-positionerd.o: \
|
2010-04-02 15:49:22 +02:00
|
|
|
$(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 \
|
2011-07-19 18:40:17 +02:00
|
|
|
$(OBJ_DIR)/mobilesreadercsv.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
|
2011-07-19 18:40:17 +02:00
|
|
|
$(OBJ_DIR)/mobilesreadercsv.o: \
|
|
|
|
$(OBJ_DIR)/csvfilereader.o \
|
|
|
|
$(OBJ_DIR)/mobile.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
|
2011-04-05 11:52:06 +02:00
|
|
|
$(OBJ_DIR)/result.o: \
|
2011-07-29 00:05:52 +02:00
|
|
|
$(OBJ_DIR)/stock.o \
|
2012-08-24 16:39:00 +02:00
|
|
|
$(OBJ_DIR)/configuration.o \
|
2011-07-29 00:05:52 +02:00
|
|
|
$(OBJ_DIR)/area.o \
|
2011-04-05 11:52:06 +02:00
|
|
|
$(OBJ_DIR)/request.o
|
|
|
|
$(OBJ_DIR)/resultlist.o: \
|
|
|
|
$(OBJ_DIR)/result.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: \
|
2013-05-16 22:59:15 +02:00
|
|
|
$(OBJ_DIR)/csvstringreader.o \
|
2010-04-01 11:15:48 +02:00
|
|
|
$(OBJ_DIR)/textfilereader.o
|
2013-05-16 22:59:15 +02:00
|
|
|
$(OBJ_DIR)/csvstringreader.o: \
|
|
|
|
$(OBJ_DIR)/point3d.o \
|
|
|
|
$(OBJ_DIR)/timestamp.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
|
2011-08-01 12:28:33 +02:00
|
|
|
$(OBJ_DIR)/inputmedium.o: \
|
|
|
|
$(OBJ_DIR)/calibrationrequest.o \
|
2011-08-01 17:53:46 +02:00
|
|
|
$(OBJ_DIR)/posexcept.o \
|
2011-08-01 12:28:33 +02:00
|
|
|
$(OBJ_DIR)/configuration.o \
|
|
|
|
$(OBJ_DIR)/stock.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 \
|
2011-08-01 12:28:33 +02:00
|
|
|
$(OBJ_DIR)/configuration.o \
|
2010-02-26 16:03:14 +01:00
|
|
|
$(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 \
|
2011-08-01 12:28:33 +02:00
|
|
|
$(OBJ_DIR)/configuration.o \
|
2011-03-18 10:37:06 +01:00
|
|
|
$(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 \
|
2011-04-05 11:52:06 +02:00
|
|
|
$(OBJ_DIR)/resultlist.o \
|
2010-03-04 11:59:17 +01:00
|
|
|
$(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 \
|
2011-04-05 11:52:06 +02:00
|
|
|
$(OBJ_DIR)/resultlist.o \
|
2010-03-08 17:36:16 +01:00
|
|
|
$(OBJ_DIR)/result.o
|
2011-07-30 15:58:48 +02:00
|
|
|
$(OBJ_DIR)/outputnetworksocket.o: \
|
2011-04-04 17:37:19 +02:00
|
|
|
$(SRC_DIR)/outputmedium.hh \
|
2011-07-30 15:58:48 +02:00
|
|
|
$(OBJ_DIR)/resultlist.o \
|
2011-04-04 17:37:19 +02:00
|
|
|
$(OBJ_DIR)/result.o
|
2011-07-30 15:58:48 +02:00
|
|
|
$(OBJ_DIR)/outputudpsocket.o: \
|
|
|
|
$(OBJ_DIR)/outputnetworksocket.o \
|
|
|
|
$(OBJ_DIR)/request.o \
|
|
|
|
$(OBJ_DIR)/resultlist.o \
|
|
|
|
$(OBJ_DIR)/result.o \
|
|
|
|
$(OBJ_DIR)/posexcept.o
|
2011-07-14 22:07:48 +02:00
|
|
|
$(OBJ_DIR)/outputtcpsocketevaal.o: \
|
2011-07-30 15:58:48 +02:00
|
|
|
$(OBJ_DIR)/outputnetworksocket.o \
|
|
|
|
$(OBJ_DIR)/request.o \
|
|
|
|
$(OBJ_DIR)/resultlist.o \
|
|
|
|
$(OBJ_DIR)/result.o \
|
|
|
|
$(OBJ_DIR)/area.o \
|
|
|
|
$(OBJ_DIR)/posexcept.o \
|
|
|
|
$(OBJ_DIR)/stock.o
|
2011-03-15 15:27:42 +01:00
|
|
|
$(OBJ_DIR)/outputcsv.o: \
|
|
|
|
$(SRC_DIR)/outputmedium.hh \
|
|
|
|
$(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 \
|
2011-04-04 17:37:19 +02:00
|
|
|
$(OBJ_DIR)/outputcsv.o \
|
|
|
|
$(OBJ_DIR)/outputudpsocket.o \
|
2011-07-14 22:07:48 +02:00
|
|
|
$(OBJ_DIR)/outputtcpsocketevaal.o \
|
2010-03-04 11:59:17 +01:00
|
|
|
$(OBJ_DIR)/configuration.o \
|
2010-02-26 16:03:14 +01:00
|
|
|
$(OBJ_DIR)/posexcept.o
|
2012-04-11 16:31:48 +02:00
|
|
|
$(OBJ_DIR)/trilaterationalgorithm.o: \
|
2010-03-22 13:47:19 +01:00
|
|
|
$(SRC_DIR)/positioningalgorithm.hh \
|
|
|
|
$(OBJ_DIR)/minmax.o \
|
2011-04-27 18:57:00 +02:00
|
|
|
$(OBJ_DIR)/mobile.o \
|
|
|
|
$(OBJ_DIR)/configuration.o \
|
|
|
|
$(OBJ_DIR)/posexcept.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: \
|
2012-04-11 16:31:48 +02:00
|
|
|
$(SRC_DIR)/trilaterationmethod.hh \
|
2010-03-22 13:47:19 +01:00
|
|
|
$(OBJ_DIR)/point3d.o \
|
|
|
|
$(OBJ_DIR)/accesspoint.o
|
2010-04-01 10:40:14 +02:00
|
|
|
$(OBJ_DIR)/interlinknetworks.o: \
|
2012-04-11 16:31:48 +02:00
|
|
|
$(OBJ_DIR)/trilaterationalgorithm.o
|
2010-06-10 15:57:03 +02:00
|
|
|
$(OBJ_DIR)/fbcm.o: \
|
2012-04-11 16:31:48 +02:00
|
|
|
$(OBJ_DIR)/trilaterationalgorithm.o \
|
2011-08-01 20:28:43 +02:00
|
|
|
$(OBJ_DIR)/configuration.o \
|
|
|
|
$(OBJ_DIR)/stock.o
|
2010-06-14 17:15:48 +02:00
|
|
|
$(OBJ_DIR)/frbhmbasic.o: \
|
2011-12-30 13:43:01 +01:00
|
|
|
$(OBJ_DIR)/nss.o \
|
2010-06-14 17:15:48 +02:00
|
|
|
$(OBJ_DIR)/fbcm.o
|
2011-12-30 13:43:01 +01:00
|
|
|
$(OBJ_DIR)/nss.o: \
|
2010-06-02 12:37:43 +02:00
|
|
|
$(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 \
|
2011-12-30 13:43:01 +01:00
|
|
|
$(OBJ_DIR)/nss.o \
|
2011-04-05 11:52:06 +02:00
|
|
|
$(OBJ_DIR)/resultlist.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)
|
2012-01-11 16:03:38 +01:00
|
|
|
$(TARGET).static: $(OBJ) $(OBJ_NOTEST) $(OBJ_TARGET)
|
2010-02-26 16:03:14 +01:00
|
|
|
|
|
|
|
$(OBJ_TARGET): $(SOURCE_TARGET)
|
2012-05-24 14:19:04 +02:00
|
|
|
$(CXX) $(CXXFLAGS) -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)
|
2012-05-24 14:19:04 +02:00
|
|
|
$(CXX) $(CXXFLAGS) $(TESTSCXXFLAGS) -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
|
|
|
|
2011-12-27 18:37:57 +01:00
|
|
|
test_forced: $(TESTS_TARGET)
|
2010-02-15 20:39:08 +01:00
|
|
|
@$(TESTS_TARGET)
|
2011-12-27 18:37:57 +01:00
|
|
|
test:
|
|
|
|
@echo "Unit tests are currently unmaintained. If you are sure"
|
|
|
|
@echo "you want to try them, use the target 'test_forced'."
|
2010-02-02 12:51:50 +01:00
|
|
|
|
2010-01-16 12:23:07 +01:00
|
|
|
doc:
|
|
|
|
@$(DOXYGEN) $(DOXYFILE)
|
|
|
|
|
2008-04-11 10:11:29 +02:00
|
|
|
clean:
|
2010-02-26 16:03:14 +01:00
|
|
|
@$(RM) *~ */*~ *.orig */*.orig
|
2011-06-23 12:49:41 +02:00
|
|
|
@$(RM_RECURSIVE) $(OBJ_DIR)
|
2010-02-26 16:03:14 +01:00
|
|
|
@$(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)
|
2012-01-11 16:03:38 +01:00
|
|
|
@$(RM) $(TARGET).static
|
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:
|
2011-08-30 17:06:32 +02:00
|
|
|
@echo "/!\ This program requires GCC >=4.4 /!\\"
|
|
|
|
@echo
|
2011-06-23 13:12:29 +02:00
|
|
|
@echo "Needed libraries:"
|
|
|
|
@echo " libboost-dev"
|
|
|
|
@echo " libboost-program-options-dev"
|
|
|
|
@echo
|
|
|
|
@echo "Optional programs nedded for specific targets:"
|
|
|
|
@echo " doxygen"
|
|
|
|
@echo " CxxTest suite"
|
|
|
|
@echo " astyle (Artistic Style)"
|
|
|
|
@echo " cppcheck"
|
|
|
|
@echo
|
|
|
|
@echo "Targets:"
|
2012-02-06 17:17:25 +01:00
|
|
|
@echo " all (default target): Compiles OwlPS Positioner."
|
2011-06-23 13:12:29 +02:00
|
|
|
@echo " doc: Generates documentation from source files (doxygen \
|
|
|
|
is required)."
|
2012-02-06 17:17:25 +01:00
|
|
|
@echo " install: Installs OwlPS Positioner."
|
|
|
|
@echo " uninstall: Uninstalls OwlPS Positioner."
|
2011-06-23 13:12:29 +02:00
|
|
|
@echo ""
|
|
|
|
@echo " test: Run unit tests (CxxTest suite is required)."
|
|
|
|
@echo " style: Reindent source files (astyle is required)."
|
|
|
|
@echo " check: Run automated checs on the source code (cppcheck \
|
|
|
|
is required)."
|
|
|
|
@echo
|
2011-12-02 16:27:22 +01:00
|
|
|
@echo " clean: Delete the temporary files."
|
2011-06-23 13:12:29 +02:00
|
|
|
@echo " purge: Delete all generated files."
|
|
|
|
@echo
|
2011-12-02 16:27:22 +01:00
|
|
|
@echo "Note: Files are installed under $(PREFIX)."
|
2011-08-30 17:06:32 +02:00
|
|
|
@echo "Tune the PREFIX variable in the Makefile to change that."
|