mod_s2s: Remove warning about hostname mismatch
[prosody.git] / util-src / makefile
blob700633b40743b5575a64f8842784272c7349885f
1 include ../config.unix
3 CFLAGS+=-I$(LUA_INCDIR)
5 INSTALL_DATA=install -m644
6 TARGET?=../util/
8 ALL=encodings.so hashes.so net.so pposix.so signal.so table.so \
9 ringbuffer.so time.so poll.so compat.so
11 .ifdef $(RANDOM)
12 ALL+=crand.so
13 .endif
15 .PHONY: all install clean
16 .SUFFIXES: .c .o .so
18 all: $(ALL)
20 install: $(ALL)
21 $(INSTALL_DATA) $(ALL) $(TARGET)
23 clean:
24 rm -f $(ALL) $(patsubst %.so,%.o,$(ALL))
26 encodings.so: encodings.o
27 $(LD) $(LDFLAGS) -o $@ $< $(LDLIBS) $(IDNA_LIBS)
29 hashes.so: hashes.o
30 $(LD) $(LDFLAGS) -o $@ $< $(LDLIBS) $(OPENSSL_LIBS)
32 crand.o: crand.c
33 $(CC) $(CFLAGS) -DWITH_$(RANDOM) -c -o $@ $<
35 crand.so: crand.o
36 $(LD) $(LDFLAGS) -o $@ $< $(LDLIBS) $(RANDOM_LIBS)
38 %.so: %.o
39 $(LD) $(LDFLAGS) -o $@ $< $(LDLIBS)
41 .c.o:
42 $(CC) $(CFLAGS) -c -o $@ $<
44 .o.so:
45 $(LD) $(LDFLAGS) -o $@ $< $(LDLIBS)