Skip to content

Commit

Permalink
common/Makefile.am: define libnutwincompat.la recipe
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
  • Loading branch information
jimklimov committed Feb 26, 2024
1 parent fe3b2ca commit d14e31c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion common/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,16 @@ else !HAVE_STRSEP
libcommonclient_la_SOURCES += strsep.c
endif !HAVE_STRSEP

# TODO: libnutwincompat.la?
if HAVE_WINDOWS
libnutwincompat_la_SOURCES = wincompat.c $(top_srcdir)/include/wincompat.h
libnutwincompat_la_LDFLAGS =
libnutwincompat_la_LIBADD =
# Assume setenv() provided by OS or nut_setenv() provided by
# another NUT library and linked to the final NUT program/lib
# (anyhow, avoid a link-time conflict with two definitions):
libnutwincompat_la_CFLAGS = $(AM_CFLAGS) -DHAVE_SETENV=1
noinst_LTLIBRARIES += libnutwincompat.la

libcommon_la_SOURCES += wincompat.c $(top_srcdir)/include/wincompat.h
libcommonclient_la_SOURCES += wincompat.c $(top_srcdir)/include/wincompat.h
endif HAVE_WINDOWS
Expand Down

0 comments on commit d14e31c

Please sign in to comment.