forked from stephane/libmodbus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.am
42 lines (34 loc) · 947 Bytes
/
Makefile.am
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
EXTRA_DIST =
lib_LTLIBRARIES = libmodbus.la
AM_CPPFLAGS = \
-include $(top_builddir)/config.h \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DLIBEXECDIR=\""$(libexecdir)"\" \
-I${top_srcdir}/src
AM_CFLAGS = ${my_CFLAGS}
libmodbus_la_SOURCES = \
modbus.c \
modbus.h \
modbus-data.c \
modbus-private.h \
modbus-rtu.c \
modbus-rtu.h \
modbus-rtu-private.h \
modbus-tcp.c \
modbus-tcp.h \
modbus-tcp-private.h \
modbus-version.h
libmodbus_la_LDFLAGS = -no-undefined \
-version-info $(LIBMODBUS_LT_VERSION_INFO)
if OS_WIN32
libmodbus_la_LIBADD = -lwsock32
endif
if OS_QNX
libmodbus_la_LIBADD = -lsocket
endif
# Header files to install
libmodbusincludedir = $(includedir)/modbus
libmodbusinclude_HEADERS = modbus.h modbus-version.h modbus-rtu.h modbus-tcp.h
DISTCLEANFILES = modbus-version.h
EXTRA_DIST += modbus-version.h.in
CLEANFILES = *~