-SUBDIRS = libust hello libmallocwrap ustd
+SUBDIRS = libust hello libmallocwrap ustd ust
# ust/Makefile
# ustd/Makefile])
-AC_CONFIG_FILES([Makefile libust/Makefile hello/Makefile libmallocwrap/Makefile ustd/Makefile])
+AC_CONFIG_FILES([Makefile libust/Makefile hello/Makefile libmallocwrap/Makefile ustd/Makefile ust/Makefile])
AC_OUTPUT
+++ /dev/null
-all: ust
-
-ust: ust.c
- gcc -g -Wall -I ../libustcomm -I. -I ../../../../libkcompat -o ust ust.c ../libustcomm/ustcomm.c
-
-.PHONY: ust
--- /dev/null
+bin_PROGRAMS = ust
+ust_SOURCES = ust.c $(top_builddir)/libustcomm/ustcomm.c $(top_builddir)/libustcomm/ustcomm.h
+
+#INCLUDES = -I$(top_builddir)/share
+#INCLUDES += -I@URCU_PATH@
+INCLUDES = -I@KCOMPAT_PATH@
+#INCLUDES += -I$(top_builddir)/libust
+INCLUDES += -I$(top_builddir)/libustcomm
char *msg = argv[2];
- send_message(pid, msg, NULL);
+ struct ustcomm_connection conn;
+
+ ustcomm_connect_app(pid, &conn);
+ ustcomm_send_request(&conn, msg, NULL);
return 0;
}