]> Pileus Git - ~andy/fetchmail/blob - trio/Makefile.in
Minor bug fixes for socket.c
[~andy/fetchmail] / trio / Makefile.in
1 SHELL = @SHELL@
2 CC      = @CC@
3 CFLAGS  = @CFLAGS@ -I. -DDEBUG
4 OBJS    = triostr.o trio.o trionan.o
5 TARGETLIB       = libtrio.a
6 TARGETINCS      = trio.h triop.h triodef.h trionan.h triostr.h
7 LDFLAGS = -L. -ltrio -lm
8 AR      = ar
9 RANLIB  = @RANLIB@
10 ERASE   = rm -f
11 MKDIR   = mkdir -p
12 GENDOC  = doxygen
13 srcdir  = @srcdir@
14 # VPATH doesn't seem to work with /usr/xpg4/bin/make on Solaris
15 # (use /usr/ccs/bin/make), and doesn't work on older Solaris make
16 # such as Solaris 2.6.
17 VPATH = @srcdir@
18
19 # Installation settings
20 INSTALL         = @INSTALL@
21 INSTALL_DATA    = @INSTALL_DATA@
22 prefix          = @prefix@
23 exec_prefix     = @exec_prefix@
24 includedir      = @includedir@
25 libdir          = @libdir@
26
27 all: $(TARGETLIB) $(TARGET)
28
29 .PHONY: all check test install doc clean
30
31 $(srcdir)/configure: configure.in
32         cd $(srcdir) && autoconf
33
34 Makefile: Makefile.in config.status
35         CONFIG_COMMANDS= CONFIG_LINKS= CONFIG_HEADERS= \
36         CONFIG_FILES=Makefile ./config.status
37
38 config.status: configure
39         ./config.status --recheck
40
41 check:  test
42 test:   regression
43         ./regression
44
45 install:        $(TARGETLIB)
46         $(MKDIR) $(libdir)
47         $(MKDIR) $(includedir)
48         $(INSTALL_DATA) $(TARGETLIB) $(libdir)/$(TARGETLIB)
49         for i in $(TARGETINCS);do \
50         (set -x;$(INSTALL_DATA) $(srcdir)/$$i $(includedir)); \
51         done
52
53 regression: regression.o $(TARGETLIB)
54         $(CC) $(CFLAGS) regression.o $(LDFLAGS) -o $@
55
56 example: example.o $(TARGETLIB)
57         $(CC) $(CFLAGS) example.o $(LDFLAGS) -o $@
58
59 compare: compare.o $(TARGETLIB)
60         $(CC) $(CFLAGS) compare.o $(LDFLAGS) -o $@
61
62 userdef: userdef.o $(TARGETLIB)
63         $(CC) $(CFLAGS) userdef.o $(LDFLAGS) -o $@
64
65 $(TARGETLIB): $(OBJS)
66         $(AR) ruv $(TARGETLIB) $(OBJS)
67         $(RANLIB) $(TARGETLIB)
68
69 doc::
70         (cd $(srcdir) && $(GENDOC) doc/trio.cfg)
71
72 clean:
73         $(ERASE) *~ core core.* regression example $(TOBJS) $(OBJS) $(TARGET) $(TARGETLIB) example.o regression.o