~ubuntu-branches/ubuntu/karmic/gtk-gnutella/karmic

« back to all changes in this revision

Viewing changes to src/if/Makefile.SH

  • Committer: Bazaar Package Importer
  • Author(s): Anand Kumria
  • Date: 2005-08-04 11:32:05 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050804113205-q746i4lgo3rtlegn
Tags: 0.95.4-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
: Makefile.SH generated from Jmake.tmpl and Jmakefile [jmake 3.0 PL70]
 
2
: $X-Id: Jmake.tmpl,v 3.0.1.3 1997/02/28 14:56:16 ram Exp ram $
 
3
 
 
4
case $CONFIG in
 
5
'')
 
6
        if test -f config.sh; then TOP=.;
 
7
        elif test -f ../config.sh; then TOP=..;
 
8
        elif test -f ../../config.sh; then TOP=../..;
 
9
        elif test -f ../../../config.sh; then TOP=../../..;
 
10
        elif test -f ../../../../config.sh; then TOP=../../../..;
 
11
        else
 
12
                echo "Can't find config.sh."; exit 1
 
13
        fi
 
14
        . $TOP/config.sh
 
15
        ;;
 
16
esac
 
17
case "$0" in
 
18
*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
 
19
esac
 
20
CURRENT=src/if
 
21
DIR=`echo $CURRENT/ | sed -e 's/\.\///g'`
 
22
echo "Extracting ${DIR}Makefile (with variable substitutions)"
 
23
 
 
24
DATE=`date`
 
25
 
 
26
$spitshell >Makefile <<!GROK!THIS!
 
27
########################################################################
 
28
# Makefile generated from Makefile.SH on $DATE
 
29
 
 
30
SHELL = /bin/sh
 
31
JMAKE = jmake
 
32
TOP = ../..
 
33
CURRENT = $CURRENT
 
34
DIR = $DIR
 
35
 
 
36
########################################################################
 
37
# Parameters set by Configure -- edit config.sh if changes are needed
 
38
 
 
39
CC = $cc
 
40
CTAGS = ctags
 
41
JCFLAGS = \$(CFLAGS) $optimize $ccflags $large
 
42
MKDEP = $mkdep \$(DPFLAGS) --
 
43
MV = $mv
 
44
RM = $rm -f
 
45
SED = $sed
 
46
 
 
47
########################################################################
 
48
# Automatically generated parameters -- do not edit
 
49
 
 
50
SUBDIRS = bridge
 
51
USRINC = $usrinc
 
52
SOURCES =  gnet_property.c gui_property.c
 
53
GLIB_CFLAGS =  $glibcflags
 
54
 
 
55
########################################################################
 
56
# New suffixes and associated building rules -- edit with care
 
57
 
 
58
.c.o:
 
59
        \$(CC) -c \$(JCFLAGS) \$<
 
60
 
 
61
!GROK!THIS!
 
62
$spitshell >>Makefile <<'!NO!SUBS!'
 
63
########################################################################
 
64
# Jmake rules for building libraries, programs, scripts, and data files
 
65
# $X-Id: Jmake.rules,v 3.0.1.7 2004/08/22 08:28:58 ram Exp ram $
 
66
 
 
67
########################################################################
 
68
# Force 'make depend' to be performed first -- do not edit
 
69
 
 
70
.FORCE_DEPEND::
 
71
 
 
72
all:: .FORCE_DEPEND
 
73
 
 
74
########################################################################
 
75
# Start of Jmakefile
 
76
 
 
77
# $X-Id: Jmakefile,v 1.3 2004/08/28 06:36:27 rmanfredi Exp $
 
78
 
 
79
depend::
 
80
        @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
 
81
        for i in $(SUBDIRS) ;\
 
82
        do \
 
83
                (cd $$i ; echo "Depending" "in $(DIR)$$i..."; \
 
84
                        $(MAKE) $(MFLAGS)  depend) || exit 1; \
 
85
        done
 
86
 
 
87
SOURCES = gnet_property.c gui_property.c
 
88
 
 
89
CFLAGS = -I$(TOP) -I.. $(GLIB_CFLAGS) -DCURDIR=$(CURRENT)
 
