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 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 mylimits.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 |
---|
26 | |
---|
27 | EXTRA_DIST = 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 = -release ${PACKAGE_VERSION} |
---|
34 | libomalloc_la_CFLAGS = -O2 |
---|
35 | |
---|
36 | nodist_libomalloc_la_SOURCES = omTables.inc omTables.h mylimits.h |
---|
37 | nodist_libomalloc_include_HEADERS = omConfig.h mylimits.h omTables.h |
---|
38 | |
---|
39 | ### NOTE: "_g" (debug) means full library |
---|
40 | ### libomalloc_la_CPPFLAGS= -DOM_ALLOC_INTERNAL -DOM_NDEBUG |
---|
41 | |
---|
42 | libomalloc_la_CPPFLAGS = ${AM_CPPFLAGS} -DOM_ALLOC_INTERNAL |
---|
43 | |
---|
44 | BUILT_SOURCES = omTables.inc omTables.h |
---|
45 | |
---|
46 | omTables.inc: omTables$(EXEEXT) omalloc.h |
---|
47 | ./omTables$(EXEEXT) > omTables.xx && mv omTables.xx $@ |
---|
48 | |
---|
49 | omTables.h: omTables$(EXEEXT) |
---|
50 | ./omTables$(EXEEXT) 1 >omTables.yy && mv omTables.yy $@ |
---|
51 | |
---|
52 | noinst_PROGRAMS = omTables |
---|
53 | omTables_SOURCES = omAllocPrivate.h omTables.c mylimits.h |
---|
54 | nodist_omTables_SOURCES = omConfig.h |
---|
55 | omTables_CPPFLAGS = ${AM_CPPFLAGS} -DOM_GENERATE_INC |
---|
56 | |
---|
57 | CLEANFILES = $(BUILT_SOURCES) |
---|
58 | |
---|
59 | #################################################### |
---|
60 | ## Test program |
---|
61 | |
---|
62 | TESTS = omtTest-m omtTest-r |
---|
63 | |
---|
64 | check_PROGRAMS = $(TESTS) |
---|
65 | |
---|
66 | # EXTRA_PROGRAMS = omtTest-r |
---|
67 | |
---|
68 | OMTTESTSSOURCES = omtTestReal.c omtTestDebug.c omtTestKeep.c omtTestError.c omtTest.c |
---|
69 | |
---|
70 | omtTest_m_CPPFLAGS = ${AM_CPPFLAGS} -DOM_TEST_MALLOC |
---|
71 | omtTest_m_SOURCES = $(OMTTESTSSOURCES) |
---|
72 | omtTest_m_LDADD = libomalloc.la |
---|
73 | |
---|
74 | omtTest_r_SOURCES = $(OMTTESTSSOURCES) |
---|
75 | omtTest_r_LDADD = libomalloc.la |
---|
76 | |
---|