From 56ce62a020c4a0261a72518ac950e1eeb04c206b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 20 Feb 2006 23:40:49 +0000 Subject: [PATCH] build dllmain.c only on win32 (makes gcc shut up a little more) git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@539 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/Makefile.am | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 5581d77..d3a10a3 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -342,7 +342,6 @@ libpolyp_@PA_MAJORMINOR@_la_SOURCES = \ libpolyp_@PA_MAJORMINOR@_la_SOURCES += \ polypcore/authkey.c polypcore/authkey.h \ polypcore/conf-parser.c polypcore/conf-parser.h \ - polypcore/dllmain.c \ polypcore/dynarray.c polypcore/dynarray.h \ polypcore/gccmacro.h \ polypcore/idxset.c polypcore/idxset.h \ @@ -369,6 +368,11 @@ libpolyp_@PA_MAJORMINOR@_la_SOURCES += \ polypcore/winsock.h \ polypcore/xmalloc.c polypcore/xmalloc.h +if OS_IS_WIN32 +libpolyp_@PA_MAJORMINOR@_la_SOURCES += \ + polypcore/dllmain.c +endif + if HAVE_X11 libpolyp_@PA_MAJORMINOR@_la_SOURCES += \ polyp/client-conf-x11.c polyp/client-conf-x11.h \ @@ -484,7 +488,6 @@ libpolypcore_la_SOURCES += \ polypcore/core.c polypcore/core.h \ polypcore/core-scache.c polypcore/core-scache.h \ polypcore/core-subscribe.c polypcore/core-subscribe.h \ - polypcore/dllmain.c \ polypcore/dynarray.c polypcore/dynarray.h \ polypcore/endianmacros.h \ polypcore/g711.c polypcore/g711.h \ @@ -523,6 +526,11 @@ libpolypcore_la_SOURCES += \ polypcore/winsock.h \ polypcore/xmalloc.c polypcore/xmalloc.h +if OS_IS_WIN32 +libpolypcore_la_SOURCES += \ + polypcore/dllmain.c +endif + libpolypcore_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBOIL_CFLAGS) libpolypcore_la_LDFLAGS = -avoid-version libpolypcore_la_LIBADD = $(AM_LIBADD) $(LIBLTDL) $(LIBSAMPLERATE_LIBS) $(LIBSNDFILE_LIBS) $(WINSOCK_LIBS) $(LIBOIL_LIBS) -- 2.7.4