mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-30 23:21:08 +03:00
volume_id: vol_id depends on libvolume_id
This commit is contained in:
parent
c7301bb3ce
commit
f29fdd3cef
@ -23,16 +23,21 @@ INSTALL_PROGRAM = ${INSTALL}
|
||||
INSTALL_DATA = ${INSTALL} -m 644
|
||||
INSTALL_SCRIPT = ${INSTALL}
|
||||
|
||||
all: $(PROG) $(MAN_PAGES)
|
||||
all: lib $(PROG) $(MAN_PAGES)
|
||||
.PHONY: all
|
||||
.DEFAULT: all
|
||||
|
||||
.SUFFIXES:
|
||||
|
||||
%.o: %.c $(GEN_HEADERS)
|
||||
$(E) " CC " $@
|
||||
$(Q) $(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
lib/libvolume_id.a:
|
||||
$(Q) $(MAKE) -C lib
|
||||
lib:
|
||||
$(Q) $(MAKE) -C $@
|
||||
.PHONY: lib
|
||||
|
||||
lib/libvolume_id.a: lib
|
||||
|
||||
$(PROG): %: $(HEADERS) %.o lib/libvolume_id.a
|
||||
$(E) " LD " $@
|
||||
|
@ -63,15 +63,15 @@ all: libvolume_id.a $(SHLIB) libvolume_id.pc
|
||||
.PHONY: all
|
||||
.DEFAULT: all
|
||||
|
||||
.SUFFIXES:
|
||||
|
||||
%.o: %.c
|
||||
$(E) " CC " $@
|
||||
$(Q) $(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
.shlib:
|
||||
$(Q) mkdir .shlib
|
||||
|
||||
.shlib/%.o: %.c .shlib
|
||||
.shlib/%.o: %.c
|
||||
$(E) " CC " $@
|
||||
$(Q) mkdir -p $(dir $@)
|
||||
$(Q) $(CC) -c $(CFLAGS) -fPIC $< -o $@
|
||||
|
||||
libvolume_id.a: $(HEADERS) $(OBJS)
|
||||
@ -81,7 +81,7 @@ libvolume_id.a: $(HEADERS) $(OBJS)
|
||||
$(E) " RANLIB " $@
|
||||
$(Q) $(RANLIB) $@
|
||||
|
||||
$(SHLIB): $(HEADERS) .shlib $(addprefix .shlib/,$(OBJS))
|
||||
$(SHLIB): $(HEADERS) $(addprefix .shlib/,$(OBJS))
|
||||
$(E) " CC " $@
|
||||
$(Q) $(CC) -shared $(CFLAGS) -o $@ \
|
||||
-Wl,-soname,libvolume_id.so.$(SHLIB_CUR),--version-script,exported_symbols \
|
||||
|
Loading…
Reference in New Issue
Block a user