1 | ACLOCAL_AMFLAGS = -I ../m4 |
---|
2 | |
---|
3 | lib_LTLIBRARIES=libomalloc.la |
---|
4 | |
---|
5 | libomalloc_includedir=$(includedir)/omalloc |
---|
6 | |
---|
7 | libomalloc_include_HEADERS = \ |
---|
8 | omalloc.h omallocClass.h omDerivedConfig.h \ |
---|
9 | omError.h omStructs.h omAllocDecl.h \ |
---|
10 | omInlineDecl.h omBin.h omMemOps.h \ |
---|
11 | omList.h omGetBackTrace.h \ |
---|
12 | omRet2Info.h omStats.h omOpts.h \ |
---|
13 | omBinPage.h omAllocSystem.h \ |
---|
14 | omAllocPrivate.h omDebug.h omInline.h \ |
---|
15 | omAllocFunc.h |
---|
16 | |
---|
17 | noinst_HEADERS= omPage.h omDefaultConfig.h omReturn.h omGetPageSize.h \ |
---|
18 | omMalloc.h omMallocSystem.h |
---|
19 | |
---|
20 | SOURCES=\ |
---|
21 | omBinPage.c omList.c omAllocEmulate.c omDebug.c \ |
---|
22 | om_Alloc.c omDebugCheck.c omOpts.c omGetBackTrace.c \ |
---|
23 | omAllocSystem.c omError.c omStats.c omRet2Info.c \ |
---|
24 | omBin.c omDebugTrack.c \ |
---|
25 | omalloc_provide.c omAllocFunc.c omallocClass.cc |
---|
26 | |
---|
27 | EXTRA_DIST = omalloc_debug.c omalloc.c omtTestAlloc.c omtTest.h omMmap.c |
---|
28 | |
---|
29 | AM_CPPFLAGS =-I${top_srcdir}/.. -I${top_builddir}/.. |
---|
30 | |
---|
31 | libomalloc_la_SOURCES=$(SOURCES) $(noinst_HEADERS) |
---|
32 | |
---|
33 | libomalloc_la_LDFLAGS = $(SINGULAR_LDFLAGS) -release ${PACKAGE_VERSION} |
---|
34 | |
---|
35 | nodist_libomalloc_la_SOURCES = omTables.inc omTables.h |
---|
36 | nodist_libomalloc_include_HEADERS = omConfig.h omTables.h |
---|
37 | |
---|
38 | libomalloc_la_CPPFLAGS = ${AM_CPPFLAGS} -DOM_ALLOC_INTERNAL |
---|
39 | |
---|
40 | BUILT_SOURCES = omTables.inc omTables.h |
---|
41 | |
---|
42 | omTables.inc: |
---|
43 | $(MAKE) $(AM_MAKEFLAGS) \ |
---|
44 | CC="${CC_FOR_BUILD}" \ |
---|
45 | CFLAGS="${CFLAGS_FOR_BUILD}" \ |
---|
46 | CPPFLAGS="-I${abs_top_srcdir}/.. -I${abs_top_builddir}/.. $(CPPFLAGS_FOR_BUILD) -DOM_GENERATE_INC" \ |
---|
47 | LDFLAGS="$(LDFLAGS_FOR_BUILD)" omTables |
---|
48 | ./omTables$(BUILD_EXEEXT) > omTables.xx && mv omTables.xx omTables.inc |
---|
49 | |
---|
50 | omTables.h: |
---|
51 | $(MAKE) $(AM_MAKEFLAGS) \ |
---|
52 | CPPFLAGS="-I${abs_top_srcdir}/.. -I${abs_top_builddir}/.. $(CPPFLAGS_FOR_BUILD)" \ |
---|
53 | CC="${CC_FOR_BUILD}" \ |
---|
54 | CFLAGS="${CFLAGS_FOR_BUILD}" \ |
---|
55 | LDFLAGS="$(LDFLAGS_FOR_BUILD)" omTables1 |
---|
56 | ./omTables1$(BUILD_EXEEXT) >omTables.yy && mv omTables.yy omTables.h |
---|
57 | |
---|
58 | noinst_PROGRAMS = omTables omTables1 |
---|
59 | omTables_SOURCES = omAllocPrivate.h omTables.c |
---|
60 | omTables1_SOURCES = omAllocPrivate.h omTables1.c |
---|
61 | nodist_omTables_SOURCES = omConfig.h |
---|
62 | nodist_omTables1_SOURCES = omConfig.h |
---|
63 | omTables_CPPFLAGS = ${AM_CPPFLAGS} -DOM_GENERATE_INC |
---|
64 | omTables1_CPPFLAGS = ${AM_CPPFLAGS} -DOM_GENERATE_INC |
---|
65 | |
---|
66 | CLEANFILES = $(BUILT_SOURCES) omTables omTables1 |
---|
67 | DISTCLEANFILES = omConfig.h |
---|
68 | #################################################### |
---|
69 | ## Test program |
---|
70 | |
---|
71 | TESTS = omtTest-m omtTest-r |
---|
72 | |
---|
73 | check_PROGRAMS = $(TESTS) |
---|
74 | |
---|
75 | # EXTRA_PROGRAMS = omtTest-r |
---|
76 | |
---|
77 | OMTTESTSSOURCES = omtTestReal.c omtTestDebug.c omtTestKeep.c omtTestError.c omtTest.c |
---|
78 | |
---|
79 | omtTest_m_CPPFLAGS = ${AM_CPPFLAGS} -DOM_TEST_MALLOC |
---|
80 | omtTest_m_SOURCES = $(OMTTESTSSOURCES) |
---|
81 | omtTest_m_LDADD = libomalloc.la |
---|
82 | |
---|
83 | omtTest_r_SOURCES = $(OMTTESTSSOURCES) |
---|
84 | omtTest_r_LDADD = libomalloc.la |
---|
85 | |
---|
86 | pkgconfigdir = $(libdir)/pkgconfig |
---|
87 | pkgconfig_DATA = omalloc.pc |
---|
88 | |
---|