You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
490 B
Makefile
28 lines
490 B
Makefile
R=../..
|
|
include ${R}/config.mk
|
|
|
|
.PHONY: all test
|
|
|
|
ifeq ($(WITH_SHARED_LIBRARIES),yes)
|
|
LIB_DEP:=${R}/lib/libmosquitto.so.${SOVERSION}
|
|
else
|
|
LIB_DEP:=${R}/lib/libmosquitto.a
|
|
endif
|
|
|
|
all : auth_plugin.so
|
|
|
|
auth_plugin.so : auth_plugin.c
|
|
$(CC) ${CFLAGS} -fPIC -shared $< -o $@ -I${R}/lib -I${R}/src
|
|
|
|
${R}/lib/libmosquitto.so.${SOVERSION} :
|
|
$(MAKE) -C ${R}/lib
|
|
|
|
${R}/lib/libmosquitto.a :
|
|
$(MAKE) -C ${R}/lib libmosquitto.a
|
|
|
|
clean :
|
|
-rm -f *.o random_client *.gcda *.gcno
|
|
|
|
test : all
|
|
./test.py
|