Subversion Repositories wimsdev

Rev

Rev 17561 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
10 reyssat 1
# @configure_input@
2
 
3
wims_home=../..
4
cc=@CC@
5
cflags=@CFLAGS@ -Wall
6776 georgesk 6
LDFLAGS=@LDFLAGS@
7
CPPFLAGS=@CPPFLAGS@
8
 
10 reyssat 9
defines=@DEFINES@
10
STRIP=@STRIP@
11
rpath=
12
libtype=static
13
NETLIBS=@NETLIBS@
3889 bpr 14
lopt=-L$(wims_home)/lib -lwims -lm $(rpath)
8219 bpr 15
H=../Lib/libwims.h ../config.h ../includes.h ../wimsdef.h
10 reyssat 16
 
17
publicbin=curvecomp cyclicode ftype oncechar shortpath webget
18
Publicbin=$(publicbin) Plouffe clickzone html2msg huffman translator wrap chroot voronoi
19
Publicbin2=$(Publicbin) test cryptarith
20
namechange=wrap..exec ch..root
21
Homebin=exostat dicsort modind modstat ccsum phtmltext
22
progs=$(Publicbin) $(Homebin)
23
progs2=$(Publicbin2) $(Homebin)
24
units=@BUILD_UNITS@
25
chemeq=@BUILD_CHEMEQ@
4216 bpr 26
bioinfo=C_etat_civil tab1d tab2d test_cond
3578 bpr 27
Otherbin=$(units) $(chemeq) whirlgif
913 bpr 28
checkmol=checkmol matchmol
3398 bpr 29
crossword=crossword
3413 bpr 30
lceb=lceb_dynopt
3519 schaersvoo 31
moneyprint=moneyprint
3688 schaersvoo 32
toascii=toascii
5170 schaersvoo 33
scienceprint=scienceprint
5207 schaersvoo 34
sigdigits=sigdigits
7614 schaersvoo 35
canvasdraw=canvasdraw
10 reyssat 36
 
37
OTHERDIR=$(wims_home)/other/bin
38
PUBDIR=$(wims_home)/public_html/bin
39
BINDIR=$(wims_home)/bin
40
 
7614 schaersvoo 41
all:: $(progs) mathexp symtext $(Otherbin) bioinfo checkmol lceb crossword moneyprint toascii scienceprint sigdigits canvasdraw
10 reyssat 42
 
14708 bpr 43
maintainer::
4297 bpr 44
 
8219 bpr 45
%.o: %.c $(H)
17887 georgesk 46
	$(cc) -o $@ $(cflags) $(CPPFLAGS) $(defines) -c $<
8147 bpr 47
 
10 reyssat 48
chemeq units-filter::
17561 bpr 49
	(cd $@/src; make && $(STRIP) $@)
50
	cp $@/src/$@ $(OTHERDIR)
10 reyssat 51
 
52
voronoi::
53
	cd voronoiW; make && $(STRIP) voronoi
54
	cp voronoiW/voronoi $(PUBDIR)
55
 
56
whirlgif::
57
	cd whirlgif; make && $(STRIP) whirlgif
58
	cp whirlgif/whirlgif $(OTHERDIR)
59
 
60
mathexp::
61
	cd mathexp; make mathexp
62
 
1622 bpr 63
symtext::
64
	cd symtext; make
4297 bpr 65
 
796 bpr 66
bioinfo::
4297 bpr 67
	cd bioinfo; make && $(STRIP) $(bioinfo)
4216 bpr 68
	cd $@ ; cp $(bioinfo) ../$(OTHERDIR)
4297 bpr 69
 
913 bpr 70
checkmol::
71
	cd checkmol; make && $(STRIP) checkmol
72
	cp $@/checkmol $(OTHERDIR)
1776 bpr 73
	-rm -f $(OTHERDIR)/matchmol
913 bpr 74
	ln -s $(OTHERDIR)/checkmol $(OTHERDIR)/matchmol
75
 
2143 bpr 76
lceb::
77
	cd lceb ; make && $(STRIP) lceb_dynopt
78
	cp $@/lceb_dynopt $(OTHERDIR)
4297 bpr 79
 
