[memprof: 3/76] Move files around. libs to lib/, app to src/ and test to tests/



commit 16c75e362b5aac326672c5e9c4869ea85dda2eee
Author: Holger Hans Peter Freyther <zecke selfish org>
Date:   Thu Jun 4 12:29:32 2009 +0200

    Move files around. libs to lib/, app to src/ and test to tests/
    
    Move the libraries making up this program to lib, move the rest
    to src and the test to tests. Do not yet introduce a recursive
    buildsystem but change the Makefile.am.

 Makefile.am                                      |   76 +++++++++++----------
 intercept.c => lib/intercept.c                   |    0
 intercept.h => lib/intercept.h                   |    0
 memintercept-utils.c => lib/memintercept-utils.c |    0
 memintercept-utils.h => lib/memintercept-utils.h |    0
 memintercept.c => lib/memintercept.c             |    0
 memintercept.h => lib/memintercept.h             |    0
 mi-perfctr.c => lib/mi-perfctr.c                 |    0
 mi-perfctr.h => lib/mi-perfctr.h                 |    0
 perfctr.h => lib/perfctr.h                       |    0
 speedintercept.c => lib/speedintercept.c         |    0
 stack-frame.c => lib/stack-frame.c               |    0
 stack-frame.h => lib/stack-frame.h               |    0
 binfile.c => src/binfile.c                       |    0
 binfile.h => src/binfile.h                       |    0
 binparser.c => src/binparser.c                   |    0
 binparser.h => src/binparser.h                   |    0
 demangle.c => src/demangle.c                     |    0
 elfparser.c => src/elfparser.c                   |    0
 elfparser.h => src/elfparser.h                   |    0
 gui.h => src/gui.h                               |    0
 inode.c => src/inode.c                           |    0
 leakdetect.c => src/leakdetect.c                 |    0
 leakdetect.h => src/leakdetect.h                 |    0
 main.c => src/main.c                             |    0
 memprof.h => src/memprof.h                       |    0
 process.c => src/process.c                       |    0
 process.h => src/process.h                       |    0
 profile.c => src/profile.c                       |    0
 profile.h => src/profile.h                       |    0
 server.c => src/server.c                         |    0
 server.h => src/server.h                         |    2 +-
 stackstash.c => src/stackstash.c                 |    0
 stackstash.h => src/stackstash.h                 |    0
 tree.c => src/tree.c                             |    0
 treeviewutils.c => src/treeviewutils.c           |    0
 treeviewutils.h => src/treeviewutils.h           |    0
 testmemprof.c => tests/testmemprof.c             |    0
 38 files changed, 41 insertions(+), 37 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 3cb4fed..768e2c0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,64 +6,68 @@ pkgdata_DATA = memprof.glade leak.xpm leak.png memprof.png
 
 pkglib_LTLIBRARIES = libmemintercept.la libspeedintercept.la
 
+testmemprof_SOURCES =		\
+	tests/testmemprof.c
+
 memprof_SOURCES =	        \
-	gui.h			\
-	inode.c			\
-	leakdetect.c		\
-	leakdetect.h		\
-	main.c			\
-	memprof.h		\
-	process.c		\
-	process.h		\
-	profile.c		\
-	profile.h		\
-	server.c		\
-	server.h		\
-	stackstash.c		\
-	stackstash.h		\
-	treeviewutils.c		\
-	treeviewutils.h		\
-	tree.c			\
-	binfile.h		\
-	binfile.c		\
-	elfparser.h		\
-	elfparser.c		\
-	binparser.h		\
-	binparser.c		\
-	demangle.c
+	src/gui.h		\
+	src/inode.c		\
+	src/leakdetect.c	\
+	src/leakdetect.h	\
+	src/main.c		\
+	src/memprof.h		\
+	src/process.c		\
+	src/process.h		\
+	src/profile.c		\
+	src/profile.h		\
+	src/server.c		\
+	src/server.h		\
+	src/stackstash.c	\
+	src/stackstash.h	\
+	src/treeviewutils.c	\
+	src/treeviewutils.h	\
+	src/tree.c		\
+	src/binfile.h		\
+	src/binfile.c		\
+	src/elfparser.h		\
+	src/elfparser.c		\
+	src/binparser.h		\
+	src/binparser.c		\
+	src/demangle.c
 
 memprof_LDADD = $(MEMPROF_LIBS)
 memprof_LDFLAGS = -export-dynamic
 
 intercept_sources = 		\
-	intercept.c		\
-	intercept.h		\
-	memintercept-utils.c	\
-	memintercept-utils.h	\
-	stack-frame.c		\
-	stack-frame.h
+	lib/intercept.c		\
+	lib/intercept.h		\
+	lib/memintercept-utils.c\
+	lib/memintercept-utils.h\
+	lib/stack-frame.c	\
+	lib/stack-frame.h
 
 
 libmemintercept_la_SOURCES =    \
 	$(intercept_sources)	\
-	memintercept.c		\
-	memintercept.h	
+	lib/memintercept.c	\
+	lib/memintercept.h
 
 libmemintercept_la_LDFLAGS = -module -avoid-version
 libmemintercept_la_LIBADD = -ldl
 
 libspeedintercept_la_SOURCES =  \
 	$(intercept_sources)	\
-	mi-perfctr.c		\
-	mi-perfctr.h		\
-	perfctr.h		\
-	speedintercept.c
+	lib/mi-perfctr.c	\
+	lib/mi-perfctr.h	\
+	lib/perfctr.h		\
+	lib/speedintercept.c
 
 libspeedintercept_la_LDFLAGS = -module -avoid-version
 libspeedintercept_la_LIBADD = -ldl
 
 INCLUDES = 					   \
 	$(MEMPROF_CFLAGS) 			   \
