]> www.fi.muni.cz Git - evince.git/blobdiff - cut-n-paste/smclient/Makefile.am
Make session manager code compile for w32. These changes have been taken
[evince.git] / cut-n-paste / smclient / Makefile.am
index c4ed73ada58a78c5610eb0a66f40652b96f25f13..7cc76bcbb864aea5771f5255476af5723b3afe47 100644 (file)
@@ -1,20 +1,36 @@
 noinst_LTLIBRARIES = libsmclient.la
 
-libsmclient_la_SOURCES =       \
+if PLATFORM_WIN32
+platform_sources = eggsmclient-win32.c
+else
+platform_libs = -lSM -lICE
+platform_sources =             \
+       eggsmclient-xsmp.c      \
        eggdesktopfile.c        \
-       eggdesktopfile.h        \
+       eggdesktopfile.h
+platform_defines = -DEGG_SM_CLIENT_BACKEND_XSMP
+endif
+
+libsmclient_la_SOURCES =       \
        eggsmclient.c           \
        eggsmclient.h           \
        eggsmclient-private.h   \
-       eggsmclient-xsmp.c
+       $(platform_sources)
 
 libsmclient_la_CFLAGS =                                \
        -DG_LOG_DOMAIN=\""EggSMClient"\"        \
-       -DEGG_SM_CLIENT_BACKEND_XSMP            \
+       $(platform_defines)                     \
        $(SMCLIENT_CFLAGS)                      \
        $(WARNING_CFLAGS)                       \
        $(DISABLE_DEPRECATED)
 
 libsmclient_la_LIBADD =        \
        $(SMCLIENT_LIBS)        \
-       -lSM -lICE
+       $(platform_libs)
+
+EXTRA_DIST =                   \
+       eggsmclient-win32.c     \
+       eggsmclient-xsmp.c      \
+       eggdesktopfile.c        \
+       eggdesktopfile.h
+