mirror of
https://github.com/linux-msm/diag.git
synced 2026-02-25 13:11:48 -08:00
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>
17 lines
290 B
Makefile
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)
|