Files
diag/Makefile
Bjorn Andersson 365aa41212 dm: Introduce Diagnostic Monitor abstraction
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>
2018-01-24 22:10:17 -08:00

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)