3398 bpr 80
crossword::
81
	cd crossword ; make && $(STRIP) crossword
82
	cp $@/crossword $(OTHERDIR)
4297 bpr 83
 
3519 schaersvoo 84
moneyprint::
85
	cd moneyprint ; make && $(STRIP) moneyprint
86
	cp $@/moneyprint $(OTHERDIR)
87
 
3688 schaersvoo 88
toascii::
89
	cd toascii ; make && $(STRIP) toascii
90
	cp $@/toascii $(OTHERDIR)
91
 
5170 schaersvoo 92
scienceprint::
93
	cd scienceprint ; make && $(STRIP) scienceprint
94
	cp $@/scienceprint $(OTHERDIR)
95
 
5207 schaersvoo 96
sigdigits::
97
	cd sigdigits ; make && $(STRIP) sigdigits
98
	cp $@/sigdigits $(OTHERDIR)
7614 schaersvoo 99
 
100
canvasdraw::
101
	cd canvasdraw ; make
14948 obado 102
	# cp $@/canvasdraw $(OTHERDIR)
7614 schaersvoo 103
 
4237 bpr 104
java::
105
	cd authors/jm.evers/applets ; make && make install
4297 bpr 106
	cd applets ; make && make install
107
 
10 reyssat 108
clean:
8134 bpr 109
	rm -f $(progs2) *.o
10 reyssat 110
	cd mathexp; make clean
111
	cd units-filter/src; make clean
112
	cd chemeq/src; make clean
113
	cd voronoiW; make clean
114
	cd whirlgif; make clean
913 bpr 115
	cd bioinfo; make clean
116
	cd checkmol; make clean
1622 bpr 117
	cd symtext; make clean
3398 bpr 118
	cd lceb; make clean
119
	cd crossword ; make clean
3519 schaersvoo 120
	cd moneyprint ; make clean
3688 schaersvoo 121
	cd toascii ; make clean
5170 schaersvoo 122
	cd scienceprint ; make clean
5207 schaersvoo 123
	cd sigdigits ; make clean
7614 schaersvoo 124
	cd canvasdraw ; make clean
10 reyssat 125
 
3640 georgesk 126
distclean: clean
10 reyssat 127
	rm -f $(progs2)
128
	cd mathexp; make distclean
129
	cd voronoiW; make distclean
130
	cd whirlgif; make distclean
1628 bpr 131
	cd bioinfo; make distclean
10 reyssat 132
	cd units-filter/src; make clean
133
	cd chemeq/src; make clean
3895 bpr 134
	cd lceb ; make clean
135
	cd checkmol ; make clean
136
	cd crossword ; make clean
137
	cd moneyprint ; make clean
5170 schaersvoo 138
	cd toascii ; make clean
139
	cd scienceprint ; make clean
5207 schaersvoo 140
	cd sigdigits ; make clean
7614 schaersvoo 141
	cd canvasdraw; make distclean
5207 schaersvoo 142
	cd $(OTHERDIR); rm -f $(Otherbin) $(bioinfo) $(checkmol) $(lceb) $(crossword) $(moneyprint) $(toascii) $(scienceprint) $(sigdigits)
10 reyssat 143
	cd $(BINDIR); rm -f $(Homebin)
144
	cd $(PUBDIR); rm -f $(Publicbin2) $(namechange)
145
	rm -f Makefile
146
 
147
#################################################
148
webget: webget.c
6776 georgesk 149
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) webget.c $(NETLIBS) -lm -o $@
10 reyssat 150
	$(STRIP) $@
151
	cp $@ $(PUBDIR)
152
 
153
test: test.c
6776 georgesk 154
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) test.c -lm -o $@
10 reyssat 155
	$(STRIP) $@
156
	cp $@ $(PUBDIR)
157
shortpath: shortpath.c
6776 georgesk 158
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) shortpath.c -lm -o $@
10 reyssat 159
	$(STRIP) $@
160
	cp $@ $(PUBDIR)
8219 bpr 161
oncechar: oncechar.o
162
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) oncechar.o $(lopt) -o $@
10 reyssat 163
	$(STRIP) $@
164
	cp $@ $(PUBDIR)
