deamon: compile BTstack Server as libBTstackServer.[dll|so|dsym]

This commit is contained in:
Matthias Ringwald 2018-06-18 11:32:59 +02:00
parent 0834c23d56
commit ad7ef80b35

View File

@ -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