Files
cdba/Makefile
Bjorn Andersson 196282fb06 conmux: Introduce conmux as additional device controller
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>
2018-03-12 19:09:15 -07:00

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)