1if PLATFORM_WIN32 2 NO_UNDEFINED = -no-undefined 3else 4 NO_UNDEFINED = 5endif 6 7 8if OS_SOLARIS 9 AM_CFLAGS = -D_POSIX_PTHREAD_SEMANTICS 10endif 11 12 13 14if STATIC_TOOLS 15 PSTLIB = @PST_OBJDIR@/libpst.a @ZLIB_LIBS@ $(SEM_LIBS) 16else 17 PSTLIB = libpst.la 18endif 19 20 21common_header = common.h \ 22 define.h \ 23 libpst.h \ 24 libstrfunc.h \ 25 lzfu.h \ 26 timeconv.h \ 27 vbuf.h 28 29common_source = debug.c \ 30 libpst.c \ 31 libstrfunc.c \ 32 lzfu.c \ 33 timeconv.c \ 34 vbuf.c 35 36 37if NEED_XGETOPT 38 common_source += XGetopt.c 39 common_header += XGetopt.h 40endif 41 42noinst_PROGRAMS = deltasearch dumpblocks getidblock 43bin_PROGRAMS = lspst readpst pst2ldif nick2ldif 44if BUILD_DII 45 bin_PROGRAMS += pst2dii 46endif 47lspst_SOURCES = lspst.c $(common_header) 48readpst_SOURCES = readpst.c $(common_header) msg.cpp msg.h 49pst2ldif_SOURCES = pst2ldif.cpp $(common_header) 50pst2dii_SOURCES = pst2dii.cpp $(common_header) 51deltasearch_SOURCES = deltasearch.cpp $(common_header) 52dumpblocks_SOURCES = dumpblocks.c $(common_header) 53getidblock_SOURCES = getidblock.c $(common_header) 54nick2ldif_SOURCES = nick2ldif.cpp $(common_header) 55 56readpst_CPPFLAGS = $(AM_CPPFLAGS) $(GSF_CFLAGS) 57 58lspst_DEPENDENCIES = libpst.la 59readpst_DEPENDENCIES = libpst.la 60pst2ldif_DEPENDENCIES = libpst.la 61pst2dii_DEPENDENCIES = libpst.la 62deltasearch_DEPENDENCIES = libpst.la 63dumpblocks_DEPENDENCIES = libpst.la 64getidblock_DEPENDENCIES = libpst.la 65nick2ldif_DEPENDENCIES = libpst.la 66 67if STATIC_TOOLS 68 noinst_LTLIBRARIES = libpst.la 69else 70 lib_LTLIBRARIES = libpst.la 71 libpstincludedir = $(includedir)/libpst-@LIBPST_SO_MAJOR@/libpst 72 libpstinclude_HEADERS = \ 73 common.h \ 74 libpst.h \ 75 libstrfunc.h\ 76 lzfu.h \ 77 timeconv.h \ 78 vbuf.h 79 libpst_la_LDFLAGS = $(NO_UNDEFINED) -version-info @LIBPST_VERSION_INFO@ 80endif 81 82libpst_la_SOURCES = $(common_source) $(common_header) 83libpst_la_LIBADD = $(LTLIBICONV) @ZLIB_LIBS@ $(SEM_LIBS) 84 85EXTRA_DIST = 86if !NEED_XGETOPT 87 EXTRA_DIST += XGetopt.c XGetopt.h 88endif 89 90# set the include path found by configure 91INCLUDES= -I$(srcdir)/.. $(all_includes) 92 93# the library search path. 94lspst_LDADD = $(all_libraries) $(PSTLIB) $(LTLIBICONV) @ZLIB_LIBS@ 95readpst_LDADD = $(all_libraries) $(PSTLIB) $(LTLIBICONV) $(REGEXLIB) $(GSF_LIBS) @ZLIB_LIBS@ $(SEM_LIBS) 96pst2ldif_LDADD = $(all_libraries) $(PSTLIB) $(LTLIBICONV) @ZLIB_LIBS@ 97pst2dii_LDADD = $(all_libraries) $(PSTLIB) $(LTLIBICONV) -lgd @ZLIB_LIBS@ 98deltasearch_LDADD = $(all_libraries) $(PSTLIB) $(LTLIBICONV) @ZLIB_LIBS@ 99dumpblocks_LDADD = $(all_libraries) $(PSTLIB) $(LTLIBICONV) @ZLIB_LIBS@ 100getidblock_LDADD = $(all_libraries) $(PSTLIB) $(LTLIBICONV) @ZLIB_LIBS@ 101nick2ldif_LDADD = $(all_libraries) $(PSTLIB) $(LTLIBICONV) @ZLIB_LIBS@ 102 103 104