nut-debian/server/Makefile.am

31 lines
897 B
Makefile
Raw Normal View History

2010-03-26 01:20:59 +02:00
# Network UPS Tools: server
# 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
2011-01-26 11:35:08 +02:00
LDADD = ../common/libcommon.la ../common/libparseconf.la $(NETLIBS)
2010-03-26 01:20:59 +02:00
if WITH_WRAP
2011-01-26 11:35:08 +02:00
LDADD += $(LIBWRAP_LIBS)
2010-03-26 01:20:59 +02:00
endif
if WITH_SSL
2011-01-26 11:35:08 +02:00
LDADD += $(LIBSSL_LIBS)
2010-03-26 01:20:59 +02:00
endif
sbin_PROGRAMS = upsd
EXTRA_PROGRAMS = sockdebug
upsd_SOURCES = upsd.c user.c conf.c ssl.c sstate.c desc.c \
netget.c netmisc.c netlist.c netuser.c netset.c netinstcmd.c \
conf.h ctype.h desc.h netcmds.h neterr.h netget.h netinstcmd.h \
netlist.h netmisc.h netset.h netuser.h ssl.h sstate.h stype.h upsd.h \
upstype.h user-data.h user.h
sockdebug_SOURCES = sockdebug.c