File: Makefile

package info (click to toggle)
vcg 1.30-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 7,748 kB
  • ctags: 8,210
  • sloc: ansic: 52,470; csh: 11,206; yacc: 3,636; lex: 1,830; sh: 1,119; makefile: 528
file content (245 lines) | stat: -rw-r--r-- 7,800 bytes parent folder | download | duplicates (3)
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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
# SCCS-info %W% %E%
#
# /*--------------------------------------------------------------------*/
# /*                                                                    */
# /*              VCG : Visualization of Compiler Graphs                */
# /*              --------------------------------------                */
# /*                                                                    */
# /*   file:         Makefile                                           */
# /*   version:      1.00.00                                            */
# /*   creation:     1.4.1993                                           */
# /*   author:       I. Lemke  (...-Version 0.99.99)                    */
# /*                 G. Sander (Version 1.00.00-...)                    */
# /*                 Universitaet des Saarlandes, W-66041 Saarbruecken  */
# /*                 ESPRIT Project #5399 Compare                       */
# /*   description:  Config Makefile                                    */
# /*   status:       in work                                            */
# /*                                                                    */
# /*--------------------------------------------------------------------*/
#
# $Id$
#
# $Log$
#

SHELL = /bin/sh

#-------------------------- Rules ------------------------------

#all: stamp-all

all: xvcg_gcc xvcg

configure: stamp-config


# Rules to preconfigure very fast

xcompare:
	touch stamp-doc
	touch stamp-shortdoc
	if (test ! -r tMakefile) then \
		(cd preconf/X11; /bin/rm -f Makefile x11setup x11setup2; \
		  xmkmf; make | sed -e "s/^make.*//" > x11setup); \
		(cd preconf; cd X11compare; \
		  /bin/cp tMakefile ../../Make.tmp; \
		  /bin/cp globals.h ../../src; \
		  /bin/cp demo.csh ../../demo/demo.tmp); \
		/bin/rm -f tMakefile demo/demo.csh; \
		cat preconf/X11/x11setup  Make.tmp > tMakefile; \
		cat preconf/X11/x11setup2 demo/demo.tmp > demo/demo.csh; \
	fi   

xvcg_cc:
	if (test ! -r tMakefile) then \
		(cd preconf/X11; /bin/rm -f Makefile x11setup x11setup2; \
		  xmkmf; make | sed -e "s/^make.*//" > x11setup); \
		(cd preconf; cd X11cc`uname -s`; \
		  /bin/cp tMakefile ../../Make.tmp; \
		  /bin/cp globals.h ../../src; \
		  /bin/cp demo.csh ../../demo/demo.tmp); \
		/bin/rm -f tMakefile demo/demo.csh; \
		cat preconf/X11/x11setup  Make.tmp > tMakefile; \
		cat preconf/X11/x11setup2 demo/demo.tmp > demo/demo.csh; \
	fi   

xvcg_gcc:
	if (test ! -r tMakefile) then \
		(cd preconf/X11; /bin/rm -f Makefile x11setup x11setup2; \
		  xmkmf; make | sed -e "s/^make.*//" > x11setup); \
		(cd preconf; cd X11gcc`uname -s`; \
		  /bin/cp tMakefile ../../Make.tmp; \
		  /bin/cp globals.h ../../src; \
		  /bin/cp demo.csh ../../demo/demo.tmp); \
		/bin/rm -f tMakefile demo/demo.csh; \
		cat preconf/X11/x11setup  Make.tmp > tMakefile; \
		cat preconf/X11/x11setup2 demo/demo.tmp > demo/demo.csh; \
	fi   

xvcg_g++:
	if (test ! -r tMakefile) then \
		(cd preconf/X11; /bin/rm -f Makefile x11setup x11setup2; \
		  xmkmf; make | sed -e "s/^make.*//" > x11setup); \
		(cd preconf; cd X11g++`uname -s`; \
		  /bin/cp tMakefile ../../Make.tmp; \
		  /bin/cp globals.h ../../src; \
		  /bin/cp demo.csh ../../demo/demo.tmp); \
		/bin/rm -f tMakefile demo/demo.csh; \
		cat preconf/X11/x11setup  Make.tmp > tMakefile; \
		cat preconf/X11/x11setup2 demo/demo.tmp > demo/demo.csh; \
	fi   

xvcg_c89:
	if (test ! -r tMakefile) then \
		(cd preconf/X11; /bin/rm -f Makefile x11setup x11setup2; \
		  xmkmf; make | sed -e "s/^make.*//" > x11setup); \
		(cd preconf; cd X11c89`uname -s`; \
		  /bin/cp tMakefile ../../Make.tmp; \
		  /bin/cp globals.h ../../src; \
		  /bin/cp demo.csh ../../demo/demo.tmp); \
		/bin/rm -f tMakefile demo/demo.csh; \
		cat preconf/X11/x11setup  Make.tmp > tMakefile; \
		cat preconf/X11/x11setup2 demo/demo.tmp > demo/demo.csh; \
	fi   

xvcg_cc_noxmkmf:
	if (test ! -r tMakefile) then \
		(cd preconf/X11; /bin/cp ../x11setup ../x11setup2 .); \
		(cd preconf; cd X11cc`uname -s`; \
		  /bin/cp tMakefile ../../Make.tmp; \
		  /bin/cp globals.h ../../src; \
		  /bin/cp demo.csh ../../demo/demo.tmp); \
		/bin/rm -f tMakefile demo/demo.csh; \
		cat preconf/X11/x11setup  Make.tmp > tMakefile; \
		cat preconf/X11/x11setup2 demo/demo.tmp > demo/demo.csh; \
	fi   

