mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
64ce68fc42
This needs to be used consistently in order to get correct size for struct hostapd_ip_addr.
46 lines
684 B
Makefile
46 lines
684 B
Makefile
ALL=radius_example
|
|
|
|
all: $(ALL)
|
|
|
|
ifndef CC
|
|
CC=gcc
|
|
endif
|
|
|
|
ifndef LDO
|
|
LDO=$(CC)
|
|
endif
|
|
|
|
ifndef CFLAGS
|
|
CFLAGS = -MMD -O2 -Wall -g
|
|
endif
|
|
|
|
CFLAGS += -I.
|
|
CFLAGS += -I../src
|
|
CFLAGS += -I../src/utils
|
|
|
|
LIBS = ../src/radius/libradius.a
|
|
LIBS += ../src/crypto/libcrypto.a
|
|
LIBS += ../src/utils/libutils.a
|
|
|
|
../src/utils/libutils.a:
|
|
$(MAKE) -C ../src/utils
|
|
|
|
../src/crypto/libcrypto.a:
|
|
$(MAKE) -C ../src/crypto
|
|
|
|
../src/radius/libradius.a:
|
|
$(MAKE) -C ../src/radius
|
|
|
|
#CLAGS += -DCONFIG_IPV6
|
|
|
|
OBJS_ex = radius_example.o
|
|
|
|
radius_example: $(OBJS_ex) $(LIBS)
|
|
$(LDO) $(LDFLAGS) -o radius_example $(OBJS_ex) $(LIBS)
|
|
|
|
clean:
|
|
$(MAKE) -C ../src clean
|
|
rm -f core *~ *.o *.d $(ALL)
|
|
|
|
-include $(OBJS:%.o=%.d)
|