Correction librtaputil + -O dans makefiles

M    loc-bts/code/librtaputil/librtaputil.c : variable inutilisée.
M    Tous les Makefiles : ajout de l'option d'optimisation (-O) dans les
     CFLAGS.

git-svn-id: https://pif.pu-pm.univ-fcomte.fr/svn/loc@13 785a6c6c-259e-4ff1-8b91-dc31627914f0
This commit is contained in:
Matteo Cypriani 2008-02-19 15:03:55 +00:00
parent 55350b38cd
commit 9fd568c817
5 changed files with 4 additions and 6 deletions

View File

@ -17,7 +17,7 @@ TARGET=apd
HEADER=ap.h
# Flags
CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
CFLAGS=-O2 -W -Wall -Wstrict-prototypes -O -I.
DEPFLAGS=-MMD
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
PICFLAG=-fPIC

View File

@ -17,7 +17,7 @@ TARGET=locclient
HEADER=
# Flags
CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
CFLAGS=-O2 -W -Wall -Wstrict-prototypes -O -I.
DEPFLAGS=-MMD
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
PICFLAG=-fPIC

View File

@ -1,6 +1,5 @@
# Répertoire d'installation
PREFIX=/usr/local
INSTALL_DIR= $(PREFIX)/sbin
INSTALL_LIB= $(PREFIX)/lib
INSTALL_INC= $(PREFIX)/include
INSTALL_MAN= $(PREFIX)/share/man
@ -31,7 +30,7 @@ HEADER=rtaputil.h
OBJS=$(LIB_CIBLE).o
# Flags
CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
CFLAGS=-O2 -W -Wall -Wstrict-prototypes -O -I.
DEPFLAGS=-MMD
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
PICFLAG=-fPIC

View File

@ -122,7 +122,6 @@ BOOL mac_cmp(unsigned char *mac1, unsigned char *mac2)
int create_udp_sending_socket(char *server_address, int server_port, struct sockaddr_in *server_description, struct sockaddr_in * client_description)
{
int sockfd ; // Descripteur de la socket
int ret = 0 ; // Valeur de retour
/* Ceation de la socket UDP */
sockfd = socket(AF_INET, SOCK_DGRAM, 0) ;

View File

@ -17,7 +17,7 @@ TARGET=rtapaggregated
HEADER=rtapaggregate.h
# Flags
CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
CFLAGS=-O2 -W -Wall -Wstrict-prototypes -O -I.
DEPFLAGS=-MMD
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
PICFLAG=-fPIC