diff options
Diffstat (limited to 'tools/lib')
-rw-r--r-- | tools/lib/lockdep/Makefile | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/tools/lib/lockdep/Makefile b/tools/lib/lockdep/Makefile index 07b0b7542511..cb09d3ff8f58 100644 --- a/tools/lib/lockdep/Makefile +++ b/tools/lib/lockdep/Makefile | |||
@@ -1,13 +1,8 @@ | |||
1 | # liblockdep version | ||
2 | LL_VERSION = 0 | ||
3 | LL_PATCHLEVEL = 0 | ||
4 | LL_EXTRAVERSION = 1 | ||
5 | |||
6 | # file format version | 1 | # file format version |
7 | FILE_VERSION = 1 | 2 | FILE_VERSION = 1 |
8 | 3 | ||
9 | MAKEFLAGS += --no-print-directory | 4 | MAKEFLAGS += --no-print-directory |
10 | 5 | LIBLOCKDEP_VERSION=$(shell make -sC ../../.. kernelversion) | |
11 | 6 | ||
12 | # Makefiles suck: This macro sets a default value of $(2) for the | 7 | # Makefiles suck: This macro sets a default value of $(2) for the |
13 | # variable named by $(1), unless the variable has been set by | 8 | # variable named by $(1), unless the variable has been set by |
@@ -98,7 +93,7 @@ export prefix libdir bindir src obj | |||
98 | libdir_SQ = $(subst ','\'',$(libdir)) | 93 | libdir_SQ = $(subst ','\'',$(libdir)) |
99 | bindir_SQ = $(subst ','\'',$(bindir)) | 94 | bindir_SQ = $(subst ','\'',$(bindir)) |
100 | 95 | ||
101 | LIB_FILE = liblockdep.a liblockdep.so | 96 | LIB_FILE = liblockdep.a liblockdep.so.$(LIBLOCKDEP_VERSION) |
102 | BIN_FILE = lockdep | 97 | BIN_FILE = lockdep |
103 | 98 | ||
104 | CONFIG_INCLUDES = | 99 | CONFIG_INCLUDES = |
@@ -110,8 +105,6 @@ N = | |||
110 | 105 | ||
111 | export Q VERBOSE | 106 | export Q VERBOSE |
112 | 107 | ||
113 | LIBLOCKDEP_VERSION = $(LL_VERSION).$(LL_PATCHLEVEL).$(LL_EXTRAVERSION) | ||
114 | |||
115 | INCLUDES = -I. -I/usr/local/include -I./uinclude -I./include $(CONFIG_INCLUDES) | 108 | INCLUDES = -I. -I/usr/local/include -I./uinclude -I./include $(CONFIG_INCLUDES) |
116 | 109 | ||
117 | # Set compile option CFLAGS if not set elsewhere | 110 | # Set compile option CFLAGS if not set elsewhere |
@@ -146,7 +139,7 @@ do_app_build = \ | |||
146 | 139 | ||
147 | do_compile_shared_library = \ | 140 | do_compile_shared_library = \ |
148 | ($(print_shared_lib_compile) \ | 141 | ($(print_shared_lib_compile) \ |
149 | $(CC) --shared $^ -o $@ -lpthread -ldl) | 142 | $(CC) --shared $^ -o $@ -lpthread -ldl -Wl,-soname='"$@"';$(shell ln -s $@ liblockdep.so)) |
150 | 143 | ||
151 | do_build_static_lib = \ | 144 | do_build_static_lib = \ |
152 | ($(print_static_lib_build) \ | 145 | ($(print_static_lib_build) \ |
@@ -177,7 +170,7 @@ all: all_cmd | |||
177 | 170 | ||
178 | all_cmd: $(CMD_TARGETS) | 171 | all_cmd: $(CMD_TARGETS) |
179 | 172 | ||
180 | liblockdep.so: $(PEVENT_LIB_OBJS) | 173 | liblockdep.so.$(LIBLOCKDEP_VERSION): $(PEVENT_LIB_OBJS) |
181 | $(Q)$(do_compile_shared_library) | 174 | $(Q)$(do_compile_shared_library) |
182 | 175 | ||
183 | liblockdep.a: $(PEVENT_LIB_OBJS) | 176 | liblockdep.a: $(PEVENT_LIB_OBJS) |