Changeset 6af678616531eb1f3d3d0a052313ef9d8125bac7
- Timestamp:
- 02/05/10 03:53:41 (3 years ago)
- Author:
- L. Donnie Smith <donnie.smith@…>
- Children:
- 69c758d6b8d0796f2d72a6d334be1e259fc45ab4
- Parents:
- 2100f14c612471084434b364501e3818c7f4144e
- git-committer:
- L. Donnie Smith <donnie.smith@…> (02/05/10 03:53:41)
- Message:
-
fix link options for --as-needed (#90)
also fix a couple of includes
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r49e0132
|
r6af6786
|
|
| 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) |
-
|
r49e0132
|
r6af6786
|
|
| 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 |
-
|
r49e0132
|
r6af6786
|
|
| 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) |
-
|
r8dfafdd
|
r6af6786
|
|
| 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 | |
-
|
r20376e4
|
r6af6786
|
|
| 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: |
-
|
r2100f14
|
r6af6786
|
|
| 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) |
-
|
r2100f14
|
r6af6786
|
|
| 25 | 25 | #include <stdlib.h> |
| 26 | 26 | |
| 27 | | #include "cwiid.h" |
| | 27 | #include <cwiid.h> |
| 28 | 28 | #include "structmember.h" |
| 29 | 29 | |
-
|
rc12d0e1
|
r6af6786
|
|
| 3 | 3 | #include <stdlib.h> |
| 4 | 4 | |
| | 5 | #include <bluetooth/bluetooth.h> |
| 5 | 6 | #include <cwiid.h> |
| 6 | 7 | |
-
|
r8dfafdd
|
r6af6786
|
|
| 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 | |
-
|
r6f6c678
|
r6af6786
|
|
| 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@ |
-
|
r2100f14
|
r6af6786
|
|
| 31 | 31 | #include <sys/types.h> |
| 32 | 32 | #include <unistd.h> |
| | 33 | #include <bluetooth/bluetooth.h> |
| 33 | 34 | |
| 34 | 35 | #include <cwiid.h> |