74 lines
1.1 KiB
Makefile
74 lines
1.1 KiB
Makefile
|
|
ALL=sigma_dut
|
|
|
|
all: $(ALL)
|
|
|
|
ifndef CC
|
|
CC=gcc
|
|
endif
|
|
|
|
ifndef LDO
|
|
LDO=$(CC)
|
|
endif
|
|
|
|
ifndef CFLAGS
|
|
CFLAGS = -MMD -O2 -Wall -g
|
|
endif
|
|
|
|
GITVER := $(shell git describe --dirty=+)
|
|
ifneq ($(GITVER),)
|
|
CFLAGS += -DSIGMA_DUT_VER=\"$(GITVER)\"
|
|
endif
|
|
|
|
export BINDIR ?= /usr/local/bin/
|
|
|
|
OBJS=sigma_dut.o
|
|
OBJS += utils.o
|
|
OBJS += wpa_ctrl.o
|
|
OBJS += wpa_helpers.o
|
|
|
|
OBJS += cmds_reg.o
|
|
OBJS += basic.o
|
|
OBJS += sta.o
|
|
OBJS += traffic.o
|
|
OBJS += p2p.o
|
|
OBJS += dev.o
|
|
OBJS += ap.o
|
|
OBJS += powerswitch.o
|
|
OBJS += atheros.o
|
|
|
|
ifndef NO_TRAFFIC_AGENT
|
|
CFLAGS += -DCONFIG_TRAFFIC_AGENT -DCONFIG_WFA_WMM_AC
|
|
OBJS += traffic_agent.o
|
|
OBJS += uapsd_stream.o
|
|
LIBS += -lpthread
|
|
endif
|
|
|
|
ifndef NO_WLANTEST
|
|
CFLAGS += -DCONFIG_WLANTEST
|
|
OBJS += wlantest.o
|
|
endif
|
|
|
|
ifndef NO_SNIFFER
|
|
CFLAGS += -DCONFIG_SNIFFER
|
|
OBJS += sniffer.o
|
|
endif
|
|
|
|
ifndef NO_SERVER
|
|
CFLAGS += -DCONFIG_SERVER
|
|
OBJS += server.o
|
|
endif
|
|
|
|
sigma_dut: $(OBJS)
|
|
$(LDO) $(LDFLAGS) -o sigma_dut $(OBJS) $(LIBS)
|
|
|
|
clean:
|
|
rm -f core *~ *.o *.d sigma_dut
|
|
|
|
$(DESTDIR)$(BINDIR)/%: %
|
|
install -D $(<) $(@)
|
|
|
|
install: $(addprefix $(DESTDIR)$(BINDIR)/,$(ALL))
|
|
|
|
-include $(OBJS:%.o=%.d)
|