litex/software/libnet/Makefile
whitequark 0f47876d2e common.mak: remove RANLIB.
`ranlib` is not necessary on any system we can possibly build for,
as it is superseded by `ar s` for the last ten years or so (at least).
Thus, change ar invocations to `ar crs`, also removing a `l` flag
that is ignored by binutils.
2015-07-26 03:20:23 +03:00

23 lines
364 B
Makefile

MSCDIR=../..
include $(MSCDIR)/software/common.mak
OBJECTS=microudp.o tftp.o
all: libnet.a
# pull in dependency info for *existing* .o files
-include $(OBJECTS:.o=.d)
libnet.a: $(OBJECTS)
$(AR) crs libnet.a $(OBJECTS)
%.o: %.c
$(compile-dep)
%.o: %.S
$(assemble)
.PHONY: clean
clean:
$(RM) $(OBJECTS) $(OBJECTS:.o=.ts) $(OBJECTS:.o=.d) libnet.a .*~ *~