@@ -52,8 +52,11 @@ DESTDIR ?=
52
52
# and _should_ modify the PACKAGE_BUGREPORT definition
53
53
54
54
VERSION: = $(shell ./utils/version-gen.sh)
55
- LIB_MAJ = 0.0.1
56
- LIB_MIN = 1
55
+ LIB_FIX = 1
56
+ LIB_MIN = 0
57
+ LIB_MAJ = 1
58
+ LIB_VER = $(LIB_MAJ ) .$(LIB_MIN ) .$(LIB_FIX )
59
+
57
60
58
61
PACKAGE = cpupower
59
62
PACKAGE_BUGREPORT =
[email protected]
@@ -200,14 +203,14 @@ $(OUTPUT)lib/%.o: $(LIB_SRC) $(LIB_HEADERS)
200
203
$(ECHO ) " CC " $@
201
204
$(QUIET ) $(CC ) $(CFLAGS ) -fPIC -o $@ -c lib/$* .c
202
205
203
- $(OUTPUT ) libcpupower.so.$(LIB_MAJ ) : $(LIB_OBJS )
206
+ $(OUTPUT ) libcpupower.so.$(LIB_VER ) : $(LIB_OBJS )
204
207
$(ECHO ) " LD " $@
205
208
$(QUIET ) $(CC ) -shared $(CFLAGS ) $(LDFLAGS ) -o $@ \
206
- -Wl,-soname,libcpupower.so.$(LIB_MIN ) $(LIB_OBJS )
209
+ -Wl,-soname,libcpupower.so.$(LIB_MAJ ) $(LIB_OBJS )
207
210
@ln -sf $(@F ) $(OUTPUT ) libcpupower.so
208
- @ln -sf $(@F ) $(OUTPUT ) libcpupower.so.$(LIB_MIN )
211
+ @ln -sf $(@F ) $(OUTPUT ) libcpupower.so.$(LIB_MAJ )
209
212
210
- libcpupower : $(OUTPUT ) libcpupower.so.$(LIB_MAJ )
213
+ libcpupower : $(OUTPUT ) libcpupower.so.$(LIB_VER )
211
214
212
215
# Let all .o files depend on its .c file and all headers
213
216
# Might be worth to put this into utils/Makefile at some point of time
@@ -217,7 +220,7 @@ $(OUTPUT)%.o: %.c
217
220
$(ECHO ) " CC " $@
218
221
$(QUIET ) $(CC ) $(CFLAGS ) -I./lib -I ./utils -o $@ -c $* .c
219
222
220
- $(OUTPUT ) cpupower : $(UTIL_OBJS ) $(OUTPUT ) libcpupower.so.$(LIB_MAJ )
223
+ $(OUTPUT ) cpupower : $(UTIL_OBJS ) $(OUTPUT ) libcpupower.so.$(LIB_VER )
221
224
$(ECHO ) " CC " $@
222
225
ifeq ($(strip $(STATIC ) ) ,true)
223
226
$(QUIET) $(CC) $(CFLAGS) $(LDFLAGS) $(UTIL_OBJS) -lrt -lpci -L$(OUTPUT) -o $@
@@ -262,7 +265,7 @@ update-po: $(OUTPUT)po/$(PACKAGE).pot
262
265
done ;
263
266
endif
264
267
265
- compile-bench : $(OUTPUT ) libcpupower.so.$(LIB_MAJ )
268
+ compile-bench : $(OUTPUT ) libcpupower.so.$(LIB_VER )
266
269
@V=$(V ) confdir=$(confdir ) $(MAKE ) -C bench O=$(OUTPUT )
267
270
268
271
# we compile into subdirectories. if the target directory is not the
0 commit comments