diff --git a/libubb/Makefile b/libubb/Makefile index 46e2f40..a7a2cc0 100644 --- a/libubb/Makefile +++ b/libubb/Makefile @@ -20,15 +20,12 @@ LIB = libubb.a SHLIB = libubb.so LIBVERSION = 0.0.0 -OBJS = ubb.o swuart.o -HDRS = ubb/ubb.h ubb/regbase.h ubb/regs4740.h ubb/swuart.h +OBJS = ubb.o swuart.o mmcclk.o +HDRS = ubb/ubb.h ubb/regbase.h ubb/regs4740.h ubb/swuart.h ubb/mmclk.h .PHONY: all clean spotless -all: $(SHLIB).$(LIBVERSION) - -$(SHLIB).$(LIBVERSION): $(SHLIB) - /sbin/ldconfig -n . +all: $(SHLIB) $(SHLIB): $(LIB) $(LD) -shared -soname $@.$(LIBVERSION) -o $@ \ @@ -41,4 +38,4 @@ clean: rm -f $(OBJS) spotless: clean - rm -f $(LIB) $(SHLIB) $(SHLIB).$(LIBVERSION) + rm -f $(LIB) $(SHLIB)