The dummy.cpp hack makes no sense when it starts to contain

stuff. Better make it a real source file. Fixes compilation for
people who didn't figure out they needed to remove dummy.cpp
in the builddir ;-)

svn path=/trunk/kdebase/kwin/; revision=63688
icc-effect-5.14.5
David Faure 2000-09-12 22:10:37 +00:00
parent c56400145e
commit c887e85912
2 changed files with 8 additions and 4 deletions

View File

@ -13,7 +13,7 @@ kwin_la_LDFLAGS = $(all_libraries) -module -avoid-version
include_HEADERS = KWinInterface.h
kwin_SOURCES = dummy.cpp
kwin_SOURCES = kwin_main.cpp
kwin_LDADD = kwin.la
kwin_LDFLAGS = $(all_libraries) $(KDE_RPATH)
@ -31,6 +31,3 @@ data_DATA= eventsrc
sounddir= $(kde_sounddir)
sound_DATA = pop.wav
dummy.cpp:
echo 'extern "C" { int kdemain(int, char *[]);} int main(int c, char *v[]) { return kdemain(c,v); }' > dummy.cpp

7
kwin_main.cpp Normal file
View File

@ -0,0 +1,7 @@
extern "C" { int kdemain(int, char *[]); }
int main(int c, char *v[])
{
return kdemain(c,v);
}