source: git/omalloc/Makefile.am @ 8d1432e

spielwiese
Last change on this file since 8d1432e was f989d44, checked in by Hans Schoenemann <hannes@…>, 8 years ago
fix: debug version of omalloc (must not have -O2 in CFLAGS)
  • Property mode set to 100644
File size: 2.2 KB
Line 
1ACLOCAL_AMFLAGS = -I ../m4
2
3lib_LTLIBRARIES=libomalloc.la
4
5libomalloc_includedir=$(includedir)/omalloc
6
7libomalloc_include_HEADERS = \
8omalloc.h               omallocClass.h          omDerivedConfig.h       \
9omError.h               omStructs.h             omAllocDecl.h           \
10omInlineDecl.h          omBin.h                 omMemOps.h              \
11omList.h                omGetBackTrace.h        \
12omRet2Info.h            omStats.h               omOpts.h                \
13omBinPage.h             omAllocSystem.h         \
14omAllocPrivate.h        omDebug.h               omInline.h              \
15omAllocFunc.h           mylimits.h
16
17noinst_HEADERS= omPage.h omDefaultConfig.h omReturn.h omGetPageSize.h \
18  omMalloc.h omMallocSystem.h
19
20SOURCES=\
21omBinPage.c       omList.c         omAllocEmulate.c omDebug.c        \
22om_Alloc.c        omDebugCheck.c   omOpts.c         omGetBackTrace.c \
23omAllocSystem.c   omError.c        omStats.c        omRet2Info.c     \
24omBin.c           omDebugTrack.c                     \
25omalloc_provide.c omAllocFunc.c    omallocClass.cc
26
27EXTRA_DIST = omalloc_debug.c omalloc.c omtTestAlloc.c omtTest.h omMmap.c
28
29AM_CPPFLAGS =-I${top_srcdir}/.. -I${top_builddir}/..
30
31libomalloc_la_SOURCES=$(SOURCES) $(noinst_HEADERS)
32
33libomalloc_la_LDFLAGS    = -release ${PACKAGE_VERSION}
34
35nodist_libomalloc_la_SOURCES = omTables.inc omTables.h mylimits.h
36nodist_libomalloc_include_HEADERS = omConfig.h mylimits.h omTables.h
37
38libomalloc_la_CPPFLAGS  = ${AM_CPPFLAGS} -DOM_ALLOC_INTERNAL
39
40BUILT_SOURCES = omTables.inc omTables.h
41
42omTables.inc: omTables$(EXEEXT) omalloc.h
43        ./omTables$(EXEEXT) > omTables.xx && mv omTables.xx  $@
44
45omTables.h: omTables$(EXEEXT)
46        ./omTables$(EXEEXT) 1 >omTables.yy && mv omTables.yy $@
47
48noinst_PROGRAMS = omTables
49omTables_SOURCES = omAllocPrivate.h omTables.c mylimits.h
50nodist_omTables_SOURCES = omConfig.h
51omTables_CPPFLAGS = ${AM_CPPFLAGS} -DOM_GENERATE_INC
52
53CLEANFILES = $(BUILT_SOURCES)
54DISTCLEANFILES = omConfig.h
55####################################################
56## Test program
57
58TESTS = omtTest-m omtTest-r
59
60check_PROGRAMS = $(TESTS)
61
62# EXTRA_PROGRAMS = omtTest-r
63
64OMTTESTSSOURCES = omtTestReal.c omtTestDebug.c omtTestKeep.c omtTestError.c omtTest.c
65
66omtTest_m_CPPFLAGS = ${AM_CPPFLAGS} -DOM_TEST_MALLOC
67omtTest_m_SOURCES  = $(OMTTESTSSOURCES)
68omtTest_m_LDADD    = libomalloc.la
69
70omtTest_r_SOURCES  = $(OMTTESTSSOURCES)
71omtTest_r_LDADD    = libomalloc.la
72
73pkgconfigdir = $(libdir)/pkgconfig
74pkgconfig_DATA = omalloc.pc
75
Note: See TracBrowser for help on using the repository browser.