-SUBDIRS = libmarkers
+SUBDIRS = libmarkers libtracectl libtracing
# ust/Makefile
# ustd/Makefile])
-AC_CONFIG_FILES([Makefile libmarkers/Makefile])
+AC_CONFIG_FILES([Makefile libmarkers/Makefile libtracectl/Makefile libtracing/Makefile])
AC_OUTPUT
+++ /dev/null
-all: hello
-
-hello: hello.c
-#dynamic version
- gcc -g -I../libmarkers -I../share -I../libtracing -L../libmarkers -lmarkers -L../libtracectl -ltracectl -L../libtracing -ltracing $(CFLAGS) -Wl,-rpath ../../../../urcu -o hello hello.c tp.c
- # -Wl,--print-map
-
-clean:
- rm -rf hello *.o
-
-.PHONY: all hello clean
--- /dev/null
+lib_LTLIBRARIES = libmarkers.la
+libmarkers_la_SOURCES = marker.c tracepoint.c immediate.h jhash.h rcupdate.h marker.h tracepoint.h
+
+INCLUDES = -I$(top_builddir)/share
+INCLUDES += -I@URCU_PATH@
+INCLUDES += -I@KCOMPAT_PATH@
+INCLUDES += -I$(top_builddir)/libtracing
+++ /dev/null
-all: libtracectl.so
-
-libtracectl.so: tracectl.c
- gcc -g -shared -fPIC -I../libmarkers -I../libtracing -I../share -I../libustcomm -I. $(CFLAGS) -o libtracectl.so tracectl.c marker-control.c ../share/usterr.c ../libustcomm/ustcomm.c
-
-clean:
- rm -rf *.so *.o
-
-.PHONY: libtracectl.so
+++ /dev/null
-all: libtracing.so
-
-libtracing.so: *.c *.h
- gcc -g -fPIC -I../share -I../libtracing -I../libmarkers $(CFLAGS) -shared -o libtracing.so *.c
-
-.PHONY: libtracing.so all