source: git/omalloc/Makefile.am @ f4cb99a

jengelh-datetimespielwiese
Last change on this file since f4cb99a was f4cb99a, checked in by Oleksandr Motsak <motsak@…>, 10 years ago
Updating the BS + search pathes for better binary distribution (due to Hans)
  • Property mode set to 100644
File size: 3.9 KB
Line 
1ACLOCAL_AMFLAGS = -I ../m4
2
3
4lib_LTLIBRARIES=libomalloc.la libomalloc_g.la
5
6if WANT_DEBUG
7# lib_LTLIBRARIES+=
8endif
9
10libomalloc_includedir=$(includedir)/omalloc
11
12libomalloc_include_HEADERS = \
13omalloc.h               omDerivedConfig.h       \
14omError.h               omStructs.h             omAllocDecl.h           \
15omInlineDecl.h          omBin.h                 omMemOps.h              \
16omList.h                omGetBackTrace.h        \
17omRet2Info.h            omStats.h               omOpts.h                \
18omBinPage.h             omAllocSystem.h         \
19omAllocPrivate.h        omDebug.h               omInline.h              \
20omAllocFunc.h           mylimits.h
21
22noinst_HEADERS= omPage.h omDefaultConfig.h omReturn.h omGetPageSize.h \
23  omMalloc.h omMallocSystem.h
24
25SOURCES=\
26omBinPage.c       omList.c         omAllocEmulate.c omDebug.c        \
27om_Alloc.c        omDebugCheck.c   omOpts.c         omGetBackTrace.c \
28omAllocSystem.c   omError.c        omStats.c        omRet2Info.c     \
29omBin.c           omDebugTrack.c                     \
30omalloc_provide.c omAllocFunc.c
31
32EXTRA_DIST = omalloc.c omtTestAlloc.c omtTest.h omMmap.c
33
34AM_CPPFLAGS =-I${top_srcdir}/.. -I${top_builddir}/..
35
36libomalloc_la_SOURCES=$(SOURCES) $(noinst_HEADERS)
37libomalloc_g_la_SOURCES=$(SOURCES) $(noinst_HEADERS)
38
39nodist_libomalloc_la_SOURCES = omTables.inc omTables.h mylimits.h
40nodist_libomalloc_g_la_SOURCES = omTables.inc omTables.h mylimits.h
41
42nodist_libomalloc_include_HEADERS = omConfig.h mylimits.h omTables.h
43
44### NOTE: "_g" (debug) means full library
45### libomalloc_la_CPPFLAGS= -DOM_ALLOC_INTERNAL -DHAVE_CONFIG_H -DOM_NDEBUG
46
47libomalloc_la_CPPFLAGS  = ${AM_CPPFLAGS} -DOM_ALLOC_INTERNAL -DHAVE_CONFIG_H
48libomalloc_g_la_CPPFLAGS= ${AM_CPPFLAGS} -DOM_ALLOC_INTERNAL -DHAVE_CONFIG_H
49
50BUILT_SOURCES = omTables.inc omTables.h
51
52omTables.inc: omTables omalloc.h
53        ./omTables > omTables.xx && mv omTables.xx  $@
54
55omTables.h: omTables
56        ./omTables 1 >omTables.yy && mv omTables.yy $@
57
58noinst_PROGRAMS = omTables
59omTables_SOURCES = omAllocPrivate.h omTables.c mylimits.h
60nodist_omTables_SOURCES = omConfig.h
61omTables_CPPFLAGS = ${AM_CPPFLAGS} -DOM_GENERATE_INC  -DHAVE_CONFIG_H
62
63CLEANFILES = $(BUILT_SOURCES)
64
65####################################################
66## Test program
67##
68# AM_LDFLAGS = -L${top_builddir}/omalloc -L${top_builddir}/../omalloc
69
70TESTS = omtTest-s-g omtTest-s-m omtTest-d-g omtTest-d-m
71
72if WANT_DEBUG
73# TESTS+=
74endif
75
76check_PROGRAMS = $(TESTS)
77
78
79EXTRA_PROGRAMS = omtTest-s-r omtTest-d-r
80#### tests fail: omtTest-s-r omtTest-d-r due to 
81# !!!expect omError_UnalignedAddr
82# ***omError_UnalignedAddr: addr is unaligned
83#  occured at:  ../../omalloc/omtTestError.c:260
84#   occured for (invalid) addr: 0x7fc5c3602811 (error=14)
85# +++ok  omError_UnalignedAddr
86#
87# !!!expect omError_NullSizeAlloc
88# 2669 Segmentation fault
89
90OMTTESTSSOURCES = omtTestReal.c omtTestDebug.c omtTestKeep.c omtTestError.c omtTest.c
91
92omtTest_s_g_SOURCES = $(OMTTESTSSOURCES)
93omtTest_s_g_CPPFLAGS= ${AM_CPPFLAGS} -DHAVE_CONFIG_H
94omtTest_s_g_CFLAGS  = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE}
95omtTest_s_g_LDADD   = libomalloc_g.la
96omtTest_s_g_LDFLAGS = -L${builddir} -static
97
98omtTest_s_m_CPPFLAGS= ${AM_CPPFLAGS} -DOM_TEST_MALLOC  -DHAVE_CONFIG_H
99omtTest_s_m_SOURCES = $(OMTTESTSSOURCES)
100omtTest_s_m_LDADD   = libomalloc_g.la
101omtTest_s_m_LDFLAGS = -L${builddir} -static
102
103omtTest_s_r_SOURCES = $(OMTTESTSSOURCES)
104omtTest_s_r_CPPFLAGS= ${AM_CPPFLAGS} -DOM_NDEBUG
105omtTest_s_r_CFLAGS  = -O3 ${PIPE}
106omtTest_s_r_LDADD   = libomalloc.la
107omtTest_s_r_LDFLAGS = -L${builddir} -static
108
109
110
111omtTest_d_g_SOURCES = $(OMTTESTSSOURCES)
112omtTest_d_g_CPPFLAGS= ${AM_CPPFLAGS} -DHAVE_CONFIG_H
113omtTest_d_g_CFLAGS  = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE}
114omtTest_d_g_LDADD   = libomalloc_g.la
115omtTest_d_g_LDFLAGS = -L${builddir}
116
117omtTest_d_m_CPPFLAGS= ${AM_CPPFLAGS} -DOM_TEST_MALLOC  -DHAVE_CONFIG_H
118omtTest_d_m_SOURCES = $(OMTTESTSSOURCES)
119omtTest_d_m_LDADD   = libomalloc_g.la
120omtTest_d_m_LDFLAGS = -L${builddir}
121
122omtTest_d_r_SOURCES = $(OMTTESTSSOURCES)
123omtTest_d_r_CPPFLAGS= ${AM_CPPFLAGS} -DOM_NDEBUG
124omtTest_d_r_CFLAGS  = -O3 ${PIPE}
125omtTest_d_r_LDADD   = libomalloc.la
126omtTest_d_r_LDFLAGS = -L${builddir}
Note: See TracBrowser for help on using the repository browser.