summaryrefslogtreecommitdiffabout
path: root/src/Makefile.am
blob: c4fc211530a9c5733382830d268d54a2d92631ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# This file is part of Eclat 
# Copyright (C) 2012-2018 Sergey Poznyakoff
#
# Eclat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# Eclat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Eclat.  If not, see <http://www.gnu.org/licenses/>.

bin_PROGRAMS=eclat ispeek

eclat_SOURCES=\
 accfile.c\
 allocaddr.c\
 asscaddr.c\
 atvol.c\
 chvol.c\
 cmdline.h\
 config.c\
 cpimg.c\
 cpsnap.c\
 deimg.c\
 devmap.c\
 devol.c\
 disasaddr.c\
 ec2map.c\
 eclat.c\
 eclat.h\
 genericcl.c\
 getconout.c\
 igw.c\
 io.c\
 lsaddr.c\
 lsattr.c\
 lsaattr.c\
 lschvol.c\
 lsiattr.c\
 lsimg.c\
 lsinst.c\
 lsistat.c\
 lsreg.c\
 lssattr.c\
 lssg.c\
 lssnap.c\
 lstag.c\
 lsvol.c\
 lsvpc.c\
 lszon.c\
 mkimg.c\
 mkinst.c\
 mksg.c\
 mksnap.c\
 mktags.c\
 mkvol.c\
 mkvpc.c\
 rmaddr.c\
 rmsg.c\
 rmsnap.c\
 rmvol.c\
 rmvpc.c\
 routetable.c\
 setiattr.c\
 sg.c\
 sg.h\
 setaattr.c\
 startstop.c\
 subnet.c\
 util.c\
 vpcattr.c

ispeek_SOURCES = \
 ispeek.c\
 ispeek-cl.h

LDADD=../lib/libeclat.a @LIBOBJS@ ../grecs/src/libgrecs.a $(CURL_LIBS) @MAPLIBS@
AM_CPPFLAGS = \
 @GRECS_INCLUDES@ -I$(top_srcdir)/lib $(CURL_CFLAGS)\
 -DSYSCONFDIR=\"$(sysconfdir)\"\
 -DDEFAULT_VERSION_INCLUDE_DIR=\"$(incdir)\"\
 -DDEFAULT_INCLUDE_DIR=\"$(pkgdatadir)/include\"\
 -DDEFAULT_PREPROCESSOR="$(DEFAULT_PREPROCESSOR)"

OPTFILES=\
 allocaddr-cl.opt\
 asscaddr-cl.opt\
 cpimg-cl.opt\
 cpsnap-cl.opt\
 devol-cl.opt\
 disasaddr-cl.opt\
 generic-cl.opt\
 lsaddr-cl.opt\
 lsattr-cl.opt\
 lsimg-cl.opt\
 lsistat-cl.opt\
 lssg-cl.opt\
 lssnap-cl.opt\
 lstag-cl.opt\
 mkimg-cl.opt\
 mkinst-cl.opt\
 mksg-cl.opt\
 mksubnet-cl.opt\
 mktags-cl.opt\
 mkvol-cl.opt\
 mkvpc-cl.opt\
 rmaddr-cl.opt\
 rmsg-cl.opt\
 sg-cl.opt\
 setiattr-cl.opt\
 setaattr-cl.opt\
 stop-cl.opt

eclat_SOURCES += $(OPTFILES:.opt=.h)

BUILT_SOURCES=\
 cmdline.h\
 ispeek-cl.h\
 $(OPTFILES:.opt=.h)\
 comtab.man\
 xref.man

EXTRA_DIST=\
 cmdline.opt\
 ispeek-cl.opt\
 $(OPTFILES)\
 comtab.man\
 xref.man\
 eclatcl.m4

SUFFIXES=.opt .c .h

.opt.h:
	$(AM_V_GEN)m4 -s $(top_srcdir)/@GRECS_SUBDIR@/build-aux/getopt.m4 eclatcl.m4 $< | sed '1d' > $@

comtab.man: eclat.c
	$(AM_V_GEN)if test -f eclat.c; then\
		test -x ./eclat || make eclat || exit 1; \
		./eclat -l '\t\\fB%n\\fR\t\\fB%i\\fR\n' | sed 's/-/\\-/g' > comtab.man; \
	else \
		echo >&2 "comtab.man must be built in $(top_srcdir)/src"; \
		exit 1; \
	fi

xref.man: eclat.c
	$(AM_V_GEN)if test -f eclat.c; then\
		test -x ./eclat || make eclat || exit 1; \
		./eclat -l '%.BR eclat\\-: (1)n,\n' > xref.man; \
	else \
		echo >&2 "xref.man must be built in $(top_srcdir)/src"; \
		exit 1; \
	fi

Return to:

Send suggestions and report system problems to the System administrator.