| 1 | lib_LTLIBRARIES = \ |
| 2 | libhybris-common.la |
| 3 | |
| 4 | # JB linker works fine for ICS |
| 5 | if HAS_ANDROID_4_0_0 |
| 6 | SUBDIRS = jb |
| 7 | libhybris_common_la_LIBADD= jb/libandroid-linker.la |
| 8 | else |
| 9 | if HAS_ANDROID_2_3_0 |
| 10 | SUBDIRS = gingerbread |
| 11 | libhybris_common_la_LIBADD= gingerbread/libandroid-linker.la |
| 12 | else |
| 13 | ERROR |
| 14 | endif |
| 15 | endif |
| 16 | |
| 17 | libhybris_common_la_SOURCES = \ |
| 18 | hooks.c \ |
| 19 | hooks_shm.c \ |
| 20 | strlcpy.c \ |
| 21 | dlfcn.c \ |
| 22 | logging.c |
| 23 | libhybris_common_la_CFLAGS = \ |
| 24 | -I$(top_srcdir)/include \ |
| 25 | -I$(top_srcdir)/common |
| 26 | if WANT_TRACE |
| 27 | libhybris_common_la_CFLAGS += -DDEBUG |
| 28 | endif |
| 29 | if WANT_DEBUG |
| 30 | libhybris_common_la_CFLAGS += -ggdb -O0 |
| 31 | endif |
| 32 | libhybris_common_la_LDFLAGS = \ |
| 33 | -ldl \ |
| 34 | -lrt \ |
| 35 | -pthread \ |
| 36 | $(top_builddir)/properties/libandroid-properties.la \ |
| 37 | -version-info "$(LT_CURRENT)":"$(LT_REVISION)":"$(LT_AGE)" |