|
Revision 153, 0.9 kB
(checked in by dsmith, 1 year ago)
|
#52: added libcwiid package configuration file
|
| Line | |
|---|
| 1 |
#Copyright (C) 2006 L. Donnie Smith |
|---|
| 2 |
|
|---|
| 3 |
include @top_builddir@/defs.mak |
|---|
| 4 |
|
|---|
| 5 |
LIB_NAME = cwiid |
|---|
| 6 |
MAJOR_VER = 1 |
|---|
| 7 |
MINOR_VER = 0 |
|---|
| 8 |
SOURCES = bluetooth.c command.c connect.c interface.c process.c state.c \ |
|---|
| 9 |
thread.c util.c |
|---|
| 10 |
LDLIBS += -lbluetooth -lpthread -lrt |
|---|
| 11 |
LIB_INST_DIR = @libdir@ |
|---|
| 12 |
INC_INST_DIR = @includedir@ |
|---|
| 13 |
DEST_PKG_CONFIG_INST_DIR = $(ROOTDIR)@libdir@/pkgconfig |
|---|
| 14 |
|
|---|
| 15 |
include $(COMMON)/include/lib.mak |
|---|
| 16 |
|
|---|
| 17 |
$(SHARED_LIB): $(SO_NAME) $(LINK_NAME) |
|---|
| 18 |
|
|---|
| 19 |
$(SO_NAME): |
|---|
| 20 |
ln -sf $(SHARED_LIB) $(SO_NAME) |
|---|
| 21 |
|
|---|
| 22 |
$(LINK_NAME): |
|---|
| 23 |
ln -sf $(SO_NAME) $(LINK_NAME) |
|---|
| 24 |
|
|---|
| 25 |
install: install_pkgconfig |
|---|
| 26 |
|
|---|
| 27 |
uninstall: uninstall_pkgconfig |
|---|
| 28 |
|
|---|
| 29 |
install_pkgconfig: |
|---|
| 30 |
install -D -m 644 cwiid.pc $(DEST_PKG_CONFIG_INST_DIR)/cwiid.pc |
|---|
| 31 |
|
|---|
| 32 |
uninstall_pkgconfig: |
|---|
| 33 |
rm -f $(DEST_PKG_CONFIG_INST_DIR)/cwiid.pc |
|---|
| 34 |
|
|---|
| 35 |
clean: remove_links |
|---|
| 36 |
|
|---|
| 37 |
remove_links: |
|---|
| 38 |
rm -f $(SO_NAME) $(LINK_NAME) |
|---|
| 39 |
|
|---|
| 40 |
distclean: clean |
|---|
| 41 |
rm Makefile cwiid.pc |
|---|
| 42 |
|
|---|
| 43 |
.PHONY: distclean clean make_links remove_links |
|---|