]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: include all C files into the binary
authorJohannes Berg <johannes.berg@intel.com>
Thu, 2 May 2019 08:34:37 +0000 (10:34 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 2 May 2019 08:34:37 +0000 (10:34 +0200)
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 <johannes.berg@intel.com>
Makefile

index 33aaf6aab6d05e9b0674cba4bcac2aa735286b32..686d73820a80b7d936edf9f9a97b61d5480cbda6 100644 (file)
--- 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