]> git.ipfire.org Git - thirdparty/hostap.git/blame - radius_example/Makefile
hostapd: Validate the country_code parameter value
[thirdparty/hostap.git] / radius_example / Makefile
CommitLineData
6fc6879b
JM
1ALL=radius_example
2
3all: $(ALL)
4
5ifndef CC
6CC=gcc
7endif
8
e2084518
JM
9ifndef LDO
10LDO=$(CC)
11endif
12
6fc6879b
JM
13ifndef CFLAGS
14CFLAGS = -MMD -O2 -Wall -g
15endif
16
17CFLAGS += -I.
18CFLAGS += -I../src
6fc6879b
JM
19CFLAGS += -I../src/utils
20
e2084518
JM
21LIBS = ../src/radius/libradius.a
22LIBS += ../src/crypto/libcrypto.a
23LIBS += ../src/utils/libutils.a
6a6afc02 24LLIBS = -lrt
6fc6879b 25
e2084518
JM
26../src/utils/libutils.a:
27 $(MAKE) -C ../src/utils
6fc6879b 28
e2084518
JM
29../src/crypto/libcrypto.a:
30 $(MAKE) -C ../src/crypto
6fc6879b 31
e2084518
JM
32../src/radius/libradius.a:
33 $(MAKE) -C ../src/radius
6fc6879b 34
64ce68fc
JM
35#CLAGS += -DCONFIG_IPV6
36
6fc6879b
JM
37OBJS_ex = radius_example.o
38
e2084518 39radius_example: $(OBJS_ex) $(LIBS)
6a6afc02 40 $(LDO) $(LDFLAGS) -o radius_example $(OBJS_ex) $(LIBS) $(LLIBS)
6fc6879b
JM
41
42clean:
43 $(MAKE) -C ../src clean
e2084518 44 rm -f core *~ *.o *.d $(ALL)
6fc6879b
JM
45
46-include $(OBJS:%.o=%.d)