]> Pileus Git - ~andy/fetchmail/blob - trio/Makefile.in
Import Trio 1.10 into fetchmail's trunk.
[~andy/fetchmail] / trio / Makefile.in
1 CC      = @CC@
2 CFLAGS  = @CFLAGS@ -DDEBUG
3 OBJS    = triostr.o trio.o trionan.o
4 TARGETLIB       = libtrio.a
5 TARGETINCS      = trio.h triop.h triodef.h trionan.h triostr.h
6 LDFLAGS = -L. -ltrio -lm
7 AR      = ar
8 RANLIB  = @RANLIB@
9 ERASE   = rm -f
10 MKDIR   = mkdir -p
11 GENDOC  = doxygen
12
13 PURIFY = purify
14 PURIFYOPTIONS = -chain-length=16 -first-only=YES
15
16 # Installation settings
17 INSTALL         = @INSTALL@
18 INSTALL_DATA    = @INSTALL_DATA@
19 prefix          = @prefix@
20 exec_prefix     = @exec_prefix@
21 includedir      = @includedir@
22 libdir          = @libdir@
23
24 all: $(TARGETLIB) $(TARGET) regression
25
26 test:
27         ./regression
28
29 install:        $(TARGETLIB)
30         $(MKDIR) $(libdir)
31         $(MKDIR) $(includedir)
32         $(INSTALL_DATA) $(TARGETLIB) $(libdir)/$(TARGETLIB)
33         for i in $(TARGET_INCS);do \
34         (set -x;$(INSTALL_DATA) $$i $(includedir)); \
35         done
36
37 pure: $(TOBJS) $(OBJS)
38         $(PURIFY) $(PURIFYOPTIONS) $(CC) $(CFLAGS) $^ $(LDFLAGS)
39
40 regression: regression.o $(TARGETLIB)
41         $(CC) $(CFLAGS) regression.o $(LDFLAGS) -o $@
42
43 example: example.o $(TARGETLIB)
44         $(CC) $(CFLAGS) example.o $(LDFLAGS) -o $@
45
46 compare: compare.o $(TARGETLIB)
47         $(CC) $(CFLAGS) compare.o $(LDFLAGS) -o $@
48
49 userdef: userdef.o $(TARGETLIB)
50         $(CC) $(CFLAGS) userdef.o $(LDFLAGS) -o $@
51
52 $(TARGETLIB): $(OBJS)
53         $(AR) ruv $(TARGETLIB) $(OBJS)
54         $(RANLIB) $(TARGETLIB)
55
56 doc::
57         $(GENDOC) doc/trio.cfg
58
59 clean:
60         $(ERASE) *~ core regression example $(TOBJS) $(OBJS) $(TARGET) $(TARGETLIB) example.o regression.o