Commit 93187f78 authored by Tristan Gingold's avatar Tristan Gingold

Makefile: put host objs to the library

parent 1fbab48c
......@@ -14,13 +14,13 @@ all: libwr2rf.a wr2rf spi_echo
%.o: %.c
$(CC) $(CFLAGS) -MMD -c $< -o $@
libwr2rf.a: $(OBJS_LIB)
$(AR) rcv $@ $(OBJS_LIB)
libwr2rf.a: $(OBJS_LIB) $(OBJS_HOST)
$(AR) rcv $@ $^
spi_echo: $(OBJS_HOST) spi_echo.o libwr2rf.a
spi_echo: spi_echo.o libwr2rf.a
$(CC) -o $@ $^ $(LDFLAGS)
wr2rf: wr2rf.o libwr2rf.a $(OBJS_HOST)
wr2rf: wr2rf.o libwr2rf.a
$(CC) -o $@ $^ $(LDFLAGS)
clean:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment