aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..c14c447
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ "${1}" = "DEBUG" ] ; then
+ gcc -c -ggdb wifi_scan.c -o wifi_scan.o
+ gcc -c -ggdb -DDEBUG -W -Wextra miniwifi.c -o miniwifi.o
+else
+ gcc -c -O3 wifi_scan.c -o wifi_scan.o
+ gcc -c -O3 -W -Wextra miniwifi.c -o miniwifi.o
+fi
+
+gcc wifi_scan.o miniwifi.o -lmnl -o miniwifi