mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 03:35:20 +00:00
deamon: compile BTstack Server as libBTstackServer.[dll|so|dsym]
This commit is contained in:
parent
0834c23d56
commit
ad7ef80b35
@ -72,18 +72,22 @@ BTdaemon_SOURCES = \
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
# libBTstack.a
|
||||
all: libBTstack.$(BTSTACK_LIB_EXTENSION) BTdaemon
|
||||
all: libBTstack.$(BTSTACK_LIB_EXTENSION) BTdaemon libBTstackServer.$(BTSTACK_LIB_EXTENSION)
|
||||
|
||||
libBTstack.$(BTSTACK_LIB_EXTENSION): $(libBTstack_SOURCES)
|
||||
$(BTSTACK_ROOT)/tool/get_version.sh
|
||||
$(CC) $(CFLAGS) $(BTSTACK_LIB_LDFLAGS) -o $@ $^ $(LDFLAGS)
|
||||
$(CC) $(CFLAGS) $(BTSTACK_LIB_LDFLAGS) $(LDFLAGS) $^ -o $@
|
||||
|
||||
# libBTstack.a: $(libBTstack_SOURCES:.c=.o) $(libBTstack_SOURCES:.m=.o)
|
||||
# ar cru $@ $(libBTstack_SOURCES:.c=.o) $(libBTstack_SOURCES:.m=.o)
|
||||
# ranlib $@
|
||||
|
||||
BTdaemon: $(BTdaemon_SOURCES)
|
||||
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LIBUSB_CFLAGS) $(LIBUSB_LDFLAGS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) $(LIBUSB_CFLAGS) $(LIBUSB_LDFLAGS) -o $@ $^
|
||||
|
||||
libBTstackServer.$(BTSTACK_LIB_EXTENSION): $(BTdaemon_SOURCES)
|
||||
$(BTSTACK_ROOT)/tool/get_version.sh
|
||||
$(CC) $(CFLAGS) $(BTSTACK_LIB_LDFLAGS) $(LIBUSB_CFLAGS) $(LIBUSB_LDFLAGS) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
clean:
|
||||
rm -rf libBTstack* BTdaemon *.o
|
||||
|
Loading…
x
Reference in New Issue
Block a user