mirror of
https://github.com/linux-msm/qmic.git
synced 2024-12-12 03:03:43 +08:00
Merge pull request #1 from ndechesne/gnu
Makefile: implement GNU Coding Standard for Makefiles
This commit is contained in:
commit
1c036374ea
3
Makefile
3
Makefile
@ -2,6 +2,7 @@ OUT := qmic
|
||||
|
||||
CFLAGS := -Wall -g -O2
|
||||
LDFLAGS :=
|
||||
prefix := /usr/local
|
||||
|
||||
SRCS := qmic.c qmi_message.c qmi_struct.c
|
||||
OBJS := $(SRCS:.c=.o)
|
||||
@ -10,7 +11,7 @@ $(OUT): $(OBJS)
|
||||
$(CC) $(LDFLAGS) -o $@ $^
|
||||
|
||||
install: $(OUT)
|
||||
install -D -m 755 $< $(PREFIX)/bin/$<
|
||||
install -D -m 755 $< $(DESTDIR)$(prefix)/bin/$<
|
||||
|
||||
clean:
|
||||
rm -f $(OUT) $(OBJS)
|
||||
|
Loading…
Reference in New Issue
Block a user