Rev 8134 | Rev 8195 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8134 | Rev 8160 | ||
---|---|---|---|
Line 7... | Line 7... | ||
7 | CPPFLAGS=@CPPFLAGS@ |
7 | CPPFLAGS=@CPPFLAGS@ |
8 | 8 | ||
9 | ranlib=@RANLIB@ |
9 | ranlib=@RANLIB@ |
10 | defines=@DEFINES@ |
10 | defines=@DEFINES@ |
11 | SETENV_OBJS=@SETENV_OBJS@ |
11 | SETENV_OBJS=@SETENV_OBJS@ |
- | 12 | libobjects=dir.o errors.o evalue.o levelcurve.o liblines.o math.o text.o mt19937ar.o libwims.o |
|
12 | 13 | ||
13 | all: libwims.a |
14 | all: libwims.a |
14 | 15 | ||
15 | static: libwims.a |
16 | static: libwims.a |
16 | 17 | ||
17 | %.o: %.c |
18 | %.o: %.c |
18 | $(cc) -o $@ $(cflags) $(defines) -c $< |
19 | $(cc) -o $@ $(cflags) $(defines) -c $< |
19 | 20 | ||
20 | libwims.o: *.c libwims.h |
- | |
21 | $(cc) -o $@ $(cflags) $(CPPFLAGS) $(defines) -Dlibwims -c libwims.c |
- | |
22 | - | ||
23 | libwims.a: |
21 | libwims.a: $(libobjects) $(SETENV_OBJS) |
24 | ar rc $@ |
22 | ar rc $@ $(libobjects) $(SETENV_OBJS) |
25 | $(ranlib) $@ |
23 | $(ranlib) $@ |
26 | cp $@ $(wims_home)/lib |
24 | cp $@ $(wims_home)/lib |
27 | 25 | ||
28 | clean:: |
26 | clean:: |
29 | rm -f libwims.so libwims.a *.o 2>/dev/null |
27 | rm -f libwims.so libwims.a *.o 2>/dev/null |