From: Johannes Berg Date: Thu, 2 May 2019 08:34:37 +0000 (+0200) Subject: iw: include all C files into the binary X-Git-Tag: v5.3~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f561cfc1a4db14d054df28fe2a19f9c97c333eb4;p=thirdparty%2Fiw.git iw: include all C files into the binary There's really no reason to have a separate configuration for HWSIM, so we can also always compile that. Then, we no longer need to spell out the list of files and can just include all the files. Change-Id: I2a9141b9924bbc217015fce1076ea01017b88cae Signed-off-by: Johannes Berg --- diff --git a/Makefile b/Makefile index 33aaf6a..686d738 100644 --- a/Makefile +++ b/Makefile @@ -18,18 +18,7 @@ CFLAGS += -Wall -Wextra -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-a -Werror-implicit-function-declaration -Wsign-compare -Wno-unused-parameter \ $(CFLAGS_EVAL) -OBJS = iw.o genl.o event.o info.o phy.o \ - interface.o ibss.o station.o survey.o util.o ocb.o \ - mesh.o mpath.o mpp.o scan.o reg.o version.o \ - reason.o status.o connect.o link.o offch.o ps.o cqm.o \ - bitrate.o wowlan.o coalesce.o roc.o p2p.o vendor.o mgmt.o \ - ap.o sha256.o nan.o bloom.o \ - measurements.o ftm.o -OBJS += sections.o - -OBJS-$(HWSIM) += hwsim.o - -OBJS += $(OBJS-y) $(OBJS-Y) +OBJS = $(sort $(patsubst %.c,%.o,$(wildcard *.c))) ALL = iw