diff mbox series

Add a top-level Makefile

Message ID 3UC.ZcR5.5nOC1WKQTPT.1cwH0W@seznam.cz
State New
Headers show
Series Add a top-level Makefile | expand

Commit Message

Tomas Paukrt Sept. 17, 2024, 5:14 a.m. UTC
Add a top-level Makefile to make cross-compilation easier under
various build systems.

Signed-off-by: Tomas Paukrt <tomaspaukrt@email.cz>
---
 Makefile      | 10 ++++++++++
 build_release |  6 +++---
 2 files changed, 13 insertions(+), 3 deletions(-)
 create mode 100644 Makefile
diff mbox series

Patch

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c4b1498
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,10 @@ 
+SUBDIRS=$(wildcard hostapd) $(wildcard wpa_supplicant)
+
+all:
+	for dir in $(SUBDIRS); do $(MAKE) -C $$dir; done
+
+clean distclean:
+	for dir in $(SUBDIRS); do $(MAKE) -C $$dir clean; done
+
+install:
+	for dir in $(SUBDIRS); do $(MAKE) -C $$dir install; done
diff --git a/build_release b/build_release
index 3aa9bf3..bb7f15d 100755
--- a/build_release
+++ b/build_release
@@ -30,13 +30,13 @@  mkdir $TMP
 mkdir -p $RELDIR
 
 git archive --format=tar --prefix=wpa-$VER/ HEAD \
-	README COPYING CONTRIBUTIONS src wpa_supplicant hostapd hs20 |
+	README COPYING CONTRIBUTIONS Makefile src wpa_supplicant hostapd hs20 |
 	gzip > $RELDIR/wpa-$VER.tar.gz
 git archive --format=tar --prefix=hostapd-$VER/ HEAD \
-	README COPYING CONTRIBUTIONS src hostapd |
+	README COPYING CONTRIBUTIONS Makefile src hostapd |
 	gzip > $RELDIR/hostapd-$VER.tar.gz
 git archive --format=tar --prefix=wpa_supplicant-$VER/ HEAD \
-	README COPYING CONTRIBUTIONS src wpa_supplicant hs20/client |
+	README COPYING CONTRIBUTIONS Makefile src wpa_supplicant hs20/client |
 	tar --directory=$TMP -xf -
 
 cd $TMP