diff --git a/Makefile.am b/Makefile.am index b3c69850a3..6fa1521c9d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 - diff --git a/kwin_main.cpp b/kwin_main.cpp new file mode 100644 index 0000000000..15746ebb8d --- /dev/null +++ b/kwin_main.cpp @@ -0,0 +1,7 @@ +extern "C" { int kdemain(int, char *[]); } + +int main(int c, char *v[]) +{ + return kdemain(c,v); +} +