[PATCH 1/1] Add wpa_supplicant Makefile target libwpa_ctrl.so
Jörg Krause
joerg.krause
Tue Apr 21 12:42:34 PDT 2015
"make -C wpa_supplicant libwpa_ctrl.so" can now be used to build a shared
library that can be linked with external programs using wpa_ctrl.h. This
makes it easier to create a separate library package that does not
depend in any other hostap.git file other than src/common/wpa_ctrl.h and
the libwpa_ctrl.so built with this new make target.
Signed-off-by: J?rg Krause <joerg.krause at embedded.rocks>
---
wpa_supplicant/Makefile | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index af2d924..30f256e 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -1638,6 +1638,10 @@ libwpa_ctrl.a: $(LIBCTRL)
$(Q)$(AR) crs $@ $?
@$(E) " AR " $@
+libwpa_ctrl.so: $(LIBCTRL)
+ $(Q)rm -f $@
+ $(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $^
+
link_test: $(OBJS) $(OBJS_h) tests/link_test.o
$(Q)$(LDO) $(LDFLAGS) -o link_test $(OBJS) $(OBJS_h) tests/link_test.o $(LIBS)
@$(E) " LD " $@
@@ -1720,7 +1724,7 @@ wpa_gui:
@echo "wpa_gui has been removed - see wpa_gui-qt4 for replacement"
wpa_gui-qt4/Makefile:
- qmake -o wpa_gui-qt4/Makefile wpa_gui-qt4/wpa_gui.pro
+ qmake -o wpa_gui-qt4/Makefile wpa_gui-qt4/wpa_gui.pro
wpa_gui-qt4/lang/wpa_gui_de.qm: wpa_gui-qt4/lang/wpa_gui_de.ts
lrelease wpa_gui-qt4/wpa_gui.pro
@@ -1758,5 +1762,6 @@ clean:
rm -f lcov.info
rm -rf lcov-html
rm -f libwpa_ctrl.a
+ rm -f libwpa_ctrl.so
-include $(OBJS:%.o=%.d)
--
2.3.5
More information about the Hostap
mailing list