Skip to content

Commit

Permalink
Makefile improvements
Browse files Browse the repository at this point in the history
Preparing Makefile for upgrade to Bluez-5.47
  • Loading branch information
mickiebyrd committed Dec 2, 2017
1 parent 117ac3d commit 87f8433
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bluepy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ BLUEZ_PATH=./bluez-5.29

BLUEZ_SRCS = lib/bluetooth.c lib/hci.c lib/sdp.c lib/uuid.c
BLUEZ_SRCS += attrib/att.c attrib/gatt.c attrib/gattrib.c attrib/utils.c
BLUEZ_SRCS += btio/btio.c src/log.c src/shared/mgmt.c
BLUEZ_SRCS += btio/btio.c src/log.c src/shared/mgmt.c
BLUEZ_SRCS += src/shared/crypto.c src/shared/att.c src/shared/queue.c src/shared/util.c
BLUEZ_SRCS += src/shared/io-glib.c src/shared/timeout-glib.c

Expand All @@ -22,7 +22,7 @@ CPPFLAGS += -I$(BLUEZ_PATH)/attrib -I$(BLUEZ_PATH) -I$(BLUEZ_PATH)/lib -I$(BLUEZ
CPPFLAGS += $(shell pkg-config glib-2.0 --cflags)
LDLIBS += $(shell pkg-config glib-2.0 --libs)

all: bluepy-helper
all: bluepy-helper

bluepy-helper: $(LOCAL_SRCS) $(IMPORT_SRCS)
$(CC) -L. $(CFLAGS) $(CPPFLAGS) -o $@ $(LOCAL_SRCS) $(IMPORT_SRCS) $(LDLIBS)
Expand All @@ -34,7 +34,7 @@ $(IMPORT_SRCS): bluez-src.tgz
.PHONY: bluez-tarfile

bluez-tarfile:
(cd ..; tar czf bluepy/bluez-src.tgz bluez-5.29)
(cd ..; tar czf bluepy/bluez-src.tgz $(BLUEZ_PATH))

GET_SERVICES=get_services.py

Expand All @@ -45,7 +45,7 @@ TAGS: *.c $(BLUEZ_PATH)/attrib/*.[ch] $(BLUEZ_PATH)/btio/*.[ch]
etags $^

clean:
rm -rf *.o bluepy-helper TAGS ./bluez-5.29
rm -rf *.o bluepy-helper TAGS $(BLUEZ_PATH)



0 comments on commit 87f8433

Please sign in to comment.