From 7a7dca403897749bd9517dbb94cfc144adfd64f9 Mon Sep 17 00:00:00 2001 From: Pierre-Marc Fournier Date: Mon, 30 Mar 2009 16:13:40 -0400 Subject: [PATCH] continue work on build system --- Makefile.am | 2 +- configure.ac | 2 +- hello/Makefile | 11 ----------- hello/Makefile.am | 7 +++++++ libtracectl/Makefile | 9 --------- libtracing/Makefile | 6 ------ 6 files changed, 9 insertions(+), 28 deletions(-) delete mode 100644 hello/Makefile create mode 100644 hello/Makefile.am delete mode 100644 libtracectl/Makefile delete mode 100644 libtracing/Makefile diff --git a/Makefile.am b/Makefile.am index 2cab962..f1ccfcf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1 +1 @@ -SUBDIRS = libmarkers +SUBDIRS = libmarkers libtracectl libtracing diff --git a/configure.ac b/configure.ac index 6da50cc..c44b565 100644 --- a/configure.ac +++ b/configure.ac @@ -63,5 +63,5 @@ AC_SUBST(KCOMPAT_PATH) # ust/Makefile # ustd/Makefile]) -AC_CONFIG_FILES([Makefile libmarkers/Makefile]) +AC_CONFIG_FILES([Makefile libmarkers/Makefile libtracectl/Makefile libtracing/Makefile]) AC_OUTPUT diff --git a/hello/Makefile b/hello/Makefile deleted file mode 100644 index 8b7e408..0000000 --- a/hello/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -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 diff --git a/hello/Makefile.am b/hello/Makefile.am new file mode 100644 index 0000000..3c96bee --- /dev/null +++ b/hello/Makefile.am @@ -0,0 +1,7 @@ +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 diff --git a/libtracectl/Makefile b/libtracectl/Makefile deleted file mode 100644 index acbfbea..0000000 --- a/libtracectl/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -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 diff --git a/libtracing/Makefile b/libtracing/Makefile deleted file mode 100644 index d8abbbb..0000000 --- a/libtracing/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -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 -- 2.34.1