mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-12-26 20:24:37 +02:00
libubb/Makefile: get rid of version bureaucracy (suggested by Kyak)
This commit is contained in:
parent
b18d688570
commit
127e18d7ed
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user