]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add a top-level Makefile
authorTomas Paukrt <tomaspaukrt@email.cz>
Tue, 17 Sep 2024 05:14:08 +0000 (07:14 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 22 Dec 2024 16:01:34 +0000 (18:01 +0200)
Add a top-level Makefile to make cross-compilation easier under
various build systems.

Signed-off-by: Tomas Paukrt <tomaspaukrt@email.cz>
Makefile [new file with mode: 0644]
build_release

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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
index 3aa9bf31963a4a43052cdf291a3069e70b255429..bb7f15d9fd4833082a3702d903eca55b788af764 100755 (executable)
@@ -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