Files
diag/Makefile
Bjorn Andersson 58cf9ddb2e hdlc: Replace borrowed CRC implementation
The CRC implementation previously included was borrowed from the Linux
kernel, it's removed and instead a new implementation, based on [1], is
introduced.

[1] http://www.ross.net/crc/download/crc_v3.txt

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2017-02-13 01:07:31 -08:00

17 lines
290 B
Makefile

DIAG := diag
CFLAGS := -Wall -g -O2
LDFLAGS := -ludev
SRCS := diag.c diag_cntl.c hdlc.c mbuf.c peripheral.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)