1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
|
$NetBSD: patch-ew,v 1.2 2001/12/03 15:37:20 skrll Exp $
--- legacyimport/Makefile.in.orig Sat Nov 10 07:58:39 2001
+++ legacyimport/Makefile.in
@@ -276,14 +276,18 @@
INCLUDES = $(all_includes)
bin_PROGRAMS = klegacyimport
-lib_LTLIBRARIES = klegacyimport.la
+lib_LTLIBRARIES = libklegacyimport_main.la klegacyimport.la
-klegacyimport_la_SOURCES = legacyimport.cpp
-klegacyimport_la_LIBADD = $(LIB_KDEUI) $(LIB_KFILE)
+libklegacyimport_main_la_SOURCES = legacyimport.cpp
+libklegacyimport_main_la_LIBADD = $(LIB_KDEUI) $(LIB_KFILE)
+libklegacyimport_main_la_LDFLAGS = $(all_libraries)
+
+klegacyimport_la_SOURCES = klegacyimport_main.cpp
+klegacyimport_la_LIBADD = libklegacyimport_main.la
klegacyimport_la_LDFLAGS = $(all_libraries) -module -avoid-version
-klegacyimport_SOURCES = dummy.cpp
-klegacyimport_LDADD = klegacyimport.la
+klegacyimport_SOURCES = klegacyimport_main.cpp
+klegacyimport_LDADD = libklegacyimport_main.la
klegacyimport_LDFLAGS = $(all_libraries) $(KDE_RPATH)
noinst_HEADERS = legacyimport.h
@@ -305,21 +309,25 @@
LIBS = @LIBS@
X_CFLAGS = @X_CFLAGS@
X_LIBS = @X_LIBS@
-klegacyimport_la_DEPENDENCIES =
-#>- klegacyimport_la_OBJECTS = legacyimport.lo
+libklegacyimport_main_la_DEPENDENCIES =
+#>- libklegacyimport_main_la_OBJECTS = legacyimport.lo
#>+ 5
-klegacyimport_la_final_OBJECTS = klegacyimport_la.all_cpp.lo
-klegacyimport_la_nofinal_OBJECTS = legacyimport.lo \
- klegacyimport_la_meta_unload.lo
-@KDE_USE_FINAL_FALSE@klegacyimport_la_OBJECTS = $(klegacyimport_la_nofinal_OBJECTS)
-@KDE_USE_FINAL_TRUE@klegacyimport_la_OBJECTS = $(klegacyimport_la_final_OBJECTS)
+libklegacyimport_main_la_final_OBJECTS = libklegacyimport_main_la.all_cpp.lo
+libklegacyimport_main_la_nofinal_OBJECTS = legacyimport.lo \
+ libklegacyimport_main_la_meta_unload.lo
+@KDE_USE_FINAL_FALSE@libklegacyimport_main_la_OBJECTS = $(libklegacyimport_main_la_nofinal_OBJECTS)
+@KDE_USE_FINAL_TRUE@libklegacyimport_main_la_OBJECTS = $(libklegacyimport_main_la_final_OBJECTS)
+klegacyimport_la_DEPENDENCIES = libklegacyimport_main.la
+#>- klegacyimport_la_OBJECTS = klegacyimport_main.lo
+#>+ 1
+klegacyimport_la_OBJECTS = klegacyimport_main.lo
bin_PROGRAMS = klegacyimport$(EXEEXT)
PROGRAMS = $(bin_PROGRAMS)
-#>- klegacyimport_OBJECTS = dummy.$(OBJEXT)
+#>- klegacyimport_OBJECTS = klegacyimport_main.$(OBJEXT)
#>+ 1
-klegacyimport_OBJECTS = dummy.$(OBJEXT)
-klegacyimport_DEPENDENCIES = klegacyimport.la
+klegacyimport_OBJECTS = klegacyimport_main.$(OBJEXT)
+klegacyimport_DEPENDENCIES = libklegacyimport_main.la
CXXFLAGS = @CXXFLAGS@
#>- CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
#>+ 1
@@ -340,15 +348,15 @@
#>- DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
#>+ 4
-KDE_DIST=klegacyimport.desktop
+KDE_DIST=klegacyimport.desktop dummy.cpp
DISTFILES= $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
TAR = tar
GZIP_ENV = --best
-SOURCES = $(klegacyimport_la_SOURCES) $(klegacyimport_SOURCES)
-OBJECTS = $(klegacyimport_la_OBJECTS) $(klegacyimport_OBJECTS)
+SOURCES = $(libklegacyimport_main_la_SOURCES) $(klegacyimport_la_SOURCES) $(klegacyimport_SOURCES)
+OBJECTS = $(libklegacyimport_main_la_OBJECTS) $(klegacyimport_la_OBJECTS) $(klegacyimport_OBJECTS)
#>- all: all-redirect
#>+ 1
@@ -435,6 +443,9 @@
maintainer-clean-libtool:
+libklegacyimport_main.la: $(libklegacyimport_main_la_OBJECTS) $(libklegacyimport_main_la_DEPENDENCIES)
+ $(CXXLINK) -rpath $(libdir) $(libklegacyimport_main_la_LDFLAGS) $(libklegacyimport_main_la_OBJECTS) $(libklegacyimport_main_la_LIBADD) $(LIBS)
+
klegacyimport.la: $(klegacyimport_la_OBJECTS) $(klegacyimport_la_DEPENDENCIES)
$(CXXLINK) -rpath $(libdir) $(klegacyimport_la_LDFLAGS) $(klegacyimport_la_OBJECTS) $(klegacyimport_la_LIBADD) $(LIBS)
@@ -649,28 +660,40 @@
#>+ 12
-klegacyimport_la_meta_unload.cpp: legacyimport.moc
- @echo 'creating klegacyimport_la_meta_unload.cpp'
- @-rm -f klegacyimport_la_meta_unload.cpp
+libklegacyimport_main_la_meta_unload.cpp: legacyimport.moc
+ @echo 'creating libklegacyimport_main_la_meta_unload.cpp'
+ @-rm -f libklegacyimport_main_la_meta_unload.cpp
@if test ${kde_qtver} = 2; then \
- echo 'static const char * _metalist_klegacyimport_la[] = {' > klegacyimport_la_meta_unload.cpp ;\
- cat legacyimport.moc | grep 'char.*className' | sed -e 's/.*[^A-Za-z0-9_:]\([A-Za-z0-9_:]*\)::className.*$$/\"\1\",/' | sort | uniq >> klegacyimport_la_meta_unload.cpp ;\
- echo '0};' >> klegacyimport_la_meta_unload.cpp ;\
- echo '#include <kunload.h>' >> klegacyimport_la_meta_unload.cpp ;\
- echo '_UNLOAD(klegacyimport_la)' >> klegacyimport_la_meta_unload.cpp ;\
- else echo > klegacyimport_la_meta_unload.cpp; fi
+ echo 'static const char * _metalist_libklegacyimport_main_la[] = {' > libklegacyimport_main_la_meta_unload.cpp ;\
+ cat legacyimport.moc | grep 'char.*className' | sed -e 's/.*[^A-Za-z0-9_:]\([A-Za-z0-9_:]*\)::className.*$$/\"\1\",/' | sort | uniq >> libklegacyimport_main_la_meta_unload.cpp ;\
+ echo '0};' >> libklegacyimport_main_la_meta_unload.cpp ;\
+ echo '#include <kunload.h>' >> libklegacyimport_main_la_meta_unload.cpp ;\
+ echo '_UNLOAD(libklegacyimport_main_la)' >> libklegacyimport_main_la_meta_unload.cpp ;\
+ else echo > libklegacyimport_main_la_meta_unload.cpp; fi
#>+ 3
clean-moc-classes:
- -rm -f klegacyimport_la_meta_unload.cpp
+ -rm -f libklegacyimport_main_la_meta_unload.cpp
+
+#>+ 11
+libklegacyimport_main_la.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/legacyimport.cpp libklegacyimport_main_la_meta_unload.cpp legacyimport.moc
+ @echo 'creating libklegacyimport_main_la.all_cpp.cpp ...'; \
+ rm -f libklegacyimport_main_la.all_cpp.files libklegacyimport_main_la.all_cpp.final; \
+ echo "#define KDE_USE_FINAL 1" >> libklegacyimport_main_la.all_cpp.final; \
+ for file in legacyimport.cpp libklegacyimport_main_la_meta_unload.cpp ; do \
+ echo "#include \"$$file\"" >> libklegacyimport_main_la.all_cpp.files; \
+ test ! -f $(srcdir)/$$file || egrep '^#pragma +implementation' $(srcdir)/$$file >> libklegacyimport_main_la.all_cpp.final; \
+ done; \
+ cat libklegacyimport_main_la.all_cpp.final libklegacyimport_main_la.all_cpp.files > libklegacyimport_main_la.all_cpp.cpp; \
+ rm -f libklegacyimport_main_la.all_cpp.final libklegacyimport_main_la.all_cpp.files
#>+ 11
-klegacyimport_la.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/legacyimport.cpp klegacyimport_la_meta_unload.cpp legacyimport.moc
+klegacyimport_la.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/klegacyimport_main.cpp
@echo 'creating klegacyimport_la.all_cpp.cpp ...'; \
rm -f klegacyimport_la.all_cpp.files klegacyimport_la.all_cpp.final; \
echo "#define KDE_USE_FINAL 1" >> klegacyimport_la.all_cpp.final; \
- for file in legacyimport.cpp klegacyimport_la_meta_unload.cpp ; do \
+ for file in klegacyimport_main.cpp ; do \
echo "#include \"$$file\"" >> klegacyimport_la.all_cpp.files; \
test ! -f $(srcdir)/$$file || egrep '^#pragma +implementation' $(srcdir)/$$file >> klegacyimport_la.all_cpp.final; \
done; \
@@ -678,11 +701,11 @@
rm -f klegacyimport_la.all_cpp.final klegacyimport_la.all_cpp.files
#>+ 11
-klegacyimport.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/dummy.cpp
+klegacyimport.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/klegacyimport_main.cpp
@echo 'creating klegacyimport.all_cpp.cpp ...'; \
rm -f klegacyimport.all_cpp.files klegacyimport.all_cpp.final; \
echo "#define KDE_USE_FINAL 1" >> klegacyimport.all_cpp.final; \
- for file in dummy.cpp ; do \
+ for file in klegacyimport_main.cpp ; do \
echo "#include \"$$file\"" >> klegacyimport.all_cpp.files; \
test ! -f $(srcdir)/$$file || egrep '^#pragma +implementation' $(srcdir)/$$file >> klegacyimport.all_cpp.final; \
done; \
@@ -691,20 +714,20 @@
#>+ 3
clean-final:
- -rm -f klegacyimport_la.all_cpp.cpp klegacyimport.all_cpp.cpp
+ -rm -f libklegacyimport_main_la.all_cpp.cpp klegacyimport_la.all_cpp.cpp klegacyimport.all_cpp.cpp
#>+ 2
final:
- $(MAKE) klegacyimport_la_OBJECTS="$(klegacyimport_la_final_OBJECTS)" all-am
+ $(MAKE) libklegacyimport_main_la_OBJECTS="$(libklegacyimport_main_la_final_OBJECTS)" all-am
#>+ 2
final-install:
- $(MAKE) klegacyimport_la_OBJECTS="$(klegacyimport_la_final_OBJECTS)" install-am
+ $(MAKE) libklegacyimport_main_la_OBJECTS="$(libklegacyimport_main_la_final_OBJECTS)" install-am
#>+ 2
no-final:
- $(MAKE) klegacyimport_la_OBJECTS="$(klegacyimport_la_nofinal_OBJECTS)" all-am
+ $(MAKE) libklegacyimport_main_la_OBJECTS="$(libklegacyimport_main_la_nofinal_OBJECTS)" all-am
#>+ 2
no-final-install:
- $(MAKE) klegacyimport_la_OBJECTS="$(klegacyimport_la_nofinal_OBJECTS)" install-am
+ $(MAKE) libklegacyimport_main_la_OBJECTS="$(libklegacyimport_main_la_nofinal_OBJECTS)" install-am
#>+ 3
cvs-clean:
$(MAKE) -f $(top_srcdir)/admin/Makefile.common cvs-clean
|