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 $
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=../../../..;
12
echo "Can't find config.sh."; exit 1
18
*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
21
DIR=`echo $CURRENT/ | sed -e 's/\.\///g'`
22
echo "Extracting ${DIR}Makefile (with variable substitutions)"
26
$spitshell >Makefile <<!GROK!THIS!
27
########################################################################
28
# Makefile generated from Makefile.SH on $DATE
36
########################################################################
37
# Parameters set by Configure -- edit config.sh if changes are needed
41
JCFLAGS = \$(CFLAGS) $optimize $ccflags $large
42
MKDEP = $mkdep \$(DPFLAGS) --
47
########################################################################
48
# Automatically generated parameters -- do not edit
52
SOURCES = gnet_property.c gui_property.c
53
GLIB_CFLAGS = $glibcflags
55
########################################################################
56
# New suffixes and associated building rules -- edit with care
59
\$(CC) -c \$(JCFLAGS) \$<
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 $
67
########################################################################
68
# Force 'make depend' to be performed first -- do not edit
74
########################################################################
77
# $X-Id: Jmakefile,v 1.3 2004/08/28 06:36:27 rmanfredi Exp $
80
@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
81
for i in $(SUBDIRS) ;\
83
(cd $$i ; echo "Depending" "in $(DIR)$$i..."; \
84
$(MAKE) $(MFLAGS) depend) || exit 1; \
87
SOURCES = gnet_property.c gui_property.c
89
CFLAGS = -I$(TOP) -I.. $(GLIB_CFLAGS) -DCURDIR=$(CURRENT)
94
properties: gnet_property.c gui_property.c
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
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
104
all:: gnet_property.o
107
$(RM) gnet_property.o
117
@echo "You have to run Configure in $(TOP) first."; exit 1
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' \
126
cp Makefile Makefile.bak
127
cp Makefile.new Makefile
130
########################################################################
131
# Common rules for all Makefiles -- do not edit
135
clean: sub_clean local_clean
136
realclean: sub_realclean local_realclean
137
clobber: sub_clobber local_clobber
140
if test -f core; then $(RM) core; fi
143
local_realclean:: local_clean
145
local_clobber:: local_realclean
146
$(RM) Makefile config.sh
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
156
maybe_install.man: install.man-no
157
maybe_deinstall.man: deinstall.man-no
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~; \
165
echo " $(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT)" ; \
166
$(JMAKE) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT) ; \
169
Makefile: Makefile.SH
174
$(CTAGS) -xw *.[ch] > tags
179
########################################################################
180
# Rules for building in sub-directories -- do not edit
183
@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
184
for i in $(SUBDIRS) ;\
186
(cd $$i ; echo $(VERB) "in $(DIR)$$i..."; \
187
$(MAKE) $(MFLAGS) $(FLAGS) $(TARGET)) || exit 1; \
191
@$(MAKE) subdirs TARGET=install VERB="Installing" FLAGS=
194
@$(MAKE) subdirs TARGET=deinstall VERB="Deinstalling" FLAGS=
195
@echo "Back to $(CURRENT) for "deinstall...
198
@$(MAKE) subdirs TARGET=install.man VERB="Installing man pages" FLAGS=
201
@$(MAKE) subdirs TARGET=deinstall.man VERB="Deinstalling man pages" FLAGS=
202
@echo "Back to $(CURRENT) for "deinstall.man...
205
@$(MAKE) subdirs TARGET=clean VERB="Cleaning" FLAGS=
206
@echo "Back to $(CURRENT) for "clean...
209
@$(MAKE) subdirs TARGET=realclean VERB="Real cleaning" FLAGS=
210
@echo "Back to $(CURRENT) for "realclean...
213
@$(MAKE) subdirs TARGET=clobber VERB="Clobbering" FLAGS=
214
@echo "Back to $(CURRENT) for "clobber...
217
@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
218
for i in $(SUBDIRS) ;\
220
(cd $$i ; echo "Tagging" "in $(DIR)$$i..."; \
221
$(MAKE) $(MFLAGS) tag) || exit 1; \
225
@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
226
for i in $(SUBDIRS);\
228
echo "Making "Makefiles" in $(DIR)$$i..."; \
230
if test ! -f Makefile; then /bin/sh Makefile.SH; fi; \
231
$(MAKE) $(MFLAGS) Makefiles) || exit 1;\
234
Makefiles.SH:: Makefile.SH
235
@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
236
for i in $(SUBDIRS);\
238
case "$(DIR)$$i/" in \
239
*/*/*/*/) newtop=../../../..;; \
240
*/*/*/) newtop=../../..;; \
241
*/*/) newtop=../..;; \
245
/*) newtop="$(TOP)" ;; \
247
echo "Making Makefiles.SH in $(DIR)$$i..."; \
249
if test -f Jmakefile; then \
250
$(MAKE) $(MFLAGS) -f ../Makefile \
251
Makefile TOP=$$newtop CURRENT=$(DIR)$$i && \
252
$(MAKE) $(MFLAGS) Makefiles.SH; \
258
@$(MAKE) subdirs TARGET=all VERB="Making all" FLAGS=
263
local_deinstall.man::
265
########################################################################
266
# Dependencies generated by make depend
267
# DO NOT DELETE THIS LINE -- make depend relies on it
269
# Put nothing here or make depend will gobble it up
271
@echo "You must run 'make depend' in $(TOP) first."; exit 1