mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
Makefile: generalize .so target
We can generalize the .so target by moving its depends into rules without build instructions. Signed-off-by: Kai Krakow <kai@kaishome.de>
This commit is contained in:
parent
4789445d7b
commit
4cfd5b43da
@ -1,6 +1,7 @@
|
||||
TAG := $(shell git describe --always --dirty || echo UNKNOWN)
|
||||
|
||||
default: libcrucible.so
|
||||
%.so: Makefile
|
||||
|
||||
OBJS = \
|
||||
chatter.o \
|
||||
@ -19,6 +20,8 @@ OBJS = \
|
||||
uuid.o \
|
||||
.version.o \
|
||||
|
||||
libcrucible.so: $(OBJS)
|
||||
|
||||
include ../makeflags
|
||||
|
||||
depends.mk: *.cc
|
||||
@ -34,5 +37,5 @@ include depends.mk
|
||||
%.o: %.cc ../makeflags
|
||||
$(CXX) $(CXXFLAGS) -fPIC -o $@ -c $<
|
||||
|
||||
libcrucible.so: $(OBJS) Makefile
|
||||
$(CXX) $(LDFLAGS) -fPIC -o $@ $(OBJS) -shared -Wl,-soname,$@ -luuid
|
||||
%.so:
|
||||
$(CXX) $(LDFLAGS) -fPIC -o $@ $^ -shared -Wl,-soname,$@ -luuid
|
||||
|
Loading…
x
Reference in New Issue
Block a user