90
DPFLAGS = $(CFLAGS)
 
91
 
 
92
all:: properties
 
93
 
 
94
properties: gnet_property.c gui_property.c
 
95
 
 
96
gnet_property_priv.h gnet_property.c gnet_property.h: gnet_props.ag props.tpl
 
97
        -autogen gnet_props.ag
 
98
        touch gnet_property_priv.h gnet_property.c gnet_property.h
 
99
 
 
100
gui_property_priv.h gui_property.c gui_property.h: gui_props.ag props.tpl
 
101
        -autogen gui_props.ag
 
102
        touch gui_property_priv.h gui_property.c gui_property.h
 
103
 
 
104
all:: gnet_property.o
 
105
 
 
106
local_realclean::
 
107
        $(RM) gnet_property.o
 
108
 
 
109
all:: gui_property.o
 
110
 
 
111
local_realclean::
 
112
        $(RM) gui_property.o
 
113
 
 
114
depend:: ../../mkdep
 
115
 
 
116
../../mkdep:
 
117
        @echo "You have to run Configure in $(TOP) first."; exit 1
 
118
 
 
119
depend::
 
120
        ($(SED) '/^# DO NOT DELETE/q' Makefile && \
 
121
        $(MKDEP) $(SOURCES) | \
 
122
        $(SED) -e 's:/usr/lib[^ ]*::g; s:$(USRINC)[^ ]*::g; ' \
 
123
                -e '/: / b print' -e '$$ b print' -e 'H; d; n; : print' \
 
124
                -e 'x; s/\\$$//; s/\\\n//g; s/  */ /g; s/ :/:/;' -e '/: *$$/d' \
 
125
        ) > Makefile.new
 
126
        cp Makefile Makefile.bak
 
127
        cp Makefile.new Makefile
 
128
        $(RM) Makefile.new
 
129
 
 
130
########################################################################
 
131
# Common rules for all Makefiles -- do not edit
 
132
 
 
133
emptyrule::
 
134
 
 
135
clean: sub_clean local_clean
 
136
realclean: sub_realclean local_realclean
 
137
clobber: sub_clobber local_clobber
 
138
 
 
139
local_clean::
 
140
        if test -f core; then $(RM) core; fi
 
141
        $(RM) *~ *.o
 
142
 
 
143
local_realclean:: local_clean
 
144
 
 
145
local_clobber:: local_realclean
 
146
        $(RM) Makefile config.sh
 
147
 
 
148
install: local_install sub_install
 
149
install.man: maybe_install.man sub_install.man
 
150
deinstall: sub_deinstall local_deinstall
 
151
deinstall.man: sub_deinstall.man maybe_deinstall.man
 
152
 
 
153
install.man-no:
 
154
deinstall.man-no:
 
155
 
 
156
maybe_install.man: install.man-no
 
157
maybe_deinstall.man: deinstall.man-no
 
158
 
 
159
Makefile.SH: Jmakefile
 
160
        -@if test -f $(TOP)/.package; then \
 
161
                if test -f Makefile.SH; then \
 
162
                        echo "  $(RM) Makefile.SH~; $(MV) Makefile.SH Makefile.SH~"; \
 
163
                        $(RM) Makefile.SH~; $(MV) Makefile.SH Makefile.SH~; \
 
164
                fi; \
 
165
                echo "  $(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT)" ; \
 
166
                $(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT) ; \
 
167
        else touch $@; fi
 
168
 
 
169
Makefile: Makefile.SH
 
170
        /bin/sh Makefile.SH
 
171
 
 
172
tags::
 
173
        $(CTAGS) -w *.[ch]
 
174
        $(CTAGS) -xw *.[ch] > tags
 
175
 
 
176
local_clobber::
 
177
        $(RM) tags
 
178
 
 
179
########################################################################
 
180
# Rules for building in sub-directories -- do not edit
 
181
 
 
182
subdirs:
 
183
        @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
 
184
        for i in $(SUBDIRS) ;\
 
185
        do \
 
186
                (cd $$i ; echo $(VERB) "in $(DIR)$$i..."; \
 
187
                        $(MAKE) $(MFLAGS) $(FLAGS) $(TARGET)) || exit 1; \
 
