File tree 11 files changed +12
-10
lines changed
11 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ DEST_INST_DIR = $(ROOTDIR)$(INST_DIR)
10
10
all : $(APP_NAME )
11
11
12
12
$(APP_NAME ) : $(OBJECTS )
13
- $(CC ) -o $@ $(OBJECTS ) $( LDFLAGS ) $(LDLIBS )
13
+ $(CC ) $( LDFLAGS ) -o $@ $(OBJECTS ) $(LDLIBS )
14
14
15
15
install : $(APP_NAME )
16
16
install -D $(APP_NAME ) $(DEST_INST_DIR ) /$(APP_NAME )
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ $(STATIC_LIB): $(OBJECTS)
25
25
ar rcs $(STATIC_LIB) $(OBJECTS)
26
26
27
27
$(SHARED_LIB): $(OBJECTS)
28
- $(CC) -shared -Wl,-soname,$(SO_NAME) $(LDFLAGS) $(LDLIBS ) \
29
- -o $(SHARED_LIB ) $(OBJECTS )
28
+ $(CC) -shared -Wl,-soname,$(SO_NAME) $(LDFLAGS) -o $(SHARED_LIB ) \
29
+ $(OBJECTS ) $(LDLIBS )
30
30
31
31
install: install_header install_static install_shared
32
32
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ DEST_INST_DIR = $(INST_DIR)
16
16
all : $(LIB_NAME )
17
17
18
18
$(LIB_NAME ) : $(OBJECTS )
19
- $(CC ) -shared $(LDFLAGS ) $( LDLIBS ) -o $(LIB_NAME ) $(OBJECTS )
19
+ $(CC ) -shared $(LDFLAGS ) -o $(LIB_NAME ) $(OBJECTS ) $( LDLIBS )
20
20
21
21
install : $(LIB_NAME )
22
22
install -D $(LIB_NAME ) $(DEST_INST_DIR ) /$(LIB_NAME )
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ SOURCES = lswm.c
8
8
9
9
CFLAGS += -I@top_builddir@/libcwiid
10
10
LDFLAGS += -L@top_builddir@/libcwiid
11
- LDLIBS += -lcwiid
11
+ LDLIBS += -lcwiid -lbluetooth
12
12
INST_DIR = @bindir@
13
13
14
14
include $(COMMON ) /include/app.mak
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ ifdef ROOTDIR
7
7
endif
8
8
9
9
all :
10
- $(PYTHON ) setup.py build_ext $(DEBUGFLAGS ) -I@top_builddir@/libcwiid -L@top_builddir@/libcwiid -lcwiid
10
+ $(PYTHON ) setup.py build_ext $(DEBUGFLAGS ) -I@top_builddir@/libcwiid -L@top_builddir@/libcwiid -lcwiid -lbluetooth
11
11
12
12
install :
13
13
$(PYTHON ) setup.py install --install-lib=${libdir} /python@PYTHON_VERSION@/site-packages $(SET_ROOT_DIR )
Original file line number Diff line number Diff line change 24
24
#include "structmember.h"
25
25
#include <errno.h>
26
26
#include <bluetooth/bluetooth.h>
27
- #include " cwiid.h"
27
+ #include < cwiid.h>
28
28
29
29
#if (PY_VERSION_HEX < 0x02050000 )
30
30
#ifndef PY_SSIZE_T_MIN
Original file line number Diff line number Diff line change 24
24
25
25
#include <stdlib.h>
26
26
27
- #include " cwiid.h"
27
+ #include < cwiid.h>
28
28
#include "structmember.h"
29
29
30
30
/* externally defined types */
Original file line number Diff line number Diff line change 2
2
#include <stdio.h>
3
3
#include <stdlib.h>
4
4
5
+ #include <bluetooth/bluetooth.h>
5
6
#include <cwiid.h>
6
7
7
8
/* This is a sample program written to demonstrate basic CWiid libwiimote
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ SOURCES = main.c interface.c support.c
8
8
9
9
CFLAGS += @GTK_CFLAGS@ -I@top_builddir@/libcwiid
10
10
LDFLAGS += -L@top_builddir@/libcwiid
11
- LDLIBS += @GTK_LIBS@ -lm -lcwiid
11
+ LDLIBS += @GTK_LIBS@ -lcwiid -lbluetooth -lm
12
12
INST_DIR = @bindir@
13
13
14
14
include $(COMMON ) /include/app.mak
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ CFLAGS += -I@top_builddir@/libcwiid \
14
14
-DWMINPUT_CONFIG_DIR=\"$(WMINPUT_CONFIG_DIR ) \" \
15
15
-DCWIID_PLUGINS_DIR=\"$(CWIID_PLUGINS_DIR ) \"
16
16
17
- LDLIBS += -lcwiid -ldl
17
+ LDLIBS += -lcwiid -lbluetooth - ldl -lpthread
18
18
LDFLAGS += -L@top_builddir@/libcwiid -rdynamic
19
19
INST_DIR = @bindir@
20
20
Original file line number Diff line number Diff line change 30
30
#include <signal.h>
31
31
#include <sys/types.h>
32
32
#include <unistd.h>
33
+ #include <bluetooth/bluetooth.h>
33
34
34
35
#include <cwiid.h>
35
36
You can’t perform that action at this time.
0 commit comments