mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-02-06 02:52:07 +08:00
40 lines
792 B
Makefile
40 lines
792 B
Makefile
R=..
|
|
include ${R}/config.mk
|
|
|
|
LOCAL_CFLAGS+=-fPIC
|
|
LOCAL_CPPFLAGS+=
|
|
LOCAL_LDFLAGS+=-fPIC
|
|
LOCAL_LIBADD+=
|
|
|
|
# ------------------------------------------
|
|
# Targets
|
|
# ------------------------------------------
|
|
.PHONY : really clean install
|
|
|
|
OBJS= \
|
|
memory_common.o \
|
|
strings_common.o \
|
|
time_common.o \
|
|
topic_common.o \
|
|
utf8_common.o
|
|
|
|
all : libmosquitto_common.a
|
|
|
|
install :
|
|
|
|
uninstall :
|
|
|
|
reallyclean : clean
|
|
|
|
clean :
|
|
-rm -f ${OBJS} libmosquitto_common.so.${SOVERSION} libmosquitto_common.so libmosquitto_common.a *.gcno *.gcda
|
|
|
|
libmosquitto_common.so.${SOVERSION} : ${OBJS}
|
|
${CROSS_COMPILE}$(CC) $(LOCAL_LDFLAGS) $^ -o $@ ${LOCAL_LIBADD}
|
|
|
|
libmosquitto_common.a : ${OBJS}
|
|
${CROSS_COMPILE}$(AR) cr $@ $^
|
|
|
|
${OBJS} : %.o: %.c
|
|
${CROSS_COMPILE}${CC} $(LOCAL_CPPFLAGS) $(LOCAL_CFLAGS) -c $< -o $@
|