Makefile.am 1.69 KB
LTLIBS = $(INTLLIBS)
LIBS = $(INTLLIBS)

LTLIBS += @THREAD_LIB@ @SOCK_LIB@
LIBS += @THREAD_LIB@ @SOCK_LIB@

INCLUDES = -I../include @INOTIFY_INCLUDES@

libscot_source = scot_common.c cmdla.c \
					list.c stack.c queue.c \
					thread.c dir.c \
					exception.c scot_exceptions.c \
					stream.c stream_ctl.c socket.c socket_in.c \
					event.c event_listener.c

if !WIN32
libscot_source += stream_pool_base.c stream_pool_management.c \
					stream_pool_fraction.c spf_thread_impl.c
endif 

BUILT_SOURCES = thread.c memory.c dir.c spf_thread_impl.c stream_ctl.c
CLEANFILES    = thread.c memory.c dir.c spf_thread_impl.c stream_ctl.c

if PTHREAD
thread.c: Makefile posix/thread.c
	cp posix/thread.c ./thread.c
else
thread.c: Makefile win32/thread.c
	cp win32/thread.c ./thread.c
endif

if WIN32
libscot_source += memory.c stream_win.c

stream_ctl.c: Makefile win32/stream_ctl.c
	cp win32/stream_ctl.c ./stream_ctl.c
spf_thread_impl.c: Makefile win32/spf_thread_impl.c
	cp win32/spf_thread_impl.c ./spf_thread_impl.c
memory.c: Makefile win32/memory.c
	cp win32/memory.c ./memory.c
dir.c: Makefile win32/dir.c
	cp win32/dir.c ./dir.c
else
libscot_source += socket_un.c fs_watcher.c

stream_ctl.c: Makefile posix/stream_ctl.c
	cp posix/stream_ctl.c ./stream_ctl.c
spf_thread_impl.c: Makefile posix/spf_thread_impl.c
	cp posix/spf_thread_impl.c ./spf_thread_impl.c
memory.c: Makefile
	touch memory.c
dir.c: Makefile posix/dir.c
	cp posix/dir.c ./dir.c
endif

lib_LTLIBRARIES = libscot.la

libscot_la_SOURCES = $(libscot_source)
libscot_la_LDFLAGS = -version-info 0:3:0 -no-undefined
libscot_la_CFLAGS  = @THREAD_CFLAGS@

# install: install-am
# 	strip -x $(DESTDIR)$(libdir)/libscot.so.0.0.2
# 	strip -x $(DESTDIR)$(libdir)/libscot.a