Merge all Makefile.am in /src tree (to have less auto-generated files
authorIvan Maidanski <ivmai@mail.ru>
Tue, 9 Aug 2011 14:50:32 +0000 (18:50 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 9 Aug 2011 14:50:32 +0000 (18:50 +0400)
in the project subdirectories).

* configure.ac (AC_CONFIG_FILES): Remove src/atomic_ops/Makefile,
src/atomic_ops/sysdeps/Makefile.
* src/Makefile.am (SUBDIRS): Remove.
* src/Makefile.am (EXTRA_DIST, privatedir, private_HEADERS): Add from
src/atomic_ops/Makefile.am and src/atomic_ops/sysdeps/Makefile.am.
* src/Makefile.am (generalize-small): Move from
src/atomic_ops/Makefile.am.
* src/atomic_ops/Makefile.am, src/atomic_ops/sysdeps/Makefile.am:
Remove.

TODO
configure.ac
src/Makefile.am
src/atomic_ops/Makefile.am [deleted file]
src/atomic_ops/sysdeps/Makefile.am [deleted file]

diff --git a/TODO b/TODO
index 9297b85..e5e3b42 100644 (file)
--- a/TODO
+++ b/TODO
@@ -11,5 +11,3 @@ Fix make distcheck: fails with "config.h: No such file or directory"
 
 Remove list_atomic.c and test_atomic_include.h (as auto-generated).
 Make sure they appear in the dist tarball.
-
-Merge all Makefile.am in /src tree (to have less autogenerated files).
index 7f1d8ea..c1dca75 100644 (file)
@@ -82,7 +82,7 @@ AC_SUBST(THREADDLLIBS)
 AM_CONDITIONAL(NEED_ASM, test x$need_asm = xtrue)
 
 AC_CONFIG_FILES([Makefile atomic_ops.pc doc/Makefile src/Makefile \
-    src/atomic_ops/Makefile src/atomic_ops/sysdeps/Makefile tests/Makefile])
+    tests/Makefile])
 AC_CONFIG_COMMANDS([default],[[]],[[
 PICFLAG="${PICFLAG}"
 CC="${CC}"
index 7ca41ff..3b11a2a 100644 (file)
@@ -1,5 +1,3 @@
-SUBDIRS=atomic_ops
-
 AM_CFLAGS=@PICFLAG@
 
 include_HEADERS=atomic_ops.h atomic_ops_stack.h atomic_ops_malloc.h
@@ -12,5 +10,71 @@ endif
 
 libatomic_ops_gpl_a_SOURCES = atomic_ops_stack.c atomic_ops_malloc.c
 
-EXTRA_DIST=Makefile.msft
+EXTRA_DIST=Makefile.msft \
+        atomic_ops/generalize-small.template atomic_ops/sysdeps/sunc/sparc.S
+
+#Private Headers
+privatedir=${includedir}/atomic_ops/
+private_HEADERS=atomic_ops/generalize.h atomic_ops/generalize-small.h \
+          atomic_ops/sysdeps/README \
+          atomic_ops/sysdeps/acquire_release_volatile.h \
+          atomic_ops/sysdeps/aligned_atomic_load_store.h \
+          atomic_ops/sysdeps/all_acquire_release_volatile.h \
+          atomic_ops/sysdeps/all_aligned_atomic_load_store.h \
+          atomic_ops/sysdeps/all_atomic_load_store.h \
+          atomic_ops/sysdeps/ao_t_is_int.h \
+          atomic_ops/sysdeps/atomic_load_store.h \
+          atomic_ops/sysdeps/char_acquire_release_volatile.h \
+          atomic_ops/sysdeps/char_atomic_load_store.h \
+          atomic_ops/sysdeps/emul_cas.h \
+          atomic_ops/sysdeps/generic_pthread.h \
+          atomic_ops/sysdeps/int_acquire_release_volatile.h \
+          atomic_ops/sysdeps/int_aligned_atomic_load_store.h \
+          atomic_ops/sysdeps/int_atomic_load_store.h \
+          atomic_ops/sysdeps/ordered.h \
+          atomic_ops/sysdeps/ordered_except_wr.h \
+          atomic_ops/sysdeps/read_ordered.h \
+          atomic_ops/sysdeps/short_acquire_release_volatile.h \
+          atomic_ops/sysdeps/short_aligned_atomic_load_store.h \
+          atomic_ops/sysdeps/short_atomic_load_store.h \
+          atomic_ops/sysdeps/standard_ao_double_t.h \
+          atomic_ops/sysdeps/test_and_set_t_is_ao_t.h \
+          atomic_ops/sysdeps/test_and_set_t_is_char.h \
+        \
+          atomic_ops/sysdeps/armcc/arm_v6.h \
+        \
+          atomic_ops/sysdeps/gcc/alpha.h \
+          atomic_ops/sysdeps/gcc/arm.h \
+          atomic_ops/sysdeps/gcc/avr32.h \
+          atomic_ops/sysdeps/gcc/cris.h \
+          atomic_ops/sysdeps/gcc/hppa.h \
+          atomic_ops/sysdeps/gcc/ia64.h \
+          atomic_ops/sysdeps/gcc/m68k.h \
+          atomic_ops/sysdeps/gcc/mips.h \
+          atomic_ops/sysdeps/gcc/powerpc.h \
+          atomic_ops/sysdeps/gcc/s390.h \
+          atomic_ops/sysdeps/gcc/sh.h \
+          atomic_ops/sysdeps/gcc/sparc.h \
+          atomic_ops/sysdeps/gcc/x86.h \
+          atomic_ops/sysdeps/gcc/x86_64.h \
+        \
+          atomic_ops/sysdeps/hpc/hppa.h \
+          atomic_ops/sysdeps/hpc/ia64.h \
+        \
+          atomic_ops/sysdeps/ibmc/powerpc.h \
+        \
+          atomic_ops/sysdeps/icc/ia64.h \
+        \
+          atomic_ops/sysdeps/msftc/arm.h \
+          atomic_ops/sysdeps/msftc/common32_defs.h \
+          atomic_ops/sysdeps/msftc/x86.h \
+          atomic_ops/sysdeps/msftc/x86_64.h \
+        \
+          atomic_ops/sysdeps/sunc/sparc.h \
+          atomic_ops/sysdeps/sunc/x86.h \
+          atomic_ops/sysdeps/sunc/x86_64.h
 
+atomic_ops/generalize-small.h: atomic_ops/generalize-small.template
+       sed -e s:XSIZE:char:g -e s:XCTYPE:char:g $? > $@
+       sed -e s:XSIZE:short:g -e s:XCTYPE:short:g $? >> $@
+       sed -e s:XSIZE:int:g -e s:XCTYPE:int:g $? >> $@
diff --git a/src/atomic_ops/Makefile.am b/src/atomic_ops/Makefile.am
deleted file mode 100644 (file)
index 8000273..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-SUBDIRS=sysdeps
-
-EXTRA_DIST=generalize-small.template
-
-#Private Headers
-private_HEADERS=generalize.h generalize-small.h
-privatedir=${includedir}/atomic_ops/
-
-generalize-small.h: generalize-small.template
-       sed -e s:XSIZE:char:g -e s:XCTYPE:char:g $? > $@
-       sed -e s:XSIZE:short:g -e s:XCTYPE:short:g $? >> $@
-       sed -e s:XSIZE:int:g -e s:XCTYPE:int:g $? >> $@
diff --git a/src/atomic_ops/sysdeps/Makefile.am b/src/atomic_ops/sysdeps/Makefile.am
deleted file mode 100644 (file)
index 5f13857..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-#General sysdep utility headers, followed by the arch-specific ones
-nobase_sysdep_HEADERS= generic_pthread.h \
-         atomic_load_store.h \
-         aligned_atomic_load_store.h \
-         acquire_release_volatile.h \
-         char_acquire_release_volatile.h \
-         char_atomic_load_store.h \
-         short_acquire_release_volatile.h \
-         short_aligned_atomic_load_store.h \
-         short_atomic_load_store.h \
-         int_acquire_release_volatile.h \
-         int_aligned_atomic_load_store.h \
-         int_atomic_load_store.h \
-         all_acquire_release_volatile.h \
-         all_aligned_atomic_load_store.h \
-         all_atomic_load_store.h \
-         read_ordered.h \
-         ordered_except_wr.h \
-         ordered.h \
-         ao_t_is_int.h \
-         test_and_set_t_is_ao_t.h \
-         test_and_set_t_is_char.h \
-         emul_cas.h \
-         standard_ao_double_t.h \
-         README \
-       \
-         armcc/arm_v6.h \
-       \
-         gcc/alpha.h gcc/arm.h gcc/avr32.h gcc/cris.h \
-         gcc/hppa.h gcc/ia64.h gcc/m68k.h \
-         gcc/mips.h gcc/powerpc.h gcc/s390.h \
-         gcc/sh.h gcc/sparc.h gcc/x86.h gcc/x86_64.h \
-       \
-         hpc/hppa.h hpc/ia64.h \
-       \
-         ibmc/powerpc.h \
-       \
-         icc/ia64.h \
-       \
-         msftc/arm.h msftc/common32_defs.h msftc/x86.h \
-         msftc/x86_64.h \
-       \
-         sunc/sparc.h sunc/x86.h sunc/x86_64.h
-
-sysdepdir= ${includedir}/atomic_ops/sysdeps
-
-# A few architectures require special .S files
-EXTRA_DIST = sunc/sparc.S