mirror of
https://github.com/linux-msm/cdba.git
synced 2026-02-25 13:11:56 -08:00
Device attached to conmux can be controlled as well. The interface depends on the conmux exposing the two control commands "hardreset" and "off". Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
25 lines
438 B
Makefile
25 lines
438 B
Makefile
CLIENT := cdba
|
|
CDBA := bad
|
|
|
|
.PHONY: all
|
|
|
|
all: $(CLIENT) $(CDBA)
|
|
|
|
CFLAGS := -Wall -g -O2
|
|
LDFLAGS := -ludev
|
|
|
|
CLIENT_SRCS := cdba.c circ_buf.c
|
|
CLIENT_OBJS := $(CLIENT_SRCS:.c=.o)
|
|
|
|
CDBA_SRCS := bad.c cdb_assist.c circ_buf.c conmux.c device.c fastboot.c
|
|
CDBA_OBJS := $(CDBA_SRCS:.c=.o)
|
|
|
|
$(CLIENT): $(CLIENT_OBJS)
|
|
$(CC) $(LDFLAGS) -o $@ $^
|
|
|
|
$(CDBA): $(CDBA_OBJS)
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -f $(CLIENT) $(CLIENT_OBJS) $(CDBA_OBJS)
|