]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
moved each library to a subdirectory
authorThomas Tanner <tanner@gmx.de>
Sun, 21 Feb 1999 17:46:05 +0000 (17:46 +0000)
committerThomas Tanner <tanner@gmx.de>
Sun, 21 Feb 1999 17:46:05 +0000 (17:46 +0000)
12 files changed:
depdemo/l1/Makefile.am [new file with mode: 0644]
depdemo/l1/l1.c [moved from depdemo/l1.c with 92% similarity]
depdemo/l1/l1.h [moved from depdemo/l1.h with 100% similarity]
depdemo/l2/Makefile.am [new file with mode: 0644]
depdemo/l2/l2.c [moved from depdemo/l2.c with 89% similarity]
depdemo/l2/l2.h [moved from depdemo/l2.h with 100% similarity]
depdemo/l3/Makefile.am [new file with mode: 0644]
depdemo/l3/l3.c [moved from depdemo/l3.c with 85% similarity]
depdemo/l3/l3.h [moved from depdemo/l3.h with 100% similarity]
depdemo/l4/Makefile.am [new file with mode: 0644]
depdemo/l4/l4.c [moved from depdemo/l4.c with 87% similarity]
depdemo/l4/l4.h [moved from depdemo/l4.h with 100% similarity]

diff --git a/depdemo/l1/Makefile.am b/depdemo/l1/Makefile.am
new file mode 100644 (file)
index 0000000..c5a22ed
--- /dev/null
@@ -0,0 +1,7 @@
+# A brief demonstration of inter-library dependencies
+#
+
+INCLUDES = -I$(top_srcdir)
+
+lib_LTLIBRARIES = libl1.la
+libl1_la_SOURCES = l1.c l1.h
similarity index 92%
rename from depdemo/l1.c
rename to depdemo/l1/l1.c
index d5fe6c8724b94dd314e74ec0f799d755b331c472..2a428ba273017dea5df9424086a9c8e4ba3c269f 100644 (file)
@@ -17,17 +17,17 @@ along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
 USA. */
 
-#include "l1.h"
+#include "l1/l1.h"
 #include <stdio.h>
 
 int    var_l1;
 
 int
-func_l1(int ident)
+func_l1(int indent)
 {
   int i;
   
-  for (i = 0; i < ident; i++)
+  for (i = 0; i < indent; i++)
     putchar(' ');
   printf("l1\n");
   return 0; 
similarity index 100%
rename from depdemo/l1.h
rename to depdemo/l1/l1.h
diff --git a/depdemo/l2/Makefile.am b/depdemo/l2/Makefile.am
new file mode 100644 (file)
index 0000000..6509f3b
--- /dev/null
@@ -0,0 +1,8 @@
+# A brief demonstration of inter-library dependencies
+#
+
+INCLUDES = -I$(top_srcdir)
+
+lib_LTLIBRARIES = libl2.la
+libl2_la_SOURCES = l2.c l2.h
+libl2_la_LIBADD = $(top_builddir)/l1/libl1.la
similarity index 89%
rename from depdemo/l2.c
rename to depdemo/l2/l2.c
index ce728d072453a0a707bced0d349ee73df8d31ebb..b9539fc0a2eaec878bf5e24ad37872ee31eb8ee2 100644 (file)
@@ -17,21 +17,21 @@ along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
 USA. */
 
-#include "l2.h"
+#include "l2/l2.h"
 
-#include "l1.h"
+#include "l1/l1.h"
 #include <stdio.h>
 
 int    var_l2;
 
 int
-func_l2(int ident)
+func_l2(int indent)
 {
   int i;
   
-  for (i = 0; i < ident; i++)
+  for (i = 0; i < indent; i++)
     putchar(' ');
   printf("l2\n");
-  func_l1(ident+1);
+  func_l1(indent+1);
   return 0; 
 }
similarity index 100%
rename from depdemo/l2.h
rename to depdemo/l2/l2.h
diff --git a/depdemo/l3/Makefile.am b/depdemo/l3/Makefile.am
new file mode 100644 (file)
index 0000000..ed28ea1
--- /dev/null
@@ -0,0 +1,8 @@
+# A brief demonstration of inter-library dependencies
+#
+
+INCLUDES = -I$(top_srcdir)
+
+lib_LTLIBRARIES = libl3.la
+libl3_la_SOURCES = l3.c l3.h
+libl3_la_LIBADD = $(top_builddir)/l1/libl1.la $(top_builddir)/l2/libl2.la
similarity index 85%
rename from depdemo/l3.c
rename to depdemo/l3/l3.c
index f2c89780af77bbdf759c1ec2f15cde4b3b9b2e59..d085b56aaa9348e009ad2a1290d1d6f0ff5b955d 100644 (file)
@@ -17,23 +17,23 @@ along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
 USA. */
 
-#include "l3.h"
+#include "l3/l3.h"
 
-#include "l1.h"
-#include "l2.h"
+#include "l1/l1.h"
+#include "l2/l2.h"
 #include <stdio.h>
 
 int    var_l3;
 
 int
-func_l3(int ident)
+func_l3(int indent)
 {
   int i;
   
-  for (i = 0; i < ident; i++)
+  for (i = 0; i < indent; i++)
     putchar(' ');
   printf("l3\n");
-  func_l1(ident+1);
-  func_l2(ident+1);
+  func_l1(indent+1);
+  func_l2(indent+1);
   return 0; 
 }
similarity index 100%
rename from depdemo/l3.h
rename to depdemo/l3/l3.h
diff --git a/depdemo/l4/Makefile.am b/depdemo/l4/Makefile.am
new file mode 100644 (file)
index 0000000..2549363
--- /dev/null
@@ -0,0 +1,8 @@
+# A brief demonstration of inter-library dependencies
+#
+
+INCLUDES = -I$(top_srcdir)
+
+lib_LTLIBRARIES = libl4.la
+libl4_la_SOURCES = l4.c l4.h
+libl4_la_LIBADD = $(top_builddir)/l3/libl3.la $(LIBADD_M)
similarity index 87%
rename from depdemo/l4.c
rename to depdemo/l4/l4.c
index 94019b93766c48d36aaf4f0804b65ec5363aa8d1..d44f50166fe57ee750e017d0d3ae2edd8173d6dd 100644 (file)
@@ -17,9 +17,9 @@ along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
 USA. */
 
-#include "l4.h"
+#include "l4/l4.h"
 
-#include "l3.h"
+#include "l3/l3.h"
 #include <stdio.h>
 
 #ifdef HAVE_MATH_H
@@ -29,15 +29,15 @@ USA. */
 int    var_l4;
 
 int
-func_l4(int ident)
+func_l4(int indent)
 {
   int i;
   
-  for (i = 0; i < ident; i++)
+  for (i = 0; i < indent; i++)
     putchar(' ');
   printf("l4\n");
-  func_l3(ident+1);
-  for (i = 0; i <= ident; i++)
+  func_l3(indent+1);
+  for (i = 0; i <= indent; i++)
     putchar(' ');
   printf("libm [sin(1.5) = %f]\n", sin(1.5));
   return 0; 
similarity index 100%
rename from depdemo/l4.h
rename to depdemo/l4/l4.h