From ed7828a339f4b3c45eff840b6fe35b489d44cf84 Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Wed, 20 Oct 2010 17:18:43 +0200 Subject: [PATCH] [Listener] Fix OWLPSFLAGS in Makefiles Makefiles declared an OWLPSFLAGS variable for compilation-time option, but did not include it in the compilation command. This is now fixed. --- infrastructure-centred/owlps-listener/Makefile | 4 ++-- infrastructure-centred/owlps-listener/Makefile_atheros | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/infrastructure-centred/owlps-listener/Makefile b/infrastructure-centred/owlps-listener/Makefile index cd7c2d4..673a319 100644 --- a/infrastructure-centred/owlps-listener/Makefile +++ b/infrastructure-centred/owlps-listener/Makefile @@ -17,7 +17,7 @@ TARGET=owlps-listenerd HEADER=owlps-listener.h # Flags -CFLAGS = -O2 -W -Wall -Wstrict-prototypes -O -I. +CFLAGS = -O2 -W -Wall -Wstrict-prototypes -I. DEPFLAGS = -MMD XCFLAGS = $(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) PICFLAG = -fPIC @@ -40,7 +40,7 @@ all : $(TARGET) $(CC) $(STRIPFLAGS) $(XCFLAGS) -o $@ $^ $(LDFLAGS) %.o : %.c $(HEADER) - $(CC) $(XCFLAGS) -c $< + $(CC) $(XCFLAGS) $(OWLPSFLAGS) -c $< ## Installation / désinstallation ## diff --git a/infrastructure-centred/owlps-listener/Makefile_atheros b/infrastructure-centred/owlps-listener/Makefile_atheros index d1c7e28..47a9951 100644 --- a/infrastructure-centred/owlps-listener/Makefile_atheros +++ b/infrastructure-centred/owlps-listener/Makefile_atheros @@ -23,7 +23,7 @@ TARGET=owlps-listenerd HEADER=owlps-listener.h # Flags -CFLAGS = -O2 -W -Wall -Wstrict-prototypes -O -I. +CFLAGS = -O2 -W -Wall -Wstrict-prototypes -I. DEPFLAGS = -MMD XCFLAGS = $(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) PICFLAG = -fPIC @@ -59,7 +59,7 @@ all: dynamic semistatic static $(CC) $(STRIPFLAGS) $(XCFLAGS) -o $@ $^ $(LOWLPS) $(IATHEROS) $(LATHEROS) $(LDFLAGS) -static %.o: %.c $(HEADER) - $(CC) $(XCFLAGS) $(IATHEROS) -c $< + $(CC) $(XCFLAGS) $(IATHEROS) $(OWLPSFLAGS) -c $< ## Installation / désinstallation ##