Fix building dynamic EAP peer modules

Strip directory name from the target in the pattern rule for dynamic
modules.  Remove dynamic modules on "make clean".
This commit is contained in:
Pavel Roskin 2009-02-07 10:05:23 +02:00 committed by Jouni Malinen
parent d0184cb25c
commit 4c2660c2b0
2 changed files with 2 additions and 2 deletions

View File

@ -3,4 +3,4 @@ all:
clean:
for d in $(SUBDIRS); do make -C $$d clean; done
rm -f *~ *.o *.d
rm -f *~ *.o *.so *.d

View File

@ -1157,7 +1157,7 @@ eap_ikev2.so: ../src/eap_peer/eap_ikev2.c ../src/eap_peer/ikev2.c ../src/eap_com
%.so: %.c
$(CC) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $< \
-D$(*:eap_%=eap_peer_%)_register=eap_peer_method_dynamic_init
-D$(*F:eap_%=eap_peer_%)_register=eap_peer_method_dynamic_init
wpa_supplicant.exe: wpa_supplicant