Subversion Repositories wimsdev

Rev

Rev 5495 | Rev 6776 | 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
PUBDIR=$(wims_home)/public_html/bin
5
cc=@CC@
6
cflags=@CFLAGS@ -Wall
7
defines=@DEFINES@
8
static=
9
SETENV_OBJS=@SETENV_OBJS@
10
STRIP=@STRIP@
11
 
5507 czzmrn 12
progstatic=pari yacas maxima scilab
3864 bpr 13
progdynamic=gap octave m2
10 reyssat 14
progs=$(progstatic) $(progdynamic)
15
 
16
all: $(progs) install
17
 
18
clean:
5507 czzmrn 19
	rm -f $(progs) *.o yacasheader.c 
10 reyssat 20
 
21
distclean: clean
22
	cd $(PUBDIR); rm -f $(progs)
23
	rm -f Makefile
24
 
5507 czzmrn 25
%.o: %.c common.h common.c yacasheader.c 
10 reyssat 26
	$(cc) -o $@ $(cflags) $(defines) -c $<
27
 
28
install: $(progs)
29
	$(STRIP) $(progs)
30
	cp $(progs) $(PUBDIR)
31
 
32
m2: m2.o $(SETENV_OBJS)
33
	$(cc) $(cflags) m2.o $(SETENV_OBJS) -lm -o $@
34
octave: octave.o $(SETENV_OBJS)
35
	$(cc) $(cflags) octave.o $(SETENV_OBJS) -lm -o $@
36
gap: gap.o $(SETENV_OBJS)
37
	$(cc) $(cflags) gap.o $(SETENV_OBJS) -lm -o $@
38
 
39
pari: pari.o $(SETENV_OBJS)
40
	$(cc) $(cflags) $(static) pari.o $(SETENV_OBJS) -lm -o $@
41
maxima: maxima.o $(SETENV_OBJS)
42
	$(cc) $(cflags) $(static) maxima.o $(SETENV_OBJS) -lm -o $@
43
scilab: scilab.o $(SETENV_OBJS)
44
	$(cc) $(cflags) $(static) scilab.o $(SETENV_OBJS) -lm -o $@
45
 
46
yacasheader.c: yacasheader.tab yacasheader.sh
47
	./yacasheader.sh
48
yacas: yacas.o yacasheader.c $(SETENV_OBJS)
49
	$(cc) $(cflags) $(static) yacas.o $(SETENV_OBJS) -lm -o yacas