mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-27 17:05:20 +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
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user