mirror of
https://github.com/Zygo/bees.git
synced 2025-05-18 05:45: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)
|
TAG := $(shell git describe --always --dirty || echo UNKNOWN)
|
||||||
|
|
||||||
default: libcrucible.so
|
default: libcrucible.so
|
||||||
|
%.so: Makefile
|
||||||
|
|
||||||
OBJS = \
|
OBJS = \
|
||||||
chatter.o \
|
chatter.o \
|
||||||
@ -19,6 +20,8 @@ OBJS = \
|
|||||||
uuid.o \
|
uuid.o \
|
||||||
.version.o \
|
.version.o \
|
||||||
|
|
||||||
|
libcrucible.so: $(OBJS)
|
||||||
|
|
||||||
include ../makeflags
|
include ../makeflags
|
||||||
|
|
||||||
depends.mk: *.cc
|
depends.mk: *.cc
|
||||||
@ -34,5 +37,5 @@ include depends.mk
|
|||||||
%.o: %.cc ../makeflags
|
%.o: %.cc ../makeflags
|
||||||
$(CXX) $(CXXFLAGS) -fPIC -o $@ -c $<
|
$(CXX) $(CXXFLAGS) -fPIC -o $@ -c $<
|
||||||
|
|
||||||
libcrucible.so: $(OBJS) Makefile
|
%.so:
|
||||||
$(CXX) $(LDFLAGS) -fPIC -o $@ $(OBJS) -shared -Wl,-soname,$@ -luuid
|
$(CXX) $(LDFLAGS) -fPIC -o $@ $^ -shared -Wl,-soname,$@ -luuid
|
||||||
|
Loading…
x
Reference in New Issue
Block a user