# Administration utilities Makefile
DEFS=
-CFLAGS:=-g -O2 -I. -I/usr/include/libxml2 -I/usr/include/glib-1.2 -I$(PORTALS)/include \
--I/usr/lib/glib/include -I$(srcdir)/../include -Wall
+CFLAGS:=-g -O2 -I$(top_srcdir)/utils -I$(PORTALS)/include -I$(srcdir)/../include -Wall -L$(PORTALSLIB)
KFLAGS:=
-CPPFLAGS =
-obdctl_LDADD := -lncurses -lxml2 # -lefence
-lctl_LDADD := -lncurses
-sbin_PROGRAMS = obdctl lctl
-obdctl_SOURCES = parser.c obdctl.c parser.h
-lctl_SOURCES = parser.c network.c device.c debug.c lctl.c lctl.h parser.h
+CPPFLAGS = $(HAVE_LIBREADLINE)
+obdctl_LDADD := $(LIBREADLINE)
+lctl_LDADD := $(LIBREADLINE) -lptlctl
+sbin_PROGRAMS = lctl obdctl
+sbin_SCRIPTS = lconf lmc
+obdctl_SOURCES = parser.c obdctl.c obd.c parser.h obdctl.h
+lctl_SOURCES = parser.c obd.c lctl.c parser.h
+EXTRA_DIST = $(sbin_SCRIPTS)
include $(top_srcdir)/Rules