mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
tests: update makefile
This commit is contained in:
parent
00fdf01d9d
commit
a60fd57236
@ -42,21 +42,14 @@ include $(top_builddir)/make.tmpl
|
|||||||
|
|
||||||
DEFS += -D_REENTRANT
|
DEFS += -D_REENTRANT
|
||||||
DEPLIBS += $(top_builddir)/liblvm/liblvm2app.so $(top_builddir)/libdm/libdevmapper.so
|
DEPLIBS += $(top_builddir)/liblvm/liblvm2app.so $(top_builddir)/libdm/libdevmapper.so
|
||||||
LDFLAGS += -L$(top_builddir)/liblvm
|
LDFLAGS += -L$(top_builddir)/liblvm -L$(top_builddir)/daemons/dmeventd
|
||||||
LVMLIBS = @LVM2APP_LIB@ -ldevmapper
|
LIBS += @LVM2APP_LIB@ $(DMEVENT_LIBS) -ldevmapper
|
||||||
|
|
||||||
ifeq ("@DMEVENTD@", "yes")
|
|
||||||
LVMLIBS += -ldevmapper-event
|
|
||||||
LDFLAGS += -L$(top_builddir)/daemons/dmeventd
|
|
||||||
endif
|
|
||||||
|
|
||||||
LVMLIBS += $(LIBS)
|
|
||||||
|
|
||||||
%.t: %.o $(DEPLIBS)
|
%.t: %.o $(DEPLIBS)
|
||||||
$(CC) -o $@ $(<) $(LDFLAGS) $(LVMLIBS)
|
$(CC) -o $@ $(<) $(LDFLAGS) $(LIBS)
|
||||||
|
|
||||||
test: $(OBJECTS) $(DEPLIBS)
|
test: $(OBJECTS) $(DEPLIBS)
|
||||||
$(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LVMLIBS) $(READLINE_LIBS)
|
$(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBS) $(READLINE_LIBS)
|
||||||
|
|
||||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||||
cd $(top_builddir) && $(SHELL) ./config.status test/api/Makefile
|
cd $(top_builddir) && $(SHELL) ./config.status test/api/Makefile
|
||||||
|
Loading…
Reference in New Issue
Block a user