mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-02-05 18:50:06 +08:00
Refactor UTF-8 code to common static library.
This commit is contained in:
35
libcommon/Makefile
Normal file
35
libcommon/Makefile
Normal file
@@ -0,0 +1,35 @@
|
||||
R=..
|
||||
include ${R}/config.mk
|
||||
|
||||
LOCAL_CFLAGS+=-fPIC
|
||||
LOCAL_CPPFLAGS+=
|
||||
LOCAL_LDFLAGS+=-fPIC
|
||||
LOCAL_LIBADD+=
|
||||
|
||||
# ------------------------------------------
|
||||
# Targets
|
||||
# ------------------------------------------
|
||||
.PHONY : really clean install
|
||||
|
||||
OBJS= \
|
||||
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 $@
|
||||
Reference in New Issue
Block a user