nut/server/Makefile.am

45 lines
1.3 KiB
Makefile
Raw Permalink Normal View History

2010-03-25 23:20:59 +00:00
# Network UPS Tools: server
2022-06-29 10:37:36 +00:00
# Make sure out-of-dir dependencies exist (especially when dev-building parts):
$(top_builddir)/common/libcommon.la \
$(top_builddir)/common/libparseconf.la: dummy
@cd $(@D) && $(MAKE) $(AM_MAKEFLAGS) $(@F)
2010-03-25 23:20:59 +00:00
# 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_WRAP
AM_CFLAGS += $(LIBWRAP_CFLAGS)
endif
if WITH_SSL
AM_CFLAGS += $(LIBSSL_CFLAGS)
endif
2022-06-29 10:37:36 +00:00
LDADD = $(top_builddir)/common/libcommon.la $(top_builddir)/common/libparseconf.la $(NETLIBS)
2010-03-25 23:20:59 +00:00
if WITH_WRAP
2011-01-26 09:35:08 +00:00
LDADD += $(LIBWRAP_LIBS)
2010-03-25 23:20:59 +00:00
endif
if WITH_SSL
2011-01-26 09:35:08 +00:00
LDADD += $(LIBSSL_LIBS)
2010-03-25 23:20:59 +00:00
endif
sbin_PROGRAMS = upsd
EXTRA_PROGRAMS = sockdebug
2012-08-12 21:39:31 +00:00
upsd_SOURCES = upsd.c user.c conf.c netssl.c sstate.c desc.c \
2010-03-25 23:20:59 +00:00
netget.c netmisc.c netlist.c netuser.c netset.c netinstcmd.c \
2012-01-24 10:22:33 +00:00
conf.h nut_ctype.h desc.h netcmds.h neterr.h netget.h netinstcmd.h \
2012-08-12 21:39:31 +00:00
netlist.h netmisc.h netset.h netuser.h netssl.h sstate.h stype.h upsd.h \
2010-03-25 23:20:59 +00:00
upstype.h user-data.h user.h
sockdebug_SOURCES = sockdebug.c
2022-06-29 10:37:36 +00:00
dummy:
MAINTAINERCLEANFILES = Makefile.in .dirstamp
# NOTE: Do not clean ".deps" in SUBDIRS of the main project,
# the root Makefile.am takes care of that!
#clean-local:
# rm -rf $(builddir)/.deps