[c2eb2e] | 1 | ACLOCAL_AMFLAGS = -I ../m4 |
---|
[4a4e29] | 2 | |
---|
[9ba92b] | 3 | lib_LTLIBRARIES=libomalloc.la |
---|
[2b43ac] | 4 | |
---|
[c2eb2e] | 5 | libomalloc_includedir=$(includedir)/omalloc |
---|
[f769719] | 6 | |
---|
[c2eb2e] | 7 | libomalloc_include_HEADERS = \ |
---|
[756b14] | 8 | omalloc.h omDerivedConfig.h \ |
---|
[f769719] | 9 | omError.h omStructs.h omAllocDecl.h \ |
---|
| 10 | omInlineDecl.h omBin.h omMemOps.h \ |
---|
[8fee84] | 11 | omList.h omGetBackTrace.h \ |
---|
[f769719] | 12 | omRet2Info.h omStats.h omOpts.h \ |
---|
[756b14] | 13 | omBinPage.h omAllocSystem.h \ |
---|
[f769719] | 14 | omAllocPrivate.h omDebug.h omInline.h \ |
---|
[49ea49] | 15 | omAllocFunc.h mylimits.h |
---|
[f769719] | 16 | |
---|
[c2eb2e] | 17 | noinst_HEADERS= omPage.h omDefaultConfig.h omReturn.h omGetPageSize.h \ |
---|
| 18 | omMalloc.h omMallocSystem.h |
---|
[9634a6] | 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 \ |
---|
[8fee84] | 24 | omBin.c omDebugTrack.c \ |
---|
[9634a6] | 25 | omalloc_provide.c omAllocFunc.c |
---|
| 26 | |
---|
[8babe7f] | 27 | EXTRA_DIST = omalloc.c omtTestAlloc.c omtTest.h omMmap.c |
---|
[c2eb2e] | 28 | |
---|
[55b6460] | 29 | AM_CPPFLAGS =-I${top_srcdir}/.. -I${top_builddir}/.. |
---|
[97b5d5] | 30 | |
---|
[6d672b4] | 31 | libomalloc_la_SOURCES=$(SOURCES) $(noinst_HEADERS) |
---|
[9ba92b] | 32 | |
---|
[997a5b2] | 33 | libomalloc_la_LDFLAGS = -release ${PACKAGE_VERSION} |
---|
[74209b] | 34 | libomalloc_la_CFLAGS = -O2 |
---|
[9634a6] | 35 | |
---|
[772990] | 36 | nodist_libomalloc_la_SOURCES = omTables.inc omTables.h mylimits.h |
---|
| 37 | nodist_libomalloc_include_HEADERS = omConfig.h mylimits.h omTables.h |
---|
[9634a6] | 38 | |
---|
[9ba92b] | 39 | libomalloc_la_CPPFLAGS = ${AM_CPPFLAGS} -DOM_ALLOC_INTERNAL |
---|
[9634a6] | 40 | |
---|
[d462535] | 41 | BUILT_SOURCES = omTables.inc omTables.h |
---|
[9634a6] | 42 | |
---|
[48e8e1] | 43 | omTables.inc: omTables$(EXEEXT) omalloc.h |
---|
| 44 | ./omTables$(EXEEXT) > omTables.xx && mv omTables.xx $@ |
---|
[9634a6] | 45 | |
---|
[48e8e1] | 46 | omTables.h: omTables$(EXEEXT) |
---|
| 47 | ./omTables$(EXEEXT) 1 >omTables.yy && mv omTables.yy $@ |
---|
[9634a6] | 48 | |
---|
| 49 | noinst_PROGRAMS = omTables |
---|
[756b14] | 50 | omTables_SOURCES = omAllocPrivate.h omTables.c mylimits.h |
---|
| 51 | nodist_omTables_SOURCES = omConfig.h |
---|
[9ba92b] | 52 | omTables_CPPFLAGS = ${AM_CPPFLAGS} -DOM_GENERATE_INC |
---|
[9634a6] | 53 | |
---|
[c2eb2e] | 54 | CLEANFILES = $(BUILT_SOURCES) |
---|
[7c0d57d] | 55 | DISTCLEANFILES = omConfig.h |
---|
[4a4e29] | 56 | #################################################### |
---|
| 57 | ## Test program |
---|
[7c5f743] | 58 | |
---|
[667d33] | 59 | TESTS = omtTest-m omtTest-r |
---|
[f4cb99a] | 60 | |
---|
[4a4e29] | 61 | check_PROGRAMS = $(TESTS) |
---|
| 62 | |
---|
[667d33] | 63 | # EXTRA_PROGRAMS = omtTest-r |
---|
[ddaf27] | 64 | |
---|
[c2eb2e] | 65 | OMTTESTSSOURCES = omtTestReal.c omtTestDebug.c omtTestKeep.c omtTestError.c omtTest.c |
---|
[4a4e29] | 66 | |
---|
[667d33] | 67 | omtTest_m_CPPFLAGS = ${AM_CPPFLAGS} -DOM_TEST_MALLOC |
---|
| 68 | omtTest_m_SOURCES = $(OMTTESTSSOURCES) |
---|
| 69 | omtTest_m_LDADD = libomalloc.la |
---|
| 70 | |
---|
| 71 | omtTest_r_SOURCES = $(OMTTESTSSOURCES) |
---|
| 72 | omtTest_r_LDADD = libomalloc.la |
---|
| 73 | |
---|
[997a5b2] | 74 | pkgconfigdir = $(libdir)/pkgconfig |
---|
| 75 | pkgconfig_DATA = omalloc.pc |
---|
[7c0d57d] | 76 | |
---|