xvcg_gcc_noxmkmf:
	if (test ! -r tMakefile) then \
		(cd preconf/X11; /bin/cp ../x11setup ../x11setup2 .); \
		(cd preconf; cd X11gcc`uname -s`; \
		  /bin/cp tMakefile ../../Make.tmp; \
		  /bin/cp globals.h ../../src; \
		  /bin/cp demo.csh ../../demo/demo.tmp); \
		/bin/rm -f tMakefile demo/demo.csh; \
		cat preconf/X11/x11setup  Make.tmp > tMakefile; \
		cat preconf/X11/x11setup2 demo/demo.tmp > demo/demo.csh; \
	fi   

xvcg_c89_noxmkmf:
	if (test ! -r tMakefile) then \
		(cd preconf/X11; /bin/cp ../x11setup ../x11setup2 .); \
		(cd preconf; cd X11c89`uname -s`; \
		  /bin/cp tMakefile ../../Make.tmp; \
		  /bin/cp globals.h ../../src; \
		  /bin/cp demo.csh ../../demo/demo.tmp); \
		/bin/rm -f tMakefile demo/demo.csh; \
		cat preconf/X11/x11setup  Make.tmp > tMakefile; \
		cat preconf/X11/x11setup2 demo/demo.tmp > demo/demo.csh; \
	fi   

vcg_gcc:
	if (test ! -r tMakefile) then \
		(cd preconf; cd SunVgcc`uname -s`; \
		  /bin/cp tMakefile ../../tMakefile; \
		  /bin/cp globals.h ../../src; \
		  /bin/cp demo.csh ../../demo/demo.csh); \
	fi   

vcg_cc:
	if (test ! -r tMakefile) then \
		(cd preconf; cd SunVcc`uname -s`; \
		  /bin/cp tMakefile ../../tMakefile; \
		  /bin/cp globals.h ../../src; \
		  /bin/cp demo.csh ../../demo/demo.csh); \
	fi   

prepare_normal:
	/bin/cp tMakefile preconf/	
	/bin/cp src/globals.h preconf/	
	/bin/cp demo/demo.csh preconf/	

prepare_x11gcc:
	/bin/cp tMakefile preconf/X11gcc`uname -s`/	
	/bin/cp src/globals.h preconf/X11gcc`uname -s`/	
	/bin/cp demo/demo.csh preconf/X11gcc`uname -s`/	

prepare_x11cc:
	/bin/cp tMakefile preconf/X11cc`uname -s`/	
	/bin/cp src/globals.h preconf/X11cc`uname -s`/	
	/bin/cp demo/demo.csh preconf/X11cc`uname -s`/	

prepare_x11c89:
	/bin/cp tMakefile preconf/X11c89`uname -s`/	
	/bin/cp src/globals.h preconf/X11c89`uname -s`/	
	/bin/cp demo/demo.csh preconf/X11c89`uname -s`/	

prepare_sungcc:
	/bin/cp tMakefile preconf/SunVgcc`uname -s`/	
	/bin/cp src/globals.h preconf/SunVgcc`uname -s`/	
	/bin/cp demo/demo.csh preconf/SunVgcc`uname -s`/	

prepare_suncc:
	/bin/cp tMakefile preconf/SunVcc`uname -s`/	
	/bin/cp src/globals.h preconf/SunVcc`uname -s`/	
	/bin/cp demo/demo.csh preconf/SunVcc`uname -s`/	

xvcg vcg: tMakefile
	make -f tMakefile

demonstration test: tMakefile 
	make -f tMakefile test

docu documentation: tMakefile
	make -f tMakefile docu

shortdocu: tMakefile 
	make -f tMakefile shortdocu

dist: tMakefile 
	make -f tMakefile dist 

install: tMakefile 
	make -f tMakefile install

clean: tMakefile 
	make -f tMakefile clean
	/bin/rm -f preconf/X11/x11setup preconf/X11/x11setup2 \
		preconf/X11/Makefile
	/bin/rm -f Make.tmp demo/demo.tmp

targetclean: tMakefile 
	make -f tMakefile targetclean

veryclean: tMakefile clean 
	make -f tMakefile veryclean 

distclean: tMakefile clean 
	make -f tMakefile distclean 
	/bin/rm -f tMakefile src/globals.h demo/demo.csh

configclean:
	/bin/rm -rf tMakefile src/globals.h src/lex.yy.c src/y.tab.c \
	 	    src/y.tab.h stamp-all

tMakefile:
	@echo "Please do make    or make configure   to create the tMakefile"
	@echo "Other options to create the tMakefile:"
	@echo "		make xvcg_gcc"
	@echo "		make xvcg_cc"
	@echo "		make xvcg_c89"
	@echo "		make xvcg_gcc_noxmkmf"
	@echo "		make xvcg_cc_noxmkmf"
	@echo "		make xvcg_c89_noxmkmf"
	@echo "		make vcg_gcc"
	@echo "		make vcg_cc"
 
compare: preconf xcompare xvcg install
	/bin/rm $(PROJECTHOME)/../bin/vcg
	ln -s $(PROJECTHOME)/../bin/xvcg $(PROJECTHOME)/../bin/vcg

stamp-config: config
	/bin/sh config
	/bin/touch stamp-config