summaryrefslogtreecommitdiff
path: root/Makefile
blob: 421166397599843c95cd0a45a7292ce6013f3cac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
OUT := qmic

CFLAGS := -Wall -g -O2
LDFLAGS :=
prefix := /usr/local

SRCS := parser.c qmic.c qmi_message.c qmi_struct.c
OBJS := $(SRCS:.c=.o)

$(OUT): $(OBJS)
	$(CC) $(LDFLAGS) -o $@ $^

install: $(OUT)
	install -D -m 755 $< $(DESTDIR)$(prefix)/bin/$<

clean:
	rm -f $(OUT) $(OBJS)