mirror of
https://github.com/linux-msm/cdba.git
synced 2026-02-25 13:11:56 -08:00
This permits driving a board controlled by GPIOs on an FTDI interface. Also add a sample 99-libftdi.rules to permit using the FTDI device. Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
29 lines
716 B
Makefile
29 lines
716 B
Makefile
CLIENT := cdba
|
|
SERVER := cdba-server
|
|
|
|
.PHONY: all
|
|
|
|
all: $(CLIENT) $(SERVER)
|
|
|
|
CFLAGS := -Wall -g -O2
|
|
LDFLAGS := -ludev -lyaml -lftdi -lusb
|
|
|
|
CLIENT_SRCS := cdba.c circ_buf.c
|
|
CLIENT_OBJS := $(CLIENT_SRCS:.c=.o)
|
|
|
|
SERVER_SRCS := cdba-server.c cdb_assist.c circ_buf.c conmux.c device.c device_parser.c fastboot.c alpaca.c ftdi-gpio.c console.c qcomlt_dbg.c
|
|
SERVER_OBJS := $(SERVER_SRCS:.c=.o)
|
|
|
|
$(CLIENT): $(CLIENT_OBJS)
|
|
$(CC) $(LDFLAGS) -o $@ $^
|
|
|
|
$(SERVER): $(SERVER_OBJS)
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -f $(CLIENT) $(CLIENT_OBJS) $(SERVER) $(SERVER_OBJS)
|
|
|
|
install: $(CLIENT) $(SERVER)
|
|
install -D -m 755 $(CLIENT) $(DESTDIR)$(prefix)/bin/$(CLIENT)
|
|
install -D -m 755 $(SERVER) $(DESTDIR)$(prefix)/bin/$(SERVER)
|