mirror of
https://github.com/linux-msm/diag.git
synced 2026-02-25 13:11:48 -08:00
Move common helpers related to "diag clients" into a "Diagnostics Monitor" implementation. This becomes necessary in order to support non-HDLC encoding between the DM and device transparently to the rest of the implementation. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
33 lines
416 B
Makefile
33 lines
416 B
Makefile
DIAG := diag
|
|
|
|
CFLAGS := -Wall -g -O2
|
|
LDFLAGS := -ludev
|
|
|
|
SRCS := app_cmds.c \
|
|
circ_buf.c \
|
|
common_cmds.c \
|
|
diag.c \
|
|
diag_cntl.c \
|
|
dm.c \
|
|
hdlc.c \
|
|
masks.c \
|
|
mbuf.c \
|
|
peripheral.c \
|
|
router.c \
|
|
socket.c \
|
|
uart.c \
|
|
usb.c \
|
|
util.c \
|
|
watch.c
|
|
|
|
OBJS := $(SRCS:.c=.o)
|
|
|
|
$(DIAG): $(OBJS)
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
install: $(DIAG)
|
|
install -D -m 755 $< $(DESTDIR)$(prefix)/bin/$<
|
|
|
|
clean:
|
|
rm -f $(DIAG) $(OBJS)
|