Rev 8219 | 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 |
8219 | bpr | 13 | H=libwims.h ../config.h ../includes.h ../wimsdef.h |
10 | reyssat | 14 | |
15 | all: libwims.a |
||
16 | |||
17 | static: libwims.a |
||
18 | |||
8219 | bpr | 19 | %.o: %.c $(H) |
17887 | georgesk | 20 | $(cc) -o $@ $(cflags) $(CPPFLAGS) $(defines) -c $< |
10 | reyssat | 21 | |
8195 | bpr | 22 | libwims.a: $(O) $(SETENV_OBJS) |
23 | ar rc $@ $(O) $(SETENV_OBJS) |
||
10 | reyssat | 24 | $(ranlib) $@ |
25 | cp $@ $(wims_home)/lib |
||
26 | |||
27 | clean:: |
||
8134 | bpr | 28 | rm -f libwims.so libwims.a *.o 2>/dev/null |
10 | reyssat | 29 | |
30 | distclean:: |
||
31 | rm -f libwims.so libwims.a libwims.o 2>/dev/null |
||
32 | rm -f Makefile |
||
33 | cd $(wims_home)/lib; rm -f libwims* 2>/dev/null |
||
34 | |||
35 |