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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
|
$NetBSD: patch-ai,v 1.4 2001/12/03 15:37:19 skrll Exp $
--- kcontrol/access/Makefile.in.orig Sat Nov 10 07:58:17 2001
+++ kcontrol/access/Makefile.in
@@ -277,15 +277,19 @@
bin_PROGRAMS = kaccess
-kaccess_SOURCES = dummy.cpp
+kaccess_SOURCES = kaccess_main.cpp
kaccess_LDFLAGS = $(all_libraries) $(KDE_RPATH)
-kaccess_LDADD = kaccess.la
+kaccess_LDADD = libkaccess_sl.la
-kde_module_LTLIBRARIES = libkcm_access.la kaccess.la
+kde_module_LTLIBRARIES = libkcm_access.la libkaccess_sl.la kaccess.la
-kaccess_la_SOURCES = kaccess.cpp main.cpp
+libkaccess_sl_la_SOURCES = kaccess.cpp main.cpp
+libkaccess_sl_la_LDFLAGS = $(all_libraries)
+libkaccess_sl_la_LIBADD = $(LIB_KDEUI)
+
+kaccess_la_SOURCES = kaccess_main.cpp
kaccess_la_LDFLAGS = $(all_libraries) -module -avoid-version
-kaccess_la_LIBADD = $(LIB_KDEUI)
+kaccess_la_LIBADD = libkaccess_sl.la $(LIB_KDEUI)
libkcm_access_la_SOURCES = kcmaccess.cpp
libkcm_access_la_LDFLAGS = $(all_libraries) -module -avoid-version -no-undefined
@@ -318,21 +322,25 @@
libkcm_access_la_meta_unload.lo
@KDE_USE_FINAL_FALSE@libkcm_access_la_OBJECTS = $(libkcm_access_la_nofinal_OBJECTS)
@KDE_USE_FINAL_TRUE@libkcm_access_la_OBJECTS = $(libkcm_access_la_final_OBJECTS)
-kaccess_la_DEPENDENCIES =
-#>- kaccess_la_OBJECTS = kaccess.lo main.lo
+libkaccess_sl_la_DEPENDENCIES =
+#>- libkaccess_sl_la_OBJECTS = kaccess.lo main.lo
#>+ 5
-kaccess_la_final_OBJECTS = kaccess_la.all_cpp.lo
-kaccess_la_nofinal_OBJECTS = kaccess.lo main.lo \
- kaccess_la_meta_unload.lo
-@KDE_USE_FINAL_FALSE@kaccess_la_OBJECTS = $(kaccess_la_nofinal_OBJECTS)
-@KDE_USE_FINAL_TRUE@kaccess_la_OBJECTS = $(kaccess_la_final_OBJECTS)
+libkaccess_sl_la_final_OBJECTS = libkaccess_sl_la.all_cpp.lo
+libkaccess_sl_la_nofinal_OBJECTS = kaccess.lo main.lo \
+ libkaccess_sl_la_meta_unload.lo
+@KDE_USE_FINAL_FALSE@libkaccess_sl_la_OBJECTS = $(libkaccess_sl_la_nofinal_OBJECTS)
+@KDE_USE_FINAL_TRUE@libkaccess_sl_la_OBJECTS = $(libkaccess_sl_la_final_OBJECTS)
+kaccess_la_DEPENDENCIES = libkaccess_sl.la
+#>- kaccess_la_OBJECTS = kaccess_main.lo
+#>+ 1
+kaccess_la_OBJECTS = kaccess_main.lo
bin_PROGRAMS = kaccess$(EXEEXT)
PROGRAMS = $(bin_PROGRAMS)
-#>- kaccess_OBJECTS = dummy.$(OBJEXT)
+#>- kaccess_OBJECTS = kaccess_main.$(OBJEXT)
#>+ 1
-kaccess_OBJECTS = dummy.$(OBJEXT)
-kaccess_DEPENDENCIES = kaccess.la
+kaccess_OBJECTS = kaccess_main.$(OBJEXT)
+kaccess_DEPENDENCIES = libkaccess_sl.la
CXXFLAGS = @CXXFLAGS@
#>- CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
#>+ 1
@@ -353,15 +361,15 @@
#>- DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
#>+ 4
-KDE_DIST=kaccess.desktop configure.in.in kaccess.h kcmaccess.desktop
+KDE_DIST=configure.in.in kcmaccess.desktop kaccess.desktop kaccess.h
DISTFILES= $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
TAR = tar
GZIP_ENV = --best
-SOURCES = $(libkcm_access_la_SOURCES) $(kaccess_la_SOURCES) $(kaccess_SOURCES)
-OBJECTS = $(libkcm_access_la_OBJECTS) $(kaccess_la_OBJECTS) $(kaccess_OBJECTS)
+SOURCES = $(libkcm_access_la_SOURCES) $(libkaccess_sl_la_SOURCES) $(kaccess_la_SOURCES) $(kaccess_SOURCES)
+OBJECTS = $(libkcm_access_la_OBJECTS) $(libkaccess_sl_la_OBJECTS) $(kaccess_la_OBJECTS) $(kaccess_OBJECTS)
#>- all: all-redirect
#>+ 1
@@ -454,6 +462,9 @@
@KDE_USE_CLOSURE_FALSE@libkcm_access.la: $(libkcm_access_la_OBJECTS) $(libkcm_access_la_DEPENDENCIES)
$(CXXLINK) -rpath $(kde_moduledir) $(libkcm_access_la_LDFLAGS) $(libkcm_access_la_OBJECTS) $(libkcm_access_la_LIBADD) $(LIBS)
+libkaccess_sl.la: $(libkaccess_sl_la_OBJECTS) $(libkaccess_sl_la_DEPENDENCIES)
+ $(CXXLINK) -rpath $(kde_moduledir) $(libkaccess_sl_la_LDFLAGS) $(libkaccess_sl_la_OBJECTS) $(libkaccess_sl_la_LIBADD) $(LIBS)
+
kaccess.la: $(kaccess_la_OBJECTS) $(kaccess_la_DEPENDENCIES)
$(CXXLINK) -rpath $(kde_moduledir) $(kaccess_la_LDFLAGS) $(kaccess_la_OBJECTS) $(kaccess_la_LIBADD) $(LIBS)
@@ -676,9 +687,6 @@
$(XGETTEXT) $(kaccess_la_SOURCES) -o $(podir)/kaccess.pot
$(XGETTEXT) $(libkcm_access_la_SOURCES) -o $(podir)/kcmaccess.pot
-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:
@@ -731,21 +739,21 @@
#>+ 12
-kaccess_la_meta_unload.cpp: kaccess.moc
- @echo 'creating kaccess_la_meta_unload.cpp'
- @-rm -f kaccess_la_meta_unload.cpp
+libkaccess_sl_la_meta_unload.cpp: kaccess.moc
+ @echo 'creating libkaccess_sl_la_meta_unload.cpp'
+ @-rm -f libkaccess_sl_la_meta_unload.cpp
@if test ${kde_qtver} = 2; then \
- echo 'static const char * _metalist_kaccess_la[] = {' > kaccess_la_meta_unload.cpp ;\
- cat kaccess.moc | grep 'char.*className' | sed -e 's/.*[^A-Za-z0-9_:]\([A-Za-z0-9_:]*\)::className.*$$/\"\1\",/' | sort | uniq >> kaccess_la_meta_unload.cpp ;\
- echo '0};' >> kaccess_la_meta_unload.cpp ;\
- echo '#include <kunload.h>' >> kaccess_la_meta_unload.cpp ;\
- echo '_UNLOAD(kaccess_la)' >> kaccess_la_meta_unload.cpp ;\
- else echo > kaccess_la_meta_unload.cpp; fi
+ echo 'static const char * _metalist_libkaccess_sl_la[] = {' > libkaccess_sl_la_meta_unload.cpp ;\
+ cat kaccess.moc | grep 'char.*className' | sed -e 's/.*[^A-Za-z0-9_:]\([A-Za-z0-9_:]*\)::className.*$$/\"\1\",/' | sort | uniq >> libkaccess_sl_la_meta_unload.cpp ;\
+ echo '0};' >> libkaccess_sl_la_meta_unload.cpp ;\
+ echo '#include <kunload.h>' >> libkaccess_sl_la_meta_unload.cpp ;\
+ echo '_UNLOAD(libkaccess_sl_la)' >> libkaccess_sl_la_meta_unload.cpp ;\
+ else echo > libkaccess_sl_la_meta_unload.cpp; fi
#>+ 3
clean-moc-classes:
- -rm -f libkcm_access_la_meta_unload.cpp kaccess_la_meta_unload.cpp
+ -rm -f libkcm_access_la_meta_unload.cpp libkaccess_sl_la_meta_unload.cpp
#>+ 11
libkcm_access_la.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/kcmaccess.cpp libkcm_access_la_meta_unload.cpp kcmaccess.moc kaccess.moc
@@ -760,11 +768,23 @@
rm -f libkcm_access_la.all_cpp.final libkcm_access_la.all_cpp.files
#>+ 11
-kaccess_la.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/kaccess.cpp $(srcdir)/main.cpp kaccess_la_meta_unload.cpp
+libkaccess_sl_la.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/kaccess.cpp $(srcdir)/main.cpp libkaccess_sl_la_meta_unload.cpp
+ @echo 'creating libkaccess_sl_la.all_cpp.cpp ...'; \
+ rm -f libkaccess_sl_la.all_cpp.files libkaccess_sl_la.all_cpp.final; \
+ echo "#define KDE_USE_FINAL 1" >> libkaccess_sl_la.all_cpp.final; \
+ for file in kaccess.cpp main.cpp libkaccess_sl_la_meta_unload.cpp ; do \
+ echo "#include \"$$file\"" >> libkaccess_sl_la.all_cpp.files; \
+ test ! -f $(srcdir)/$$file || egrep '^#pragma +implementation' $(srcdir)/$$file >> libkaccess_sl_la.all_cpp.final; \
+ done; \
+ cat libkaccess_sl_la.all_cpp.final libkaccess_sl_la.all_cpp.files > libkaccess_sl_la.all_cpp.cpp; \
+ rm -f libkaccess_sl_la.all_cpp.final libkaccess_sl_la.all_cpp.files
+
+#>+ 11
+kaccess_la.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/kaccess_main.cpp
@echo 'creating kaccess_la.all_cpp.cpp ...'; \
rm -f kaccess_la.all_cpp.files kaccess_la.all_cpp.final; \
echo "#define KDE_USE_FINAL 1" >> kaccess_la.all_cpp.final; \
- for file in kaccess.cpp main.cpp kaccess_la_meta_unload.cpp ; do \
+ for file in kaccess_main.cpp ; do \
echo "#include \"$$file\"" >> kaccess_la.all_cpp.files; \
test ! -f $(srcdir)/$$file || egrep '^#pragma +implementation' $(srcdir)/$$file >> kaccess_la.all_cpp.final; \
done; \
@@ -772,11 +792,11 @@
rm -f kaccess_la.all_cpp.final kaccess_la.all_cpp.files
#>+ 11
-kaccess.all_cpp.cpp: $(srcdir)/Makefile.in dummy.cpp
+kaccess.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/kaccess_main.cpp
@echo 'creating kaccess.all_cpp.cpp ...'; \
rm -f kaccess.all_cpp.files kaccess.all_cpp.final; \
echo "#define KDE_USE_FINAL 1" >> kaccess.all_cpp.final; \
- for file in dummy.cpp ; do \
+ for file in kaccess_main.cpp ; do \
echo "#include \"$$file\"" >> kaccess.all_cpp.files; \
test ! -f $(srcdir)/$$file || egrep '^#pragma +implementation' $(srcdir)/$$file >> kaccess.all_cpp.final; \
done; \
@@ -785,20 +805,20 @@
#>+ 3
clean-final:
- -rm -f libkcm_access_la.all_cpp.cpp kaccess_la.all_cpp.cpp kaccess.all_cpp.cpp
+ -rm -f libkcm_access_la.all_cpp.cpp libkaccess_sl_la.all_cpp.cpp kaccess_la.all_cpp.cpp kaccess.all_cpp.cpp
#>+ 2
final:
- $(MAKE) libkcm_access_la_OBJECTS="$(libkcm_access_la_final_OBJECTS)" kaccess_la_OBJECTS="$(kaccess_la_final_OBJECTS)" all-am
+ $(MAKE) libkcm_access_la_OBJECTS="$(libkcm_access_la_final_OBJECTS)" libkaccess_sl_la_OBJECTS="$(libkaccess_sl_la_final_OBJECTS)" all-am
#>+ 2
final-install:
- $(MAKE) libkcm_access_la_OBJECTS="$(libkcm_access_la_final_OBJECTS)" kaccess_la_OBJECTS="$(kaccess_la_final_OBJECTS)" install-am
+ $(MAKE) libkcm_access_la_OBJECTS="$(libkcm_access_la_final_OBJECTS)" libkaccess_sl_la_OBJECTS="$(libkaccess_sl_la_final_OBJECTS)" install-am
#>+ 2
no-final:
- $(MAKE) libkcm_access_la_OBJECTS="$(libkcm_access_la_nofinal_OBJECTS)" kaccess_la_OBJECTS="$(kaccess_la_nofinal_OBJECTS)" all-am
+ $(MAKE) libkcm_access_la_OBJECTS="$(libkcm_access_la_nofinal_OBJECTS)" libkaccess_sl_la_OBJECTS="$(libkaccess_sl_la_nofinal_OBJECTS)" all-am
#>+ 2
no-final-install:
- $(MAKE) libkcm_access_la_OBJECTS="$(libkcm_access_la_nofinal_OBJECTS)" kaccess_la_OBJECTS="$(kaccess_la_nofinal_OBJECTS)" install-am
+ $(MAKE) libkcm_access_la_OBJECTS="$(libkcm_access_la_nofinal_OBJECTS)" libkaccess_sl_la_OBJECTS="$(libkaccess_sl_la_nofinal_OBJECTS)" install-am
#>+ 3
cvs-clean:
$(MAKE) -f $(top_srcdir)/admin/Makefile.common cvs-clean
|