aboutsummaryrefslogtreecommitdiff
path: root/lib/fstream/Makemodule.am
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-09-04 18:26:16 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-09-16 09:34:35 +0200
commit1e255d0f6c472bb3c710aea1ea8dc5d27c0fba4a (patch)
tree0ba8dfc243a00ef955da973b1615a95498579525 /lib/fstream/Makemodule.am
parentb96f0fc154feef531be76034bf6e38925636146f (diff)
Add stream I/O abstraction library
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/fstream/Makemodule.am')
-rw-r--r--lib/fstream/Makemodule.am17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/fstream/Makemodule.am b/lib/fstream/Makemodule.am
new file mode 100644
index 0000000..27e4701
--- /dev/null
+++ b/lib/fstream/Makemodule.am
@@ -0,0 +1,17 @@
+libfstream_a_SOURCES = include/fstream.h
+libfstream_a_SOURCES += lib/fstream/internal.h
+libfstream_a_SOURCES += lib/fstream/ostream.c lib/fstream/printf.c
+libfstream_a_SOURCES += lib/fstream/istream.c
+libfstream_a_CFLAGS = $(AM_CFLAGS) $(ZLIB_CFLAGS) $(XZ_CFLAGS)
+libfstream_a_CPPFLAGS = $(AM_CPPFLAGS)
+
+if WINDOWS
+libfstream_a_SOURCES += lib/fstream/win32/ostream.c
+libfstream_a_SOURCES += lib/fstream/win32/istream.c
+libfstream_a_CFLAGS += -DWINVER=0x0600 -D_WIN32_WINNT=0x0600
+else
+libfstream_a_SOURCES += lib/fstream/unix/ostream.c
+libfstream_a_SOURCES += lib/fstream/unix/istream.c
+endif
+
+noinst_LIBRARIES += libfstream.a