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 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 omallocClass.cc |
---|
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 | if WANT_DEBUG |
---|
35 | libomalloc_la_CFLAGS = -g |
---|
36 | else !WANT_DEBUG |
---|
37 | libomalloc_la_CFLAGS = -O2 |
---|
38 | endif |
---|
39 | |
---|
40 | nodist_libomalloc_la_SOURCES = omTables.inc omTables.h mylimits.h |
---|
41 | nodist_libomalloc_include_HEADERS = omConfig.h mylimits.h omTables.h |
---|
42 | |
---|
43 | libomalloc_la_CPPFLAGS = ${AM_CPPFLAGS} -DOM_ALLOC_INTERNAL |
---|
44 | |
---|
45 | BUILT_SOURCES = omTables.inc omTables.h |
---|
46 | |
---|
47 | omTables.inc: omTables$(EXEEXT) omalloc.h |
---|
48 | ./omTables$(EXEEXT) > omTables.xx && mv omTables.xx $@ |
---|
49 | |
---|
50 | omTables.h: omTables$(EXEEXT) |
---|
51 | ./omTables$(EXEEXT) 1 >omTables.yy && mv omTables.yy $@ |
---|
52 | |
---|
53 | noinst_PROGRAMS = omTables |
---|
54 | omTables_SOURCES = omAllocPrivate.h omTables.c mylimits.h |
---|
55 | nodist_omTables_SOURCES = omConfig.h |
---|
56 | omTables_CPPFLAGS = ${AM_CPPFLAGS} -DOM_GENERATE_INC |
---|
57 | |
---|
58 | CLEANFILES = $(BUILT_SOURCES) |
---|
59 | DISTCLEANFILES = omConfig.h |
---|
60 | #################################################### |
---|
61 | ## Test program |
---|
62 | |
---|
63 | TESTS = omtTest-m omtTest-r |
---|
64 | |
---|
65 | check_PROGRAMS = $(TESTS) |
---|
66 | |
---|
67 | # EXTRA_PROGRAMS = omtTest-r |
---|
68 | |
---|
69 | OMTTESTSSOURCES = omtTestReal.c omtTestDebug.c omtTestKeep.c omtTestError.c omtTest.c |
---|
70 | |
---|
71 | omtTest_m_CPPFLAGS = ${AM_CPPFLAGS} -DOM_TEST_MALLOC |
---|
72 | omtTest_m_SOURCES = $(OMTTESTSSOURCES) |
---|
73 | omtTest_m_LDADD = libomalloc.la |
---|
74 | |
---|
75 | omtTest_r_SOURCES = $(OMTTESTSSOURCES) |
---|
76 | omtTest_r_LDADD = libomalloc.la |
---|
77 | |
---|
78 | pkgconfigdir = $(libdir)/pkgconfig |
---|
79 | pkgconfig_DATA = omalloc.pc |
---|
80 | |
---|