source: git/omalloc/Makefile.am @ e050c2

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