mod_admin_telnet: Identify native bidi sessions
[prosody.git] / util-src / GNUmakefile
blob054c92010e18090eb84ae5e2d02ea55d448dfcee
2 include ../config.unix
4 CFLAGS+=-I$(LUA_INCDIR)
6 INSTALL_DATA=install -m644
7 TARGET?=../util/
9 ALL=encodings.so hashes.so net.so pposix.so signal.so table.so \
10 ringbuffer.so time.so poll.so compat.so
12 ifdef RANDOM
13 ALL+=crand.so
14 endif
16 .PHONY: all install clean
17 .SUFFIXES: .c .o .so
19 all: $(ALL)
21 install: $(ALL)
22 $(INSTALL_DATA) $? $(TARGET)
24 clean:
25 rm -f $(ALL) $(patsubst %.so,%.o,$(ALL))
27 encodings.so: LDLIBS+=$(IDNA_LIBS)
29 hashes.so: LDLIBS+=$(OPENSSL_LIBS)
31 crand.o: CFLAGS+=-DWITH_$(RANDOM)
32 crand.so: LDLIBS+=$(RANDOM_LIBS)
34 %.so: %.o
35 $(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS)