Updated through tag hostap_2_5 from git://w1.fi/hostap.git
[mech_eap.git] / libeap / radius_example / Makefile
1 ALL=radius_example
2
3 all: $(ALL)
4
5 ifndef CC
6 CC=gcc
7 endif
8
9 ifndef LDO
10 LDO=$(CC)
11 endif
12
13 ifndef CFLAGS
14 CFLAGS = -MMD -O2 -Wall -g
15 endif
16
17 CFLAGS += -I.
18 CFLAGS += -I../src
19 CFLAGS += -I../src/utils
20
21 LIBS = ../src/radius/libradius.a
22 LIBS += ../src/crypto/libcrypto.a
23 LIBS += ../src/utils/libutils.a
24 LLIBS = -lrt
25
26 ../src/utils/libutils.a:
27         $(MAKE) -C ../src/utils
28
29 ../src/crypto/libcrypto.a:
30         $(MAKE) -C ../src/crypto
31
32 ../src/radius/libradius.a:
33         $(MAKE) -C ../src/radius
34
35 #CLAGS += -DCONFIG_IPV6
36
37 OBJS_ex = radius_example.o
38
39 radius_example: $(OBJS_ex) $(LIBS)
40         $(LDO) $(LDFLAGS) -o radius_example $(OBJS_ex) $(LIBS) $(LLIBS)
41
42 clean:
43         $(MAKE) -C ../src clean
44         rm -f core *~ *.o *.d $(ALL)
45
46 -include $(OBJS:%.o=%.d)