summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@linaro.org>2016-06-03 15:14:13 -0700
committerBjorn Andersson <bjorn.andersson@linaro.org>2016-06-03 15:14:13 -0700
commit62f4c6a799ddc2b4543f646b171fb22e635ed4b6 (patch)
tree46526b2c7cd81da8f5d769b4d63b1f750be17ecc
parent08d9f3694b3bca14cd23a66d2be51ee782da46a2 (diff)
qmic: Update makefile for packaging
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 22b999b..3bb0ca6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
OUT := qmic
-CFLAGS := -Wall -g
+CFLAGS := -Wall -g -O2
LDFLAGS :=
SRCS := qmic.c qmi_message.c qmi_struct.c
@@ -9,8 +9,8 @@ OBJS := $(SRCS:.c=.o)
$(OUT): $(OBJS)
$(CC) $(LDFLAGS) -o $@ $^
-test: $(OUT)
- ./$(OUT)
+install: $(OUT)
+ install -D -m 755 $< $(PREFIX)/bin/$<
clean:
rm -f $(OUT) $(OBJS)