aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rules
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-05 20:03:46 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-05 20:03:46 (GMT)
commit631afd993fa60f5d19a8c50360203d1a3dc8e9af (patch)
treeb0dcf03081c907de6fb3b0d6bbd4a28fb2886949 /src/lib.rules
parent841b52b403d404625542ef460c4c5078e7ee3046 (diff)
downloadhostap-631afd993fa60f5d19a8c50360203d1a3dc8e9af.zip
hostap-631afd993fa60f5d19a8c50360203d1a3dc8e9af.tar.gz
hostap-631afd993fa60f5d19a8c50360203d1a3dc8e9af.tar.bz2
Add rules for building src/crypto as a library
For now, this is hardcoded to support only the internal crypto implementation.
Diffstat (limited to 'src/lib.rules')
-rw-r--r--src/lib.rules21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/lib.rules b/src/lib.rules
new file mode 100644
index 0000000..b260d25
--- /dev/null
+++ b/src/lib.rules
@@ -0,0 +1,21 @@
+ifndef CC
+CC=gcc
+endif
+
+ifndef CFLAGS
+CFLAGS = -MMD -O2 -Wall -g
+endif
+
+CFLAGS += -I.. -I../utils
+
+
+Q=@
+E=echo
+ifeq ($(V), 1)
+Q=
+E=true
+endif
+
+%.o: %.c
+ $(Q)$(CC) -c -o $@ $(CFLAGS) $<
+ @$(E) " CC " $<