3 CFLAGS
+=-I
$(LUA_INCDIR
)
5 INSTALL_DATA
=install -m644
8 ALL
=encodings.so hashes.so net.so pposix.so signal.so table.so \
9 ringbuffer.so time.so poll.so compat.so
15 .PHONY
: all install clean
21 $(INSTALL_DATA
) $(ALL
) $(TARGET
)
24 rm -f
$(ALL
) $(patsubst %.so
,%.o
,$(ALL
))
26 encodings.so
: encodings.o
27 $(LD
) $(LDFLAGS
) -o
$@
$< $(LDLIBS
) $(IDNA_LIBS
)
30 $(LD
) $(LDFLAGS
) -o
$@
$< $(LDLIBS
) $(OPENSSL_LIBS
)
33 $(CC
) $(CFLAGS
) -DWITH_
$(RANDOM
) -c
-o
$@
$<
36 $(LD
) $(LDFLAGS
) -o
$@
$< $(LDLIBS
) $(RANDOM_LIBS
)
39 $(LD
) $(LDFLAGS
) -o
$@
$< $(LDLIBS
)
42 $(CC
) $(CFLAGS
) -c
-o
$@
$<
45 $(LD
) $(LDFLAGS
) -o
$@
$< $(LDLIBS
)