Debian Codegraph @

apps/mosquitto_passwd/Makefile

raw
1 R=../..
2 include ${R}/config.mk
3
4 LOCAL_CFLAGS+=
5 LOCAL_CPPFLAGS+=-I${R}/lib
6 LOCAL_LDFLAGS+=
7 LOCAL_LDADD+=-lcrypto ${LIBMOSQ_COMMON}
8
9 .PHONY: all install uninstall clean reallyclean
10
11 OBJS= \
12 mosquitto_passwd.o \
13 get_password.o \
14
15 OBJS_EXTERNAL=
16
17
18 ifeq ($(WITH_TLS),yes)
19 ifeq ($(WITH_FUZZING),yes)
20 all : mosquitto_passwd.a
21 else
22 all : mosquitto_passwd
23 endif
24 else
25 all:
26 endif
27
28 mosquitto_passwd : ${OBJS} ${OBJS_EXTERNAL}
29 ${CROSS_COMPILE}${CC} ${LOCAL_LDFLAGS} $^ -o $@ $(LOCAL_LDADD)
30
31 mosquitto_passwd.a : ${OBJS} ${OBJS_EXTERNAL}
32 ${CROSS_COMPILE}$(AR) cr $@ $^
33
34 ${OBJS} : %.o: %.c
35 ${CROSS_COMPILE}${CC} $(LOCAL_CPPFLAGS) $(LOCAL_CFLAGS) -c $< -o $@
36
37 install : all
38 ifeq ($(WITH_TLS),yes)
39 $(INSTALL) -d "${DESTDIR}$(prefix)/bin"
40 $(INSTALL) ${STRIP_OPTS} mosquitto_passwd "${DESTDIR}${prefix}/bin/mosquitto_passwd"
41 endif
42
43 uninstall :
44 -rm -f "${DESTDIR}${prefix}/bin/mosquitto_passwd"
45
46 clean :
47 -rm -f *.o *.a mosquitto_passwd *.gcda *.gcno
48
49 reallyclean : clean
50 -rm -rf *.orig *.db