$NetBSD: patch-ah,v 1.4 2001/12/16 20:33:41 skrll Exp $ --- dcop/Makefile.in.orig Tue Nov 13 20:57:03 2001 +++ dcop/Makefile.in @@ -284,12 +284,12 @@ KDE_OPTIONS = qtonly INCLUDES = $(all_includes) -LDFLAGS = $(all_libraries) +LDFLAGS = $(all_libraries) $(KDE_RPATH) bin_PROGRAMS = dcopserver check_PROGRAMS = testdcop testdcopc -lib_LTLIBRARIES = libDCOP.la dcopserver.la +lib_LTLIBRARIES = libDCOP.la libdcopserver_main.la dcopserver.la libDCOP_la_LIBADD = KDE-ICE/libkICE.la $(LIB_QT) libDCOP_la_LDFLAGS = -version-info 1:0 $(all_libraries) -no-undefined @@ -303,13 +303,16 @@ # dcopstub needs to go first for --enable-final to work libDCOP_la_SOURCES = dcopstub.cpp dcopclient.cpp dcopobject.cpp dcopref.cpp +libdcopserver_main_la_SOURCES = dcopserver.cpp dcopsignals.cpp +libdcopserver_main_la_LIBADD = libDCOP.la + dcopserver_la_LDFLAGS = -module -avoid-version -dcopserver_la_SOURCES = dcopserver.cpp dcopsignals.cpp -dcopserver_la_LIBADD = libDCOP.la +dcopserver_la_SOURCES = dcopserver_main.cpp +dcopserver_la_LIBADD = libdcopserver_main.la dcopserver_LDFLAGS = $(KDE_RPATH) -dcopserver_SOURCES = dummy.cpp -dcopserver_LDADD = dcopserver.la +dcopserver_SOURCES = dcopserver_main.cpp +dcopserver_LDADD = libdcopserver_main.la testdcop_SOURCES = testdcop.cpp testdcop_LDADD = ../kdecore/libkdecore.la @@ -334,21 +337,26 @@ libDCOP_la_nofinal_OBJECTS = dcopstub.lo dcopclient.lo dcopobject.lo dcopref.lo @KDE_USE_FINAL_FALSE@libDCOP_la_OBJECTS = $(libDCOP_la_nofinal_OBJECTS) @KDE_USE_FINAL_TRUE@libDCOP_la_OBJECTS = $(libDCOP_la_final_OBJECTS) -dcopserver_la_DEPENDENCIES = libDCOP.la -#>- dcopserver_la_OBJECTS = dcopserver.lo dcopsignals.lo +libdcopserver_main_la_LDFLAGS = +libdcopserver_main_la_DEPENDENCIES = libDCOP.la +#>- libdcopserver_main_la_OBJECTS = dcopserver.lo dcopsignals.lo #>+ 4 -dcopserver_la_final_OBJECTS = dcopserver_la.all_cpp.lo -dcopserver_la_nofinal_OBJECTS = dcopserver.lo dcopsignals.lo -@KDE_USE_FINAL_FALSE@dcopserver_la_OBJECTS = $(dcopserver_la_nofinal_OBJECTS) -@KDE_USE_FINAL_TRUE@dcopserver_la_OBJECTS = $(dcopserver_la_final_OBJECTS) +libdcopserver_main_la_final_OBJECTS = libdcopserver_main_la.all_cpp.lo +libdcopserver_main_la_nofinal_OBJECTS = dcopserver.lo dcopsignals.lo +@KDE_USE_FINAL_FALSE@libdcopserver_main_la_OBJECTS = $(libdcopserver_main_la_nofinal_OBJECTS) +@KDE_USE_FINAL_TRUE@libdcopserver_main_la_OBJECTS = $(libdcopserver_main_la_final_OBJECTS) +dcopserver_la_DEPENDENCIES = libdcopserver_main.la +#>- dcopserver_la_OBJECTS = dcopserver_main.lo +#>+ 1 +dcopserver_la_OBJECTS = dcopserver_main.lo bin_PROGRAMS = dcopserver$(EXEEXT) check_PROGRAMS = testdcop$(EXEEXT) testdcopc$(EXEEXT) PROGRAMS = $(bin_PROGRAMS) -#>- dcopserver_OBJECTS = dummy.$(OBJEXT) +#>- dcopserver_OBJECTS = dcopserver_main.$(OBJEXT) #>+ 1 -dcopserver_OBJECTS = dummy.$(OBJEXT) -dcopserver_DEPENDENCIES = dcopserver.la +dcopserver_OBJECTS = dcopserver_main.$(OBJEXT) +dcopserver_DEPENDENCIES = libdcopserver_main.la #>- testdcop_OBJECTS = testdcop.$(OBJEXT) #>+ 1 testdcop_OBJECTS = testdcop.$(OBJEXT) @@ -392,8 +400,8 @@ TAR = tar GZIP_ENV = --best -SOURCES = $(libDCOP_la_SOURCES) $(dcopserver_la_SOURCES) $(dcopserver_SOURCES) $(testdcop_SOURCES) $(testdcopc_SOURCES) -OBJECTS = $(libDCOP_la_OBJECTS) $(dcopserver_la_OBJECTS) $(dcopserver_OBJECTS) $(testdcop_OBJECTS) $(testdcopc_OBJECTS) +SOURCES = $(libDCOP_la_SOURCES) $(libdcopserver_main_la_SOURCES) $(dcopserver_la_SOURCES) $(dcopserver_SOURCES) $(testdcop_SOURCES) $(testdcopc_SOURCES) +OBJECTS = $(libDCOP_la_OBJECTS) $(libdcopserver_main_la_OBJECTS) $(dcopserver_la_OBJECTS) $(dcopserver_OBJECTS) $(testdcop_OBJECTS) $(testdcopc_OBJECTS) #>- all: all-redirect #>+ 1 @@ -486,6 +494,9 @@ @KDE_USE_CLOSURE_FALSE@libDCOP.la: $(libDCOP_la_OBJECTS) $(libDCOP_la_DEPENDENCIES) $(CXXLINK) -rpath $(libdir) $(libDCOP_la_LDFLAGS) $(libDCOP_la_OBJECTS) $(libDCOP_la_LIBADD) $(LIBS) +libdcopserver_main.la: $(libdcopserver_main_la_OBJECTS) $(libdcopserver_main_la_DEPENDENCIES) + $(CXXLINK) -rpath $(libdir) $(libdcopserver_main_la_LDFLAGS) $(libdcopserver_main_la_OBJECTS) $(libdcopserver_main_la_LIBADD) $(LIBS) + dcopserver.la: $(dcopserver_la_OBJECTS) $(dcopserver_la_DEPENDENCIES) $(CXXLINK) -rpath $(libdir) $(dcopserver_la_LDFLAGS) $(dcopserver_la_OBJECTS) $(dcopserver_la_LIBADD) $(LIBS) @@ -770,9 +781,6 @@ maintainer-clean-generic clean mostlyclean distclean maintainer-clean -dummy.cpp: - echo > dummy.cpp - # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: @@ -828,11 +836,23 @@ rm -f libDCOP_la.all_cpp.final libDCOP_la.all_cpp.files #>+ 11 -dcopserver_la.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/dcopserver.cpp $(srcdir)/dcopsignals.cpp +libdcopserver_main_la.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/dcopserver.cpp $(srcdir)/dcopsignals.cpp + @echo 'creating libdcopserver_main_la.all_cpp.cpp ...'; \ + rm -f libdcopserver_main_la.all_cpp.files libdcopserver_main_la.all_cpp.final; \ + echo "#define KDE_USE_FINAL 1" >> libdcopserver_main_la.all_cpp.final; \ + for file in dcopserver.cpp dcopsignals.cpp ; do \ + echo "#include \"$$file\"" >> libdcopserver_main_la.all_cpp.files; \ + test ! -f $(srcdir)/$$file || egrep '^#pragma +implementation' $(srcdir)/$$file >> libdcopserver_main_la.all_cpp.final; \ + done; \ + cat libdcopserver_main_la.all_cpp.final libdcopserver_main_la.all_cpp.files > libdcopserver_main_la.all_cpp.cpp; \ + rm -f libdcopserver_main_la.all_cpp.final libdcopserver_main_la.all_cpp.files + +#>+ 11 +dcopserver_la.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/dcopserver_main.cpp @echo 'creating dcopserver_la.all_cpp.cpp ...'; \ rm -f dcopserver_la.all_cpp.files dcopserver_la.all_cpp.final; \ echo "#define KDE_USE_FINAL 1" >> dcopserver_la.all_cpp.final; \ - for file in dcopserver.cpp dcopsignals.cpp ; do \ + for file in dcopserver_main.cpp ; do \ echo "#include \"$$file\"" >> dcopserver_la.all_cpp.files; \ test ! -f $(srcdir)/$$file || egrep '^#pragma +implementation' $(srcdir)/$$file >> dcopserver_la.all_cpp.final; \ done; \ @@ -840,11 +860,11 @@ rm -f dcopserver_la.all_cpp.final dcopserver_la.all_cpp.files #>+ 11 -dcopserver.all_cpp.cpp: $(srcdir)/Makefile.in dummy.cpp +dcopserver.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/dcopserver_main.cpp @echo 'creating dcopserver.all_cpp.cpp ...'; \ rm -f dcopserver.all_cpp.files dcopserver.all_cpp.final; \ echo "#define KDE_USE_FINAL 1" >> dcopserver.all_cpp.final; \ - for file in dummy.cpp ; do \ + for file in dcopserver_main.cpp ; do \ echo "#include \"$$file\"" >> dcopserver.all_cpp.files; \ test ! -f $(srcdir)/$$file || egrep '^#pragma +implementation' $(srcdir)/$$file >> dcopserver.all_cpp.final; \ done; \ @@ -865,20 +885,20 @@ #>+ 3 clean-final: - -rm -f libDCOP_la.all_cpp.cpp dcopserver_la.all_cpp.cpp dcopserver.all_cpp.cpp testdcop.all_cpp.cpp + -rm -f libDCOP_la.all_cpp.cpp libdcopserver_main_la.all_cpp.cpp dcopserver_la.all_cpp.cpp dcopserver.all_cpp.cpp testdcop.all_cpp.cpp #>+ 2 final: - $(MAKE) libDCOP_la_OBJECTS="$(libDCOP_la_final_OBJECTS)" dcopserver_la_OBJECTS="$(dcopserver_la_final_OBJECTS)" testdcopc_OBJECTS="$(testdcopc_final_OBJECTS)" all-am + $(MAKE) libDCOP_la_OBJECTS="$(libDCOP_la_final_OBJECTS)" libdcopserver_main_la_OBJECTS="$(libdcopserver_main_la_final_OBJECTS)" testdcopc_OBJECTS="$(testdcopc_final_OBJECTS)" all-am #>+ 2 final-install: - $(MAKE) libDCOP_la_OBJECTS="$(libDCOP_la_final_OBJECTS)" dcopserver_la_OBJECTS="$(dcopserver_la_final_OBJECTS)" testdcopc_OBJECTS="$(testdcopc_final_OBJECTS)" install-am + $(MAKE) libDCOP_la_OBJECTS="$(libDCOP_la_final_OBJECTS)" libdcopserver_main_la_OBJECTS="$(libdcopserver_main_la_final_OBJECTS)" testdcopc_OBJECTS="$(testdcopc_final_OBJECTS)" install-am #>+ 2 no-final: - $(MAKE) libDCOP_la_OBJECTS="$(libDCOP_la_nofinal_OBJECTS)" dcopserver_la_OBJECTS="$(dcopserver_la_nofinal_OBJECTS)" testdcopc_OBJECTS="$(testdcopc_nofinal_OBJECTS)" all-am + $(MAKE) libDCOP_la_OBJECTS="$(libDCOP_la_nofinal_OBJECTS)" libdcopserver_main_la_OBJECTS="$(libdcopserver_main_la_nofinal_OBJECTS)" testdcopc_OBJECTS="$(testdcopc_nofinal_OBJECTS)" all-am #>+ 2 no-final-install: - $(MAKE) libDCOP_la_OBJECTS="$(libDCOP_la_nofinal_OBJECTS)" dcopserver_la_OBJECTS="$(dcopserver_la_nofinal_OBJECTS)" testdcopc_OBJECTS="$(testdcopc_nofinal_OBJECTS)" install-am + $(MAKE) libDCOP_la_OBJECTS="$(libDCOP_la_nofinal_OBJECTS)" libdcopserver_main_la_OBJECTS="$(libdcopserver_main_la_nofinal_OBJECTS)" testdcopc_OBJECTS="$(testdcopc_nofinal_OBJECTS)" install-am #>+ 3 cvs-clean: $(MAKE) -f $(top_srcdir)/admin/Makefile.common cvs-clean