Réorganisation

git-svn-id: https://pif.pu-pm.univ-fcomte.fr/svn/loc@17 785a6c6c-259e-4ff1-8b91-dc31627914f0
  Réorganisation, phase 1

git-svn-id: https://pif.pu-pm.univ-fcomte.fr/svn/loc@18 785a6c6c-259e-4ff1-8b91-dc31627914f0
  Réorganisation, phase 2

git-svn-id: https://pif.pu-pm.univ-fcomte.fr/svn/loc@19 785a6c6c-259e-4ff1-8b91-dc31627914f0
  Réorganisation, suite et fin

  Correction du code en fonction de la réorganisation (références à
  librtaputil).
  Création de Makefiles de plus haut niveau.
This commit is contained in:
Matteo Cypriani 2008-02-22 15:12:42 +00:00
parent 8781613d97
commit dfe60f3de5
18 changed files with 155 additions and 31 deletions

73
Makefile Normal file
View File

@ -0,0 +1,73 @@
.PHONY : all librtaputil clean purge help install install-librtaputil install-loc-bts install-loc-client uninstall uninstall-librtaputil uninstall-loc-bts uninstall-loc-client
## Compilation ##
all : librtaputil loc-bts loc-mobile
librtaputil :
@cd librtaputil && make
loc-bts : librtaputil
@cd loc-bts && make
loc-mobile : librtaputil
@cd loc-mobile && make
## Installation ##
install : install-librtaputil install-loc-bts install-loc-client
install-librtaputil : librtaputil
@cd librtaputil && make install
install-loc-bts : loc-bts
@cd loc-bts && make install
install-loc-mobile : loc-mobile
@cd loc-mobile && make install
## Désinstallation ##
uninstall : uninstall-librtaputil uninstall-loc-bts uninstall-loc-client
uninstall-librtaputil :
@cd librtaputil && make uninstall
uninstall-loc-bts :
@cd loc-bts && make uninstall
uninstall-loc-mobile :
@cd loc-mobile && make uninstall
## Nettoyage ##
clean :
@cd librtaputil && make clean
@cd loc-bts && make clean
@cd loc-mobile && make clean
purge :
@cd librtaputil && make purge
@cd loc-bts && make purge
@cd loc-mobile && make purge
## Aide ##
help :
@echo "Bibliothèques nécessaires à la compilation :\n\
aucune\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."

View File

@ -1,59 +1,58 @@
.PHONY : all librtapanalyser librtaputil rtapaggregate ap client clean purge help install install-librtaputil install-rtapaggregate install-ap install-client
.PHONY : all rtapaggregate ap client clean purge help install install-rtapaggregate install-ap install-client uninstall uninstall-rtapaggregate uninstall-ap uninstall-client
all : librtaputil rtapaggregate ap client
## Compilation ##
install : install-librtaputil install-rtapaggregate install-ap install-client
all : rtapaggregate ap client
uninstall : uninstall-librtaputil uninstall-rtapaggregate uninstall-ap uninstall-client
librtaputil :
@cd librtaputil && make
rtapaggregate : librtaputil
rtapaggregate :
@cd rtapaggregate && make
ap : librtaputil
ap :
@cd ap && make
client : librtaputil
client :
@cd client && make
install-librtaputil : librtaputil
@cd librtaputil && make install
## Installation ##
install-rtapaggregate : rtapaggregate install-librtaputil
install : install-rtapaggregate install-ap install-client
install-rtapaggregate : rtapaggregate
@cd rtapaggregate && make install
install-ap : ap install-librtaputil
install-ap : ap
@cd ap && make install
install-client : client install-librtaputil
install-client : client
@cd client && make install
uninstall-librtaputil : librtaputil
@cd librtaputil && make uninstall
## Désinstallation ##
uninstall-rtapaggregate : rtapaggregate
uninstall : uninstall-rtapaggregate uninstall-ap uninstall-client
uninstall-rtapaggregate :
@cd rtapaggregate && make uninstall
uninstall-ap : ap
uninstall-ap :
@cd ap && make uninstall
uninstall-client : client
uninstall-client :
@cd client && make uninstall
## Nettoyage ##
clean :
@cd rtapaggregate && make clean
@cd librtaputil && make clean
@cd ap && make clean
@cd client && make clean
purge :
@cd rtapaggregate && make purge
@cd librtaputil && make purge
@cd ap && make purge
@cd client && make purge
## Aide ##
help :
@echo "Bibliothèques nécessaires à la compilation :\n\
libpcap0.8-dev\n\

View File

@ -21,7 +21,7 @@ CFLAGS=-O2 -W -Wall -Wstrict-prototypes -O -I.
DEPFLAGS=-MMD
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
PICFLAG=-fPIC
LIBS=-lm -lpcap ../librtaputil/librtaputil.so.1.0
LIBS=-lm -lpcap ../../librtaputil/librtaputil.so.1.0
## Cibles de compilation standard ##

View File

@ -6,7 +6,7 @@
#define _AP_H
#include "../librtaputil/rtaputil.h"
#include "../../librtaputil/rtaputil.h"
#include <pcap.h>
// Pour la fonction get_mac_addr() :

View File

@ -21,7 +21,7 @@ CFLAGS=-O2 -W -Wall -Wstrict-prototypes -O -I.
DEPFLAGS=-MMD
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
PICFLAG=-fPIC
LIBS=../librtaputil/librtaputil.so.1.0
LIBS=../../librtaputil/librtaputil.so.1.0
## Cibles de compilation standard ##

View File

@ -3,7 +3,7 @@
*/
#include "../librtaputil/rtaputil.h"
#include "../../librtaputil/rtaputil.h"
//#define DEBUG

View File

@ -21,7 +21,7 @@ CFLAGS=-O2 -W -Wall -Wstrict-prototypes -O -I.
DEPFLAGS=-MMD
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
PICFLAG=-fPIC
LIBS=-lpthread ../librtaputil/librtaputil.so.1.0
LIBS=-lpthread ../../librtaputil/librtaputil.so.1.0
## Cibles de compilation standard ##

View File

@ -6,7 +6,7 @@
#define _RTAPAGGREGATE_H
#include "../librtaputil/rtaputil.h"
#include "../../librtaputil/rtaputil.h"
#include <signal.h>
#include <stdio.h>
#include <sys/types.h>

52
loc-mobile/Makefile Normal file
View File

@ -0,0 +1,52 @@
.PHONY : all librtapscanmob clean purge help install install-librtapscanmob uninstall uninstall-librtapscanmob
## Compilation ##
all : librtapscanmob
librtapscanmob :
@cd librtapscanmob && make
## Installation ##
install : install-librtapscanmob
install-librtapscanmob : librtapscanmob
@cd librtapscanmob && make install
## Désinstallation ##
uninstall : uninstall-librtapscanmob
uninstall-librtapscanmob :
@cd librtapscanmob && make uninstall
## Nettoyage ##
clean :
@cd librtapscanmob && make clean
purge :
@cd librtapscanmob && make 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."

View File

@ -35,7 +35,7 @@ CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
DEPFLAGS=-MMD
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
PICFLAG=-fPIC
LIBS=-lm -lpcap ../../../loc-bts/code/librtaputil/librtaputil.so.1.0
LIBS=-lm -lpcap ../../librtaputil/librtaputil.so.1.0
#STRIPFLAGS= -Wl,-s

View File

@ -9,7 +9,7 @@
#include <pcap.h>
#include "../../../loc-bts/code/librtaputil/rtaputil.h"
#include "../../librtaputil/rtaputil.h"