litex/misoc/software/libdyld/Makefile

30 lines
529 B
Makefile
Raw Normal View History

include ../include/generated/variables.mak
include $(MISOC_DIRECTORY)/software/common.mak
2015-07-30 19:38:20 -04:00
# lm32 is not supported
ifeq ($(CPU),lm32)
ALL_TARGET=
else
ALL_TARGET=libdyld.a
endif
COMMONFLAGS += -I$(MISOC_DIRECTORY)/software/include/dyld
2015-07-30 19:38:20 -04:00
OBJECTS=dyld.o
all: $(ALL_TARGET)
2015-07-30 19:38:20 -04:00
# pull in dependency info for *existing* .o files
-include $(OBJECTS:.o=.d)
libdyld.a: $(OBJECTS)
$(AR) crs libdyld.a $(OBJECTS)
%.o: $(LIBDYLD_DIRECTORY)/%.c
$(compile-dep)
2015-07-30 19:38:20 -04:00
.PHONY: clean
clean:
$(RM) $(OBJECTS) $(OBJECTS:.o=.d) libdyld.a .*~ *~