diff options
| author | Ivan Maidanski <ivmai@mail.ru> | 2013-02-09 10:22:59 +0400 |
|---|---|---|
| committer | Ivan Maidanski <ivmai@mail.ru> | 2013-02-09 10:22:59 +0400 |
| commit | 1e6c8b10532c25cea75c6507974611b789358172 (patch) | |
| tree | 901592eb31d318d737b099ec9ef18eeec6be9e27 /src/Makefile.am | |
| parent | 45de1972511dc1276b0e6554de645521ffffae4e (diff) | |
| parent | 31aba24cf225fde556bd005a0a92278f885822b8 (diff) | |
| download | libatomic_ops-1e6c8b10532c25cea75c6507974611b789358172.tar.gz | |
Merge branch 'master' into add-aarch64-support
Diffstat (limited to 'src/Makefile.am')
| -rw-r--r-- | src/Makefile.am | 134 |
1 files changed, 115 insertions, 19 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 9f8f555..3b537b1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,7 @@ AM_CFLAGS=@PICFLAG@ AM_CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src -include_HEADERS=atomic_ops.h atomic_ops_stack.h atomic_ops_malloc.h +include_HEADERS = atomic_ops.h atomic_ops_stack.h atomic_ops_malloc.h lib_LTLIBRARIES = libatomic_ops.la libatomic_ops_gpl.la if NEED_ASM libatomic_ops_la_SOURCES = atomic_ops.c atomic_ops_sysdeps.S @@ -13,35 +13,50 @@ libatomic_ops_la_LDFLAGS = -version-info 1:3:0 -no-undefined libatomic_ops_gpl_la_SOURCES = atomic_ops_stack.c atomic_ops_malloc.c libatomic_ops_gpl_la_LDFLAGS = -version-info 1:3:0 -no-undefined -EXTRA_DIST=Makefile.msft atomic_ops/sysdeps/README \ - atomic_ops/generalize-small.template atomic_ops/sysdeps/sunc/sparc.S +EXTRA_DIST = Makefile.msft atomic_ops/sysdeps/README \ + atomic_ops/generalize-arithm.template \ + atomic_ops/generalize-small.template \ + atomic_ops/sysdeps/ao_t_is_int.template \ + atomic_ops/sysdeps/loadstore/acquire_release_volatile.template \ + atomic_ops/sysdeps/loadstore/atomic_load.template \ + atomic_ops/sysdeps/loadstore/atomic_store.template \ + atomic_ops/sysdeps/loadstore/ordered_loads_only.template \ + atomic_ops/sysdeps/loadstore/ordered_stores_only.template \ + atomic_ops/sysdeps/sunc/sparc.S + +BUILT_SOURCES = atomic_ops/generalize-arithm.h \ + atomic_ops/generalize-small.h \ + atomic_ops/sysdeps/ao_t_is_int.h \ + atomic_ops/sysdeps/loadstore/acquire_release_volatile.h \ + atomic_ops/sysdeps/loadstore/atomic_load.h \ + atomic_ops/sysdeps/loadstore/atomic_store.h \ + atomic_ops/sysdeps/loadstore/char_acquire_release_volatile.h \ + atomic_ops/sysdeps/loadstore/char_atomic_load.h \ + atomic_ops/sysdeps/loadstore/char_atomic_store.h \ + atomic_ops/sysdeps/loadstore/int_acquire_release_volatile.h \ + atomic_ops/sysdeps/loadstore/int_atomic_load.h \ + atomic_ops/sysdeps/loadstore/int_atomic_store.h \ + atomic_ops/sysdeps/loadstore/ordered_loads_only.h \ + atomic_ops/sysdeps/loadstore/ordered_stores_only.h \ + atomic_ops/sysdeps/loadstore/short_acquire_release_volatile.h \ + atomic_ops/sysdeps/loadstore/short_atomic_load.h \ + atomic_ops/sysdeps/loadstore/short_atomic_store.h #Private Headers privatedir=${includedir}/ nobase_private_HEADERS = atomic_ops/ao_version.h \ atomic_ops/generalize.h \ - atomic_ops/generalize-small.h \ + $(BUILT_SOURCES) \ \ - 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/all_atomic_only_load.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 \ @@ -71,6 +86,8 @@ nobase_private_HEADERS = atomic_ops/ao_version.h \ \ atomic_ops/sysdeps/icc/ia64.h \ \ + atomic_ops/sysdeps/loadstore/double_atomic_load_store.h \ + \ atomic_ops/sysdeps/msftc/arm.h \ atomic_ops/sysdeps/msftc/common32_defs.h \ atomic_ops/sysdeps/msftc/x86.h \ @@ -80,7 +97,86 @@ nobase_private_HEADERS = atomic_ops/ao_version.h \ atomic_ops/sysdeps/sunc/x86.h atomic_ops/generalize-small.h: atomic_ops/generalize-small.template - sed -e s:XSIZE_:char_:g -e s:XCTYPE:unsigned/**/char:g $? > $@ - sed -e s:XSIZE_:short_:g -e s:XCTYPE:unsigned/**/short:g $? >> $@ - sed -e s:XSIZE_:int_:g -e s:XCTYPE:unsigned:g $? >> $@ + sed -e s:XSIZE:char:g -e s:XCTYPE:unsigned/**/char:g $? > $@ + sed -e s:XSIZE:short:g -e s:XCTYPE:unsigned/**/short:g $? >> $@ + sed -e s:XSIZE:int:g -e s:XCTYPE:unsigned:g $? >> $@ + sed -e s:XSIZE_::g -e s:XCTYPE:AO_t:g $? >> $@ + sed -e s:XSIZE:double:g -e s:XCTYPE:AO_double_t:g $? >> $@ + +atomic_ops/generalize-arithm.h: atomic_ops/generalize-arithm.template + sed -e s:XSIZE:char:g -e s:XCTYPE:unsigned/**/char:g $? > $@ + sed -e s:XSIZE:short:g -e s:XCTYPE:unsigned/**/short:g $? >> $@ + sed -e s:XSIZE:int:g -e s:XCTYPE:unsigned:g $? >> $@ sed -e s:XSIZE_::g -e s:XCTYPE:AO_t:g $? >> $@ + +atomic_ops/sysdeps/ao_t_is_int.h: atomic_ops/sysdeps/ao_t_is_int.template + sed -e s:_XBAR::g $? > $@ + sed -e s:XBAR:full:g $? >> $@ + sed -e s:XBAR:acquire:g $? >> $@ + sed -e s:XBAR:release:g $? >> $@ + sed -e s:XBAR:write:g $? >> $@ + sed -e s:XBAR:read:g $? >> $@ + +atomic_ops/sysdeps/loadstore/ordered_loads_only.h: \ + atomic_ops/sysdeps/loadstore/ordered_loads_only.template + sed -e s:XSIZE:char:g -e s:XCTYPE:unsigned/**/char:g $? > $@ + sed -e s:XSIZE:short:g -e s:XCTYPE:unsigned/**/short:g $? >> $@ + sed -e s:XSIZE:int:g -e s:XCTYPE:unsigned:g $? >> $@ + sed -e s:XSIZE_::g -e s:XCTYPE:AO_t:g $? >> $@ + sed -e s:XSIZE:double:g -e s:XCTYPE:AO_double_t:g $? >> $@ + +atomic_ops/sysdeps/loadstore/ordered_stores_only.h: \ + atomic_ops/sysdeps/loadstore/ordered_stores_only.template + sed -e s:XSIZE:char:g -e s:XCTYPE:unsigned/**/char:g $? > $@ + sed -e s:XSIZE:short:g -e s:XCTYPE:unsigned/**/short:g $? >> $@ + sed -e s:XSIZE:int:g -e s:XCTYPE:unsigned:g $? >> $@ + sed -e s:XSIZE_::g -e s:XCTYPE:AO_t:g $? >> $@ + sed -e s:XSIZE:double:g -e s:XCTYPE:AO_double_t:g $? >> $@ + +atomic_ops/sysdeps/loadstore/acquire_release_volatile.h: \ + atomic_ops/sysdeps/loadstore/acquire_release_volatile.template + sed -e s:XSIZE_::g -e s:XCTYPE:AO_t:g $? > $@ + +atomic_ops/sysdeps/loadstore/char_acquire_release_volatile.h: \ + atomic_ops/sysdeps/loadstore/acquire_release_volatile.template + sed -e s:XSIZE:char:g -e s:XCTYPE:unsigned/**/char:g $? > $@ + +atomic_ops/sysdeps/loadstore/int_acquire_release_volatile.h: \ + atomic_ops/sysdeps/loadstore/acquire_release_volatile.template + sed -e s:XSIZE:int:g -e s:XCTYPE:unsigned:g $? > $@ + +atomic_ops/sysdeps/loadstore/short_acquire_release_volatile.h: \ + atomic_ops/sysdeps/loadstore/acquire_release_volatile.template + sed -e s:XSIZE:short:g -e s:XCTYPE:unsigned/**/short:g $? > $@ + +atomic_ops/sysdeps/loadstore/atomic_load.h: \ + atomic_ops/sysdeps/loadstore/atomic_load.template + sed -e s:XSIZE_::g -e s:XCTYPE:AO_t:g $? > $@ + +atomic_ops/sysdeps/loadstore/char_atomic_load.h: \ + atomic_ops/sysdeps/loadstore/atomic_load.template + sed -e s:XSIZE:char:g -e s:XCTYPE:unsigned/**/char:g $? > $@ + +atomic_ops/sysdeps/loadstore/int_atomic_load.h: \ + atomic_ops/sysdeps/loadstore/atomic_load.template + sed -e s:XSIZE:int:g -e s:XCTYPE:unsigned:g $? > $@ + +atomic_ops/sysdeps/loadstore/short_atomic_load.h: \ + atomic_ops/sysdeps/loadstore/atomic_load.template + sed -e s:XSIZE:short:g -e s:XCTYPE:unsigned/**/short:g $? > $@ + +atomic_ops/sysdeps/loadstore/atomic_store.h: \ + atomic_ops/sysdeps/loadstore/atomic_store.template + sed -e s:XSIZE_::g -e s:XCTYPE:AO_t:g $? > $@ + +atomic_ops/sysdeps/loadstore/char_atomic_store.h: \ + atomic_ops/sysdeps/loadstore/atomic_store.template + sed -e s:XSIZE:char:g -e s:XCTYPE:unsigned/**/char:g $? > $@ + +atomic_ops/sysdeps/loadstore/int_atomic_store.h: \ + atomic_ops/sysdeps/loadstore/atomic_store.template + sed -e s:XSIZE:int:g -e s:XCTYPE:unsigned:g $? > $@ + +atomic_ops/sysdeps/loadstore/short_atomic_store.h: \ + atomic_ops/sysdeps/loadstore/atomic_store.template + sed -e s:XSIZE:short:g -e s:XCTYPE:unsigned/**/short:g $? > $@ |
