source: git/omalloc/Makefile.am @ 4a4e29

spielwiese
Last change on this file since 4a4e29 was 4a4e29, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
ADD: make check tests omalloc using the original test suites
  • Property mode set to 100644
File size: 2.2 KB
Line 
1AM_LDFLAGS = -L${top_builddir}/omalloc -L${top_builddir}/../omalloc
2
3lib_LIBRARIES=libomalloc.a libomalloc_g.a
4
5libomalloc_a_includedir=$(includedir)/omalloc
6
7libomalloc_a_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           omlimits.h              mylimits.h
16
17
18
19noinst_HEADERS= omPage.h omDefaultConfig.h omReturn.h
20
21SOURCES=\
22omBinPage.c       omList.c         omAllocEmulate.c omDebug.c        \
23om_Alloc.c        omDebugCheck.c   omOpts.c         omGetBackTrace.c \
24omAllocSystem.c   omError.c        omStats.c        omRet2Info.c     \
25omBin.c           omFindExec.c     omDebugTrack.c                    \
26omalloc_provide.c omAllocFunc.c
27
28INCLUDES=-I${top_srcdir}/.. -I${top_builddir}/..
29
30libomalloc_a_SOURCES=$(SOURCES) $(noinst_HEADERS)
31libomalloc_g_a_SOURCES=$(SOURCES) $(noinst_HEADERS)
32
33nodist_libomalloc_a_SOURCES = omConfig.h omlimits.h mylimits.h omTables.h omalloc.h omTables.inc
34nodist_libomalloc_g_a_SOURCES = omConfig.h omlimits.h omTables.h omalloc.h omTables.inc
35
36libomalloc_a_CPPFLAGS= -DOM_NDEBUG
37
38BUILT_SOURCES = omTables.inc omTables.h
39
40omTables.inc: omTables omalloc.h
41        ./omTables > omTables.xx && mv omTables.xx  $@
42
43omTables.h: omTables
44        ./omTables 1 >omTables.yy && mv omTables.yy $@
45
46noinst_PROGRAMS = omTables
47omTables_SOURCES = omAllocPrivate.h omConfig.h omTables.c omlimits.h mylimits.h
48omTables_CPPFLAGS = -DOM_GENERATE_INC
49
50####################################################
51## Test program
52##
53TESTS = omtTest-g omtTest-m omtTest-r
54check_PROGRAMS = $(TESTS)
55
56OMTTESTSSOURCES = omtTestReal.c omtTestDebug.c omtTestKeep.c omtTestError.c omtTest.c
57
58omtTest_g: libomalloc_g.a
59
60omtTest_g_SOURCES = $(OMTTESTSSOURCES)
61omtTest_g_CFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long
62omtTest_g_LDADD = -lomalloc_g
63
64omtTest_m: libomalloc_g.a
65
66omtTest_m_CPPFLAGS = -DOM_TEST_MALLOC
67omtTest_m_SOURCES  = $(OMTTESTSSOURCES)
68omtTest_m_LDADD = -lomalloc_g
69
70omtTest_r: libomalloc.a
71
72omtTest_r_SOURCES = $(OMTTESTSSOURCES)
73omtTest_r_CPPFLAGS = -DOM_NDEBUG
74omtTest_r_CFLAGS = -O3
75omtTest_r_LDADD = -lomalloc
76
Note: See TracBrowser for help on using the repository browser.