1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-07-01 02:24:32 +03:00

libubb/Makefile: get rid of version bureaucracy (suggested by Kyak)

This commit is contained in:
Werner Almesberger 2013-01-07 16:28:59 -03:00
parent b18d688570
commit 127e18d7ed

View File

@ -18,7 +18,6 @@ LD = $(TARGET)ld
CFLAGS = -g -Wall -fPIC -Iinclude
LIB = libubb.a
SHLIB = libubb.so
LIBVERSION = 0.0.0
OBJS = ubb.o swuart.o mmcclk.o
HDRS = ubb/ubb.h ubb/regbase.h ubb/regs4740.h ubb/swuart.h ubb/mmcclk.h
@ -28,7 +27,7 @@ HDRS = ubb/ubb.h ubb/regbase.h ubb/regs4740.h ubb/swuart.h ubb/mmcclk.h
all: $(SHLIB)
$(SHLIB): $(LIB)
$(LD) -shared -soname $@.$(LIBVERSION) -o $@ \
$(LD) -shared -soname $@ -o $@ \
--whole-archive $^ || { rm -f $@; exit 1; }
$(LIB): $(OBJS)