aboutsummaryrefslogtreecommitdiffstats
path: root/eap_example/Makefile
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-06 09:28:41 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-06 09:28:41 (GMT)
commit127608152e55d16c57005b6f54e9f8ea18235c7a (patch)
tree3d7958a4a2e428a0b516c2b68b341130b0ef3c3f /eap_example/Makefile
parent2d106f21aa342e30710682c0ee5ecad211d11c2a (diff)
downloadhostap-127608152e55d16c57005b6f54e9f8ea18235c7a.zip
hostap-127608152e55d16c57005b6f54e9f8ea18235c7a.tar.gz
hostap-127608152e55d16c57005b6f54e9f8ea18235c7a.tar.bz2
Move EAP method registration away from src/eap_{peer,server}
This makes it easier to make a library out of EAP methods without losing possiblity of binary size optimization by linker dropping unreferenced code.
Diffstat (limited to 'eap_example/Makefile')
-rw-r--r--eap_example/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/eap_example/Makefile b/eap_example/Makefile
index dbbe45e..398c4cb 100644
--- a/eap_example/Makefile
+++ b/eap_example/Makefile
@@ -90,6 +90,7 @@ CFLAGS += -DEAP_PAX
CFLAGS += -DEAP_SAKE
CFLAGS += -DEAP_GPSK -DEAP_GPSK_SHA256
+CFLAGS += -DEAP_SERVER_IDENTITY
CFLAGS += -DEAP_SERVER_TLS
CFLAGS += -DEAP_SERVER_PEAP
CFLAGS += -DEAP_SERVER_TTLS
@@ -174,6 +175,17 @@ ifndef LDO
LDO=$(CC)
endif
+Q=@
+E=echo
+ifeq ($(V), 1)
+Q=
+E=true
+endif
+
+%.o: %.c
+ $(Q)$(CC) -c -o $@ $(CFLAGS) $<
+ @$(E) " CC " $<
+
OBJS_lib=$(OBJS_both) $(OBJS_peer) $(OBJS_server)