Introducing multipath C API
Quoted 23 lines · Gris Ge
libdmmp/Makefile new file +17
-0@@ -0,0 +1,78 @@ +# Makefile +# +# Copyright (C) 2015 - 2016 Red Hat, Inc. +# Gris Ge <[email protected]> +# +include ../Makefile.inc + +LIBDMMP_VERSION=0.1.0 +SONAME=$(LIBDMMP_VERSION) +DEVLIB = libdmmp.so +LIBS = $(DEVLIB).$(SONAME) +LIBDEPS = -pthread +PKGFILE = libdmmp.pc +EXTRA_MAN_FILES = libdmmp.h.3 +HEADERS = libdmmp/libdmmp.h +OBJS = libdmmp.o libdmmp_mp.o libdmmp_pg.o libdmmp_path.o libdmmp_misc.o +
libdmmp/Makefile line 27
Quoted 10 lines
libdmmp/Makefile new file +10
-0+CFLAGS += -fvisibility=hidden -I$(libdmmpdir) -I$(mpathcmddir) \ + $(shell pkg-config --cflags json-c) +LDFLAGS += $(shell pkg-config --libs json-c) -L$(mpathcmddir) -lmpathcmd + +all: $(LIBS) doc + +$(LIBS): $(OBJS) + $(CC) $(LDFLAGS) $(SHARED_FLAGS) \ + -Wl,-soname=$@ $(CFLAGS) -o $@ $(OBJS) $(LIBDEPS) + ln -sf $@ $(DEVLIB)
In Makefile(s), replace "ln -arguments" and "rm -arguments" with $(LN) $(RM).
Quoted 12 lines · Xose Vazquez Perez
libdmmp/Makefile line 1
Quoted 7 lines · Gris Ge
libdmmp/Makefile new file +1
-0@@ -0,0 +1,78 @@ + ln -sf $@ $(DEVLIB)In Makefile(s), replace "ln -arguments" and "rm -arguments" with $(LN) $(RM).
Thanks. Will fix them in V6 patch set.
Signature · 1 line
Gris Ge