source: git/omalloc/Makefile.am @ 7c5f743

fieker-DuValspielwiese
Last change on this file since 7c5f743 was 7c5f743, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
ADD: try using ${abs_*}-variables in several Makefile.am's
  • Property mode set to 100644
File size: 2.7 KB
Line 
1ACLOCAL_AMFLAGS = -I ../m4
2
3lib_LTLIBRARIES=libomalloc.la libomalloc_g.la
4
5libomalloc_includedir=$(includedir)/omalloc
6
7libomalloc_include_HEADERS = \
8omalloc.h               omConfig.h              omDerivedConfig.h       \
9omError.h               omStructs.h             omAllocDecl.h           \
10omInlineDecl.h          omBin.h                 omMemOps.h              \
11omList.h                omFindExec.h            omGetBackTrace.h        \
12omRet2Info.h            omStats.h               omOpts.h                \
13omBinPage.h             omAllocSystem.h         omTables.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           omFindExec.c     omDebugTrack.c                    \
25omalloc_provide.c omAllocFunc.c
26
27EXTRA_DIST = omalloc.c omtTestAlloc.c omtTest.h omMmap.c
28
29INCLUDES=-I${abs_top_srcdir}/.. -I${abs_top_builddir}/..
30
31libomalloc_la_SOURCES=$(SOURCES) $(noinst_HEADERS)
32libomalloc_g_la_SOURCES=$(SOURCES) $(noinst_HEADERS)
33
34nodist_libomalloc_la_SOURCES = omConfig.h mylimits.h omalloc.h omTables.inc
35nodist_libomalloc_g_la_SOURCES = omConfig.h omalloc.h omTables.inc
36
37libomalloc_la_CPPFLAGS= -DHAVE_CONFIG_H -DOM_NDEBUG
38libomalloc_g_la_CPPFLAGS= -DHAVE_CONFIG_H
39
40BUILT_SOURCES = omTables.inc omTables.h
41
42omTables.inc: omTables omalloc.h
43        ./omTables > omTables.xx && mv omTables.xx  $@
44
45omTables.h: omTables
46        ./omTables 1 >omTables.yy && mv omTables.yy $@
47
48noinst_PROGRAMS = omTables
49omTables_SOURCES = omAllocPrivate.h omConfig.h omTables.c mylimits.h
50omTables_CPPFLAGS = -DOM_GENERATE_INC  -DHAVE_CONFIG_H
51
52CLEANFILES = $(BUILT_SOURCES)
53
54####################################################
55## Test program
56##
57# AM_LDFLAGS = -L${abs_top_builddir}/omalloc -L${abs_top_builddir}/../omalloc
58
59
60TESTS = omtTest-g omtTest-m omtTest-r
61check_PROGRAMS = $(TESTS)
62
63OMTTESTSSOURCES = omtTestReal.c omtTestDebug.c omtTestKeep.c omtTestError.c omtTest.c
64
65# omtTest_g: libomalloc_g.la
66
67omtTest_g_SOURCES = $(OMTTESTSSOURCES)
68omtTest_g_CPPFLAGS = -DHAVE_CONFIG_H
69omtTest_g_CFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long
70omtTest_g_LDADD = -lomalloc_g
71omtTest_g_LDFLAGS = -L${abs_top_builddir}/omalloc -L${abs_top_builddir}/../omalloc
72
73
74# omtTest_m: libomalloc_g.la
75
76omtTest_m_CPPFLAGS = -DOM_TEST_MALLOC  -DHAVE_CONFIG_H
77omtTest_m_SOURCES  = $(OMTTESTSSOURCES)
78omtTest_m_LDADD = -lomalloc_g
79omtTest_m_LDFLAGS = -L${abs_top_builddir}/omalloc -L${abs_top_builddir}/../omalloc
80
81# omtTest_r: libomalloc.la
82
83omtTest_r_SOURCES = $(OMTTESTSSOURCES)
84omtTest_r_CPPFLAGS = -DOM_NDEBUG
85omtTest_r_CFLAGS = -O3
86omtTest_r_LDADD = -lomalloc
87omtTest_r_LDFLAGS = -L${abs_top_builddir}/omalloc -L${abs_top_builddir}/../omalloc
88
Note: See TracBrowser for help on using the repository browser.