188
        done
 
189
 
 
190
sub_install::
 
191
        @$(MAKE) subdirs TARGET=install VERB="Installing" FLAGS=
 
192
 
 
193
sub_deinstall::
 
194
        @$(MAKE) subdirs TARGET=deinstall VERB="Deinstalling" FLAGS=
 
195
        @echo "Back to $(CURRENT) for "deinstall...
 
196
 
 
197
sub_install.man::
 
198
        @$(MAKE) subdirs TARGET=install.man VERB="Installing man pages" FLAGS=
 
199
 
 
200
sub_deinstall.man::
 
201
        @$(MAKE) subdirs TARGET=deinstall.man VERB="Deinstalling man pages" FLAGS=
 
202
        @echo "Back to $(CURRENT) for "deinstall.man...
 
203
 
 
204
sub_clean::
 
205
        @$(MAKE) subdirs TARGET=clean VERB="Cleaning" FLAGS=
 
206
        @echo "Back to $(CURRENT) for "clean...
 
207
 
 
208
sub_realclean::
 
209
        @$(MAKE) subdirs TARGET=realclean VERB="Real cleaning" FLAGS=
 
210
        @echo "Back to $(CURRENT) for "realclean...
 
211
 
 
212
sub_clobber::
 
213
        @$(MAKE) subdirs TARGET=clobber VERB="Clobbering" FLAGS=
 
214
        @echo "Back to $(CURRENT) for "clobber...
 
215
 
 
216
tag::
 
217
        @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
 
218
        for i in $(SUBDIRS) ;\
 
219
        do \
 
220
                (cd $$i ; echo "Tagging" "in $(DIR)$$i..."; \
 
221
                        $(MAKE) $(MFLAGS)  tag) || exit 1; \
 
222
        done
 
223
 
 
224
Makefiles::
 
225
        @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
 
226
        for i in $(SUBDIRS);\
 
227
        do \
 
228
                echo "Making "Makefiles" in $(DIR)$$i..."; \
 
229
                (cd $$i || exit 1; \
 
230
                if test ! -f Makefile; then /bin/sh Makefile.SH; fi; \
 
231
                $(MAKE) $(MFLAGS) Makefiles) || exit 1;\
 
232
        done
 
233
 
 
234
Makefiles.SH:: Makefile.SH
 
235
        @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
 
236
        for i in $(SUBDIRS);\
 
237
        do \
 
238
                case "$(DIR)$$i/" in \
 
239
                */*/*/*/) newtop=../../../..;; \
 
240
                */*/*/) newtop=../../..;; \
 
241
                */*/) newtop=../..;; \
 
242
                */) newtop=..;; \
 
243
                esac; \
 
244
                case "$(TOP)" in \
 
245
                /*) newtop="$(TOP)" ;; \
 
246
                esac; \
 
247
                echo "Making Makefiles.SH in $(DIR)$$i..."; \
 
248
                (cd $$i || exit 1; \
 
249
                        if test -f Jmakefile; then \
 
250
                                $(MAKE) $(MFLAGS) -f ../Makefile \
 
251
                                        Makefile TOP=$$newtop CURRENT=$(DIR)$$i && \
 
252
                                $(MAKE) $(MFLAGS) Makefiles.SH; \
 
253
                        fi; \
 
254
                ) || exit 1; \
 
255
        done
 
256
 
 
257
all::
 
258
        @$(MAKE) subdirs TARGET=all VERB="Making all" FLAGS=
 
259
 
 
260
local_install::
 
261
local_deinstall::
 
262
local_install.man::
 
263
local_deinstall.man::
 
264
 
 
265
########################################################################
 
266
# Dependencies generated by make depend
 
267
# DO NOT DELETE THIS LINE -- make depend relies on it
 
268
 
 
269
# Put nothing here or make depend will gobble it up
 
270
.FORCE_DEPEND::
 
271
        @echo "You must run 'make depend' in $(TOP) first."; exit 1
 
272
!NO!SUBS!
 
273
chmod 644 Makefile
 
274
$eunicefix Makefile
 
275