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