165
cryptarith: cryptarith.c
6776 georgesk 166
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) cryptarith.c -lm -o $@
10 reyssat 167
	$(STRIP) $@
168
	cp $@ $(PUBDIR)
8219 bpr 169
ftype: ftype.o
170
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) ftype.o $(lopt) -o $@
10 reyssat 171
	$(STRIP) $@
172
	cp $@ $(PUBDIR)
8219 bpr 173
cyclicode: cyclicode.o
174
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) cyclicode.o $(lopt) -o $@
10 reyssat 175
	$(STRIP) $@
176
	cp $@ $(PUBDIR)
8219 bpr 177
curvecomp: curvecomp.o
178
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) curvecomp.o $(lopt) -o $@
10 reyssat 179
	$(STRIP) $@
180
	cp $@ $(PUBDIR)
181
Plouffe: Plouffe.c
6776 georgesk 182
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) Plouffe.c -lm -o $@
10 reyssat 183
	$(STRIP) $@
184
	rm -f $(PUBDIR)/$@; cp $@ $(PUBDIR)
185
 
8185 bpr 186
translator: suffix.o translator.o
187
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) suffix.o translator.o $(lopt) @STATIC_LIB@ -o translator
10 reyssat 188
	$(STRIP) translator
189
	cp translator $(PUBDIR)
190
 
8219 bpr 191
html2msg: html2msg.o
192
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) html2msg.o $(lopt) -o html2msg
10 reyssat 193
	$(STRIP) html2msg
194
	cp html2msg $(PUBDIR)
195
 
8219 bpr 196
huffman : huffman.o
197
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) huffman.o $(lopt) -o $@
10 reyssat 198
	$(STRIP) $@
199
	cp $@ $(PUBDIR)
200
 
201
wrap: wrap.c
6776 georgesk 202
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) wrap.c @STATIC_LIB@ -o wrap
10 reyssat 203
	$(STRIP) wrap
204
	cp -f wrap $(PUBDIR)/wrap..exec
205
	echo yes >$(wims_home)/log/unsecure
206
 
207
chroot: chroot.c
6776 georgesk 208
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) chroot.c @STATIC_LIB@ -o chroot
10 reyssat 209
	$(STRIP) chroot
210
	cp -f chroot $(PUBDIR)/ch..root
211
	echo yes >$(wims_home)/log/unsecure
212
 
213
#################################################
214
 
8185 bpr 215
dicsort: suffix.o dicsort.o
216
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) suffix.o dicsort.o $(lopt) -o $@
10 reyssat 217
	$(STRIP) $@
218
	cp $@ $(BINDIR)
8185 bpr 219
modind: suffix.o translator_.o modind.o
220
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) suffix.o translator_.o modind.o $(lopt) -o $@
10 reyssat 221
	$(STRIP) $@
222
	cp $@ $(BINDIR)
8219 bpr 223
modstat: modstat.o
224
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) modstat.o $(lopt) -o $@
10 reyssat 225
	$(STRIP) $@
226
	cp $@ $(BINDIR)
8219 bpr 227
ccsum: ccsum.o
228
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) ccsum.o $(lopt) -o $@
10 reyssat 229
	$(STRIP) $@
230
	cp $@ $(BINDIR)
231
 
8219 bpr 232
exostat: exostat.o
233
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) exostat.o $(lopt) -o $@
10 reyssat 234
	$(STRIP) $@
235
	cp $@ $(BINDIR)
236
 
3578 bpr 237
#passcrypt: passcrypt.c
6776 georgesk 238
#	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) passcrypt.c $(lopt) @CRYPTLIB@ -o $@
3578 bpr 239
#	$(STRIP) $@
240
#	cp $@ $(OTHERDIR)
10 reyssat 241
 
8219 bpr 242
phtmltext: phtmltext.o
243
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) phtmltext.o $(lopt) -o $@
10 reyssat 244
	$(STRIP) $@
245
	cp $@ $(BINDIR)
246
 
8219 bpr 247
clickzone: clickzone.o
248
	$(cc) $(cflags) $(CPPFLAGS) $(LDFLAGS) clickzone.o $(lopt) -lgd -o $@
10 reyssat 249
	$(STRIP) $@
250
	cp $@ $(PUBDIR)
251