+	-I$(top_srcdir)/lib			   \
 	-DDATADIR=\"$(pkgdatadir)\"		   \
 	-DPKGLIBDIR=\"$(pkglibdir)\"		   \
 	-DLOCALEDIR=\""$(datadir)/locale"\"
diff --git a/intercept.c b/lib/intercept.c
similarity index 100%
rename from intercept.c
rename to lib/intercept.c
diff --git a/intercept.h b/lib/intercept.h
similarity index 100%
rename from intercept.h
rename to lib/intercept.h
diff --git a/memintercept-utils.c b/lib/memintercept-utils.c
similarity index 100%
rename from memintercept-utils.c
rename to lib/memintercept-utils.c
diff --git a/memintercept-utils.h b/lib/memintercept-utils.h
similarity index 100%
rename from memintercept-utils.h
rename to lib/memintercept-utils.h
diff --git a/memintercept.c b/lib/memintercept.c
similarity index 100%
rename from memintercept.c
rename to lib/memintercept.c
diff --git a/memintercept.h b/lib/memintercept.h
similarity index 100%
rename from memintercept.h
rename to lib/memintercept.h
diff --git a/mi-perfctr.c b/lib/mi-perfctr.c
similarity index 100%
rename from mi-perfctr.c
rename to lib/mi-perfctr.c
diff --git a/mi-perfctr.h b/lib/mi-perfctr.h
similarity index 100%
rename from mi-perfctr.h
rename to lib/mi-perfctr.h
diff --git a/perfctr.h b/lib/perfctr.h
similarity index 100%
rename from perfctr.h
rename to lib/perfctr.h
diff --git a/speedintercept.c b/lib/speedintercept.c
similarity index 100%
rename from speedintercept.c
rename to lib/speedintercept.c
diff --git a/stack-frame.c b/lib/stack-frame.c
similarity index 100%
rename from stack-frame.c
rename to lib/stack-frame.c
diff --git a/stack-frame.h b/lib/stack-frame.h
similarity index 100%
rename from stack-frame.h
rename to lib/stack-frame.h
diff --git a/binfile.c b/src/binfile.c
similarity index 100%
rename from binfile.c
rename to src/binfile.c
diff --git a/binfile.h b/src/binfile.h
similarity index 100%
rename from binfile.h
rename to src/binfile.h
diff --git a/binparser.c b/src/binparser.c
similarity index 100%
rename from binparser.c
rename to src/binparser.c
diff --git a/binparser.h b/src/binparser.h
similarity index 100%
rename from binparser.h
rename to src/binparser.h
diff --git a/demangle.c b/src/demangle.c
similarity index 100%
rename from demangle.c
rename to src/demangle.c
diff --git a/elfparser.c b/src/elfparser.c
similarity index 100%
rename from elfparser.c
rename to src/elfparser.c
diff --git a/elfparser.h b/src/elfparser.h
similarity index 100%
rename from elfparser.h
rename to src/elfparser.h
diff --git a/gui.h b/src/gui.h
similarity index 100%
rename from gui.h
rename to src/gui.h
diff --git a/inode.c b/src/inode.c
similarity index 100%
rename from inode.c
rename to src/inode.c
diff --git a/leakdetect.c b/src/leakdetect.c
similarity index 100%
rename from leakdetect.c
rename to src/leakdetect.c
diff --git a/leakdetect.h b/src/leakdetect.h
similarity index 100%
rename from leakdetect.h
rename to src/leakdetect.h
diff --git a/main.c b/src/main.c
similarity index 100%
rename from main.c
rename to src/main.c
diff --git a/memprof.h b/src/memprof.h
similarity index 100%
rename from memprof.h
rename to src/memprof.h
diff --git a/process.c b/src/process.c
similarity index 100%
rename from process.c
rename to src/process.c
diff --git a/process.h b/src/process.h
similarity index 100%
rename from process.h
rename to src/process.h
diff --git a/profile.c b/src/profile.c
similarity index 100%
rename from profile.c
rename to src/profile.c
diff --git a/profile.h b/src/profile.h
similarity index 100%
rename from profile.h
rename to src/profile.h
diff --git a/server.c b/src/server.c
similarity index 100%
rename from server.c
rename to src/server.c
diff --git a/server.h b/src/server.h
similarity index 99%
rename from server.h
rename to src/server.h
index 1df2257..0bd1f22 100644
--- a/server.h
+++ b/src/server.h
@@ -21,7 +21,7 @@
 /*====*/
 
 #include <glib-object.h>
-#include <process.h>
+#include "process.h"
 
 #define MP_TYPE_SERVER            (mp_server_get_type ())
 #define MP_SERVER(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), MP_TYPE_SERVER, MPServer))
diff --git a/stackstash.c b/src/stackstash.c
similarity index 100%
rename from stackstash.c
rename to src/stackstash.c
diff --git a/stackstash.h b/src/stackstash.h
similarity index 100%
rename from stackstash.h
rename to src/stackstash.h
diff --git a/tree.c b/src/tree.c
similarity index 100%
rename from tree.c
rename to src/tree.c
diff --git a/treeviewutils.c b/src/treeviewutils.c
similarity index 100%
rename from treeviewutils.c
rename to src/treeviewutils.c
diff --git a/treeviewutils.h b/src/treeviewutils.h
similarity index 100%
rename from treeviewutils.h
rename to src/treeviewutils.h
diff --git a/testmemprof.c b/tests/testmemprof.c
similarity index 100%
rename from testmemprof.c
rename to tests/testmemprof.c



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]