Files
cdba/Makefile
Bjorn Andersson 7a5b4334a1 make: Update linker parameter order
On Ubuntu the library link directive must come last for the libudev
references to be satisfied.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2018-03-12 17:44:17 -07:00

25 lines
429 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 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)