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