1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-24 00:00:38 +02: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 CFLAGS = -g -Wall -fPIC -Iinclude
LIB = libubb.a LIB = libubb.a
SHLIB = libubb.so SHLIB = libubb.so
LIBVERSION = 0.0.0
OBJS = ubb.o swuart.o mmcclk.o OBJS = ubb.o swuart.o mmcclk.o
HDRS = ubb/ubb.h ubb/regbase.h ubb/regs4740.h ubb/swuart.h ubb/mmcclk.h 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) all: $(SHLIB)
$(SHLIB): $(LIB) $(SHLIB): $(LIB)
$(LD) -shared -soname $@.$(LIBVERSION) -o $@ \ $(LD) -shared -soname $@ -o $@ \
--whole-archive $^ || { rm -f $@; exit 1; } --whole-archive $^ || { rm -f $@; exit 1; }
$(LIB): $(OBJS) $(LIB): $(OBJS)