aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorAlan T. DeKok <aland@freeradius.org>2011-11-19 11:46:39 +0200
committerJouni Malinen <j@w1.fi>2011-11-19 11:46:39 +0200
commit8205c82a48c2fcab641556145deb06659ce7b70a (patch)
treeae6b4a097d128ac18a096fbfda05ffc18260c99e /wpa_supplicant
parent57ebba598ddc38fdb5257de9881ef4395884be5a (diff)
downloadexternal_wpa_supplicant_8_ti-8205c82a48c2fcab641556145deb06659ce7b70a.zip
external_wpa_supplicant_8_ti-8205c82a48c2fcab641556145deb06659ce7b70a.tar.gz
external_wpa_supplicant_8_ti-8205c82a48c2fcab641556145deb06659ce7b70a.tar.bz2
wpa_supplicant: Make objects depend on the .config file
The source code compiles into different objects depending on the contents of .config. Therefore, the objects should depend on .config. Previously, only the executables depended on .config. This meant that they were re-linked when .config changed. But that relink process used the old (and now wrong) objects.
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index bb04db4..5ec7207 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -1399,15 +1399,17 @@ wpa_priv: $(BCHECK) $(OBJS_priv)
$(Q)$(LDO) $(LDFLAGS) -o wpa_priv $(OBJS_priv) $(LIBS)
@$(E) " LD " $@
-wpa_supplicant: .config $(BCHECK) $(OBJS) $(EXTRA_progs)
+$(OBJS_c) $(OBJS_t) $(OBJS_t2) $(OBJS) $(BCHECK) $(EXTRA_progs): .config
+
+wpa_supplicant: $(BCHECK) $(OBJS) $(EXTRA_progs)
$(Q)$(LDO) $(LDFLAGS) -o wpa_supplicant $(OBJS) $(LIBS) $(EXTRALIBS)
@$(E) " LD " $@
-eapol_test: .config $(OBJS_t)
+eapol_test: $(OBJS_t)
$(Q)$(LDO) $(LDFLAGS) -o eapol_test $(OBJS_t) $(LIBS)
@$(E) " LD " $@
-preauth_test: .config $(OBJS_t2)
+preauth_test: $(OBJS_t2)
$(Q)$(LDO) $(LDFLAGS) -o preauth_test $(OBJS_t2) $(LIBS)
@$(E) " LD " $@