-
-
Notifications
You must be signed in to change notification settings - Fork 425
Expand file tree
/
Copy pathMakefile.am
More file actions
74 lines (63 loc) · 2.31 KB
/
Makefile.am
File metadata and controls
74 lines (63 loc) · 2.31 KB
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
# Network UPS Tools: clients
# by default, link programs in this directory with libcommon.a
LDADD = ../common/libcommon.la libupsclient.la $(NETLIBS)
if WITH_SSL
LDADD += $(LIBSSL_LIBS)
endif
# Avoid per-target CFLAGS, because this will prevent re-use of object
# files. In any case, CFLAGS are only -I options, so there is no harm,
# but only add them if we really use the target.
AM_CFLAGS = -I$(top_srcdir)/include
if WITH_SSL
AM_CFLAGS += $(LIBSSL_CFLAGS)
endif
if WITH_CGI
AM_CFLAGS += $(LIBGD_CFLAGS)
endif
bin_PROGRAMS = upsc upslog upsrw upscmd
dist_bin_SCRIPTS = upssched-cmd
if HAVE_WINDOWS_SOCKETS
sbin_PROGRAMS = upsmon upssched message
#TODO : port libnutclient
lib_LTLIBRARIES = libupsclient.la
else !HAVE_WINDOWS_SOCKETS
sbin_PROGRAMS = upsmon upssched
lib_LTLIBRARIES = libupsclient.la libnutclient.la
endif !HAVE_WINDOWS_SOCKETS
if WITH_DEV
include_HEADERS = upsclient.h ../include/parseconf.h nutclient.h
endif
if WITH_CGI
cgiexec_PROGRAMS = upsstats.cgi upsimage.cgi upsset.cgi
endif
upsc_SOURCES = upsc.c upsclient.h
upscmd_SOURCES = upscmd.c upsclient.h
upsrw_SOURCES = upsrw.c upsclient.h
upslog_SOURCES = upslog.c upsclient.h upslog.h
upsmon_SOURCES = upsmon.c upsmon.h upsclient.h
if HAVE_WINDOWS_SOCKETS
message_SOURCES = message.c
endif
upssched_SOURCES = upssched.c upssched.h
upssched_LDADD = ../common/libcommon.la ../common/libparseconf.la $(NETLIBS)
upsimage_cgi_SOURCES = upsimage.c upsclient.h upsimagearg.h cgilib.c cgilib.h
upsimage_cgi_LDADD = $(LDADD) $(LIBGD_LDFLAGS)
upsset_cgi_SOURCES = upsset.c upsclient.h cgilib.c cgilib.h
upsstats_cgi_SOURCES = upsstats.c upsclient.h status.h upsstats.h \
upsimagearg.h cgilib.c cgilib.h
# not LDADD.
# libupsclient version information
# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
if HAVE_WINDOWS_SOCKETS
libupsclient_la_SOURCES = upsclient.c upsclient.h ../common/wincompat.c ../common/common.c
libupsclient_la_LIBADD = ../common/libparseconf.la -lws2_32
libupsclient_la_LDFLAGS = -version-info 3:1:0 -no-undefined
else !HAVE_WINDOWS_SOCKETS
libupsclient_la_SOURCES = upsclient.c upsclient.h
libupsclient_la_LIBADD = ../common/libparseconf.la
libupsclient_la_LDFLAGS = -version-info 3:1:0
endif !HAVE_WINDOWS_SOCKETS
if WITH_SSL
libupsclient_la_LIBADD += $(LIBSSL_LIBS)
endif
libnutclient_la_SOURCES = nutclient.h nutclient.cpp