Subversion Repositories wimsdev

Rev

Rev 8160 | Rev 8219 | 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
ranlib=@RANLIB@
10
defines=@DEFINES@
11
SETENV_OBJS=@SETENV_OBJS@
8195 bpr 12
O=dir.o evalue.o levelcurve.o liblines.o math.o text.o mt19937ar.o libwims.o
10 reyssat 13
 
14
all: libwims.a
15
 
16
static: libwims.a
17
 
18
%.o: %.c
19
	$(cc) -o $@ $(cflags) $(defines) -c $<
20
 
8195 bpr 21
libwims.a: $(O) $(SETENV_OBJS)
22
	ar rc $@ $(O) $(SETENV_OBJS)
10 reyssat 23
	$(ranlib) $@
24
	cp $@ $(wims_home)/lib
25
 
26
clean::
8134 bpr 27
	rm -f libwims.so libwims.a *.o 2>/dev/null
10 reyssat 28
 
29
distclean::
30
	rm -f libwims.so libwims.a libwims.o 2>/dev/null
31
	rm -f Makefile
32
	cd $(wims_home)/lib; rm -f libwims* 2>/dev/null
33
 
34