Bernhard Fischer:
[rrdtool.git] / src / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 #AUTOMAKE_OPTIONS   = foreign
4 #
5 #ACLOCAL_M4        = $(top_srcdir)/config/aclocal.m4
6 #AUTOHEADER = @AUTOHEADER@ --localdir=$(top_srcdir)/config
7 fontsdir =  $(datadir)/rrdtool/fonts
8 fonts_DATA = DejaVuSansMono-Roman.ttf
9
10 if STATIC_PROGRAMS
11 AM_LDFLAGS = -all-static
12 endif
13
14 #INCLUDES = $(FREETYPE_INCLUDES) $(ART_INCLUDES) \
15 #           $(PNG_INCLUDES) $(ZLIB_INCLUDES)
16 RRD_DEFAULT_FONT=@RRD_DEFAULT_FONT@
17 AM_CPPFLAGS = -DRRD_DEFAULT_FONT=\"$(RRD_DEFAULT_FONT)\" -DNUMVERS=@NUMVERS@
18
19 UPD_C_FILES =           \
20         rrd_getopt.c    \
21         rrd_getopt1.c   \
22         parsetime.c     \
23         rrd_hw.c        \
24         rrd_diff.c      \
25         rrd_format.c    \
26         rrd_info.c      \
27         rrd_error.c     \
28         rrd_open.c      \
29         rrd_nan_inf.c   \
30         rrd_rpncalc.c   \
31         rrd_update.c
32
33 RRD_C_FILES =           \
34         hash_32.c       \
35         pngsize.c       \
36         rrd_create.c    \
37         rrd_graph.c     \
38         rrd_graph_helper.c      \
39         rrd_version.c   \
40         rrd_last.c      \
41         rrd_lastupdate.c        \
42         rrd_first.c     \
43         rrd_restore.c   \
44         rrd_xport.c     \
45         art_rgba_svp.c \
46         rrd_gfx.c \
47         rrd_afm.c rrd_afm_data.c \
48         rrd_dump.c      \
49         rrd_fetch.c     \
50         rrd_tool.c      \
51         rrd_resize.c \
52         rrd_tune.c
53
54 noinst_HEADERS = \
55         art_rgba_svp.h \
56         unused.h \
57         rrd_gfx.h \
58         rrd_getopt.h parsetime.h \
59         rrd_format.h rrd_tool.h rrd_xport.h rrd.h rrd_hw.h rrd_rpncalc.h \
60         rrd_nan_inf.h fnv.h rrd_graph.h rrd_afm.h rrd_afm_data.h \
61         rrd_is_thread_safe.h
62
63 noinst_LTLIBRARIES        = librrdupd.la
64
65 lib_LTLIBRARIES           = librrd.la 
66 if BUILD_MULTITHREAD
67 lib_LTLIBRARIES           += librrd_th.la
68 endif
69
70 librrdupd_la_SOURCES      = $(UPD_C_FILES) rrd_not_thread_safe.c
71 librrdupd_la_LIBADD       = $(CORE_LIBS)
72
73 librrd_la_SOURCES         = $(RRD_C_FILES)
74 librrd_la_LIBADD          = librrdupd.la $(ALL_LIBS)
75
76 # This flag accepts an argument of the form current[:revision[:age]]. So,
77 # passing -version-info 3:12:1 sets current to 3, revision to 12, and age to 1.
78 #
79 # If either revision or age are omitted, they default to 0. Also note that
80 # age must be less than or equal to the current interface number.
81 #
82 # Here are a set of rules to help you update your library version information:
83 #
84 #   1. Start with version information of 0:0:0 for each libtool library.
85 #
86 #   2. Update the version information only immediately before a public
87 #   release of your software. More frequent updates are unnecessary, and
88 #   only guarantee that the current interface number gets larger faster.
89 #
90 #   3. If the library source code has changed at all since the last update,
91 #   then increment revision (c:r:a becomes c:r+1:a).
92 #
93 #   4. If any interfaces have been added, removed, or changed since the last
94 #   update, increment current, and set revision to 0.
95 #
96 #   5. If any interfaces have been added since the last public release, then
97 #   increment age.
98 #
99 #   6. If any interfaces have been removed since the last public release,
100 #   then set age to 0.
101 #
102 # Never try to set the interface numbers so that they correspond to the
103 # release number of your package. This is an abuse that only fosters
104 # misunderstanding of the purpose of library versions. Instead, use the
105 # -release flag (see Release numbers), but be warned that every release of
106 # your package will not be binary compatible with any other release.
107 #
108 # see http://www.gnu.org/software/libtool/manual.html#SEC32 for explanation
109 librrd_la_LDFLAGS         = -version-info 2:11:0
110
111 librrd_th_la_SOURCES         = $(UPD_C_FILES) $(RRD_C_FILES) rrd_thread_safe.c
112 librrd_th_la_CFLAGS          = $(MULTITHREAD_CFLAGS)
113 librrd_th_la_LDFLAGS         = $(MULTITHREAD_LDFLAGS) -version-info 2:11:0
114 librrd_th_la_LIBADD          = $(ALL_LIBS)
115
116 include_HEADERS = rrd.h
117
118 bin_PROGRAMS    = rrdtool rrdupdate
119
120 if BUILD_RRDCGI
121 bin_PROGRAMS += rrdcgi
122 endif
123
124 rrdcgi_SOURCES  = rrd_cgi.c
125 rrdcgi_LDADD    = librrd.la
126
127 rrdupdate_SOURCES = rrdupdate.c
128 rrdupdate_LDADD   = librrdupd.la
129
130 rrdtool_SOURCES = 
131 rrdtool_DEPENDENCIES = rrd_tool.o librrd.la
132 rrdtool_LDADD   = librrd.la
133
134 # strftime is here because we do not usually need it. unices have propper
135 # iso date support
136 EXTRA_DIST= strftime.c strftime.h $(fonts_DATA) \
137         win32comp.c  rrd_thread_safe_nt.c get_ver.awk
138