1 | ACLOCAL_AMFLAGS = -I ../m4 |
---|
2 | AM_LDFLAGS = -L${top_builddir}/omalloc -L${top_builddir}/../omalloc |
---|
3 | |
---|
4 | lib_LIBRARIES=libomalloc.a libomalloc_g.a |
---|
5 | |
---|
6 | libomalloc_includedir=$(includedir)/omalloc |
---|
7 | |
---|
8 | libomalloc_include_HEADERS = \ |
---|
9 | omalloc.h omConfig.h omDerivedConfig.h \ |
---|
10 | omError.h omStructs.h omAllocDecl.h \ |
---|
11 | omInlineDecl.h omBin.h omMemOps.h \ |
---|
12 | omList.h omFindExec.h omGetBackTrace.h \ |
---|
13 | omRet2Info.h omStats.h omOpts.h \ |
---|
14 | omBinPage.h omAllocSystem.h omTables.h \ |
---|
15 | omAllocPrivate.h omDebug.h omInline.h \ |
---|
16 | omAllocFunc.h mylimits.h |
---|
17 | |
---|
18 | noinst_HEADERS= omPage.h omDefaultConfig.h omReturn.h omGetPageSize.h \ |
---|
19 | omMalloc.h omMallocSystem.h |
---|
20 | |
---|
21 | SOURCES=\ |
---|
22 | omBinPage.c omList.c omAllocEmulate.c omDebug.c \ |
---|
23 | om_Alloc.c omDebugCheck.c omOpts.c omGetBackTrace.c \ |
---|
24 | omAllocSystem.c omError.c omStats.c omRet2Info.c \ |
---|
25 | omBin.c omFindExec.c omDebugTrack.c \ |
---|
26 | omalloc_provide.c omAllocFunc.c |
---|
27 | |
---|
28 | EXTRA_DIST = omalloc.c omtTestAlloc.c omtTest.h |
---|
29 | |
---|
30 | INCLUDES=-I${top_srcdir}/.. -I${top_builddir}/.. |
---|
31 | |
---|
32 | libomalloc_a_SOURCES=$(SOURCES) $(noinst_HEADERS) |
---|
33 | libomalloc_g_a_SOURCES=$(SOURCES) $(noinst_HEADERS) |
---|
34 | |
---|
35 | nodist_libomalloc_a_SOURCES = omConfig.h mylimits.h omalloc.h omTables.inc |
---|
36 | nodist_libomalloc_g_a_SOURCES = omConfig.h omalloc.h omTables.inc |
---|
37 | |
---|
38 | libomalloc_a_CPPFLAGS= -DHAVE_CONFIG_H -DOM_NDEBUG |
---|
39 | libomalloc_g_a_CPPFLAGS= -DHAVE_CONFIG_H |
---|
40 | |
---|
41 | BUILT_SOURCES = omTables.inc omTables.h |
---|
42 | |
---|
43 | omTables.inc: omTables omalloc.h |
---|
44 | ./omTables > omTables.xx && mv omTables.xx $@ |
---|
45 | |
---|
46 | omTables.h: omTables |
---|
47 | ./omTables 1 >omTables.yy && mv omTables.yy $@ |
---|
48 | |
---|
49 | noinst_PROGRAMS = omTables |
---|
50 | omTables_SOURCES = omAllocPrivate.h omConfig.h omTables.c mylimits.h |
---|
51 | omTables_CPPFLAGS = -DOM_GENERATE_INC -DHAVE_CONFIG_H |
---|
52 | |
---|
53 | CLEANFILES = $(BUILT_SOURCES) |
---|
54 | |
---|
55 | #################################################### |
---|
56 | ## Test program |
---|
57 | ## |
---|
58 | TESTS = omtTest-g omtTest-m omtTest-r |
---|
59 | check_PROGRAMS = $(TESTS) |
---|
60 | |
---|
61 | OMTTESTSSOURCES = omtTestReal.c omtTestDebug.c omtTestKeep.c omtTestError.c omtTest.c |
---|
62 | |
---|
63 | omtTest_g: libomalloc_g.a |
---|
64 | |
---|
65 | omtTest_g_SOURCES = $(OMTTESTSSOURCES) |
---|
66 | omtTest_g_CPPFLAGS = -DHAVE_CONFIG_H |
---|
67 | omtTest_g_CFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long |
---|
68 | omtTest_g_LDADD = -lomalloc_g |
---|
69 | |
---|
70 | omtTest_m: libomalloc_g.a |
---|
71 | |
---|
72 | omtTest_m_CPPFLAGS = -DOM_TEST_MALLOC -DHAVE_CONFIG_H |
---|
73 | omtTest_m_SOURCES = $(OMTTESTSSOURCES) |
---|
74 | omtTest_m_LDADD = -lomalloc_g |
---|
75 | |
---|
76 | omtTest_r: libomalloc.a |
---|
77 | |
---|
78 | omtTest_r_SOURCES = $(OMTTESTSSOURCES) |
---|
79 | omtTest_r_CPPFLAGS = -DOM_NDEBUG |
---|
80 | omtTest_r_CFLAGS = -O3 |
---|
81 | omtTest_r_LDADD = -lomalloc |
---|
82 | |
---|