1 --- src/libXNVCtrl/Makefile 2019-07-30 00:26:56.000000000 +0200
2 +++ src/libXNVCtrl/Makefile 2019-08-02 14:08:56.963744238 +0200
8 +all: $(LIBXNVCTRL) $(LIBXNVCTRL_SHARED)
11 - rm -rf $(LIBXNVCTRL) *~ \
12 + rm -rf $(LIBXNVCTRL) $(LIBXNVCTRL_SHARED)* *~ \
13 $(OUTPUTDIR)/*.o $(OUTPUTDIR)/*.d
14 --- src/libXNVCtrl/xnvctrl.mk 2019-08-02 17:04:08.216230565 +0200
15 +++ src/libXNVCtrl/xnvctrl.mk 2019-08-02 17:08:02.563660632 +0200
18 LIBXNVCTRL = $(OUTPUTDIR)/libXNVCtrl.a
20 +LIBXNVCTRL_SHARED = $(OUTPUTDIR)/libXNVCtrl.so
21 +LIBXNVCTRL_ABI_VERSION_MAJOR = 0
22 +LIBXNVCTRL_ABI_VERSION_MINOR = 0
23 +LIBXNVCTRL_LIBS += -lXext -lX11
25 LIBXNVCTRL_SRC = $(XNVCTRL_DIR)/NVCtrl.c
27 LIBXNVCTRL_OBJ = $(call BUILD_OBJECT_LIST,$(LIBXNVCTRL_SRC))
30 $(LIBXNVCTRL) : $(LIBXNVCTRL_OBJ)
31 $(call quiet_cmd,AR) ru $@ $(LIBXNVCTRL_OBJ)
33 +$(LIBXNVCTRL_SHARED) : $(LIBXNVCTRL_OBJ)
34 + $(CC) -shared $(CFLAGS) $(LDFLAGS) -Wl,-soname=$(notdir $@).${LIBXNVCTRL_ABI_VERSION_MAJOR} -o $@.$(LIBXNVCTRL_ABI_VERSION_MAJOR).$(LIBXNVCTRL_ABI_VERSION_MINOR).0 $^ $(LIBXNVCTRL_LIBS)
35 + ln -s $(notdir $@).$(LIBXNVCTRL_ABI_VERSION_MAJOR).$(LIBXNVCTRL_ABI_VERSION_MINOR).0 $@
36 + ln -s $(notdir $@).$(LIBXNVCTRL_ABI_VERSION_MAJOR).$(LIBXNVCTRL_ABI_VERSION_MINOR).0 $@.$(LIBXNVCTRL_ABI_VERSION_MAJOR)