Make it build using old Make && new jlibtool
[freeradius.git] / Makefile
index a53f2d5..ce04c4b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -64,6 +64,16 @@ all:
 clean:
        @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
        @rm -f *~
+
+ifeq "scripts/jlibtool" "$(JLIBTOOL)"
+all: scripts/jlibtool
+
+scripts/jlibtool: scripts/jlibtool.c
+       $(CC) $^ -o $@
+
+LIBTOOL := $(top_srcdir)/scripts/jlibtool
+endif
+
 endif
 
 .PHONY: tests