]> Pileus Git - ~andy/fetchmail/blobdiff - trio/Makefile.in
Update website for 6.3.24.
[~andy/fetchmail] / trio / Makefile.in
index 7be4bcb16bb6efe6a48a179ab061d19e13172c58..4f3b9692b4e7e98616e96961ba24d9187a55a396 100644 (file)
@@ -1,5 +1,6 @@
+SHELL = @SHELL@
 CC     = @CC@
-CFLAGS = @CFLAGS@ -DDEBUG
+CFLAGS = @CFLAGS@ -I. -DDEBUG
 OBJS   = triostr.o trio.o trionan.o
 TARGETLIB      = libtrio.a
 TARGETINCS     = trio.h triop.h triodef.h trionan.h triostr.h
@@ -9,9 +10,11 @@ RANLIB        = @RANLIB@
 ERASE  = rm -f
 MKDIR  = mkdir -p
 GENDOC = doxygen
-
-PURIFY = purify
-PURIFYOPTIONS = -chain-length=16 -first-only=YES
+srcdir = @srcdir@
+# VPATH doesn't seem to work with /usr/xpg4/bin/make on Solaris
+# (use /usr/ccs/bin/make), and doesn't work on older Solaris make
+# such as Solaris 2.6.
+VPATH = @srcdir@
 
 # Installation settings
 INSTALL                = @INSTALL@
@@ -21,22 +24,32 @@ exec_prefix = @exec_prefix@
 includedir     = @includedir@
 libdir         = @libdir@
 
-all: $(TARGETLIB) $(TARGET) regression
+all: $(TARGETLIB) $(TARGET)
+
+.PHONY: all check test install doc clean
+
+$(srcdir)/configure: configure.in
+       cd $(srcdir) && autoconf
 
-test:
+Makefile: Makefile.in config.status
+       CONFIG_COMMANDS= CONFIG_LINKS= CONFIG_HEADERS= \
+       CONFIG_FILES=Makefile ./config.status
+
+config.status: configure
+       ./config.status --recheck
+
+check: test
+test:  regression
        ./regression
 
 install:       $(TARGETLIB)
        $(MKDIR) $(libdir)
        $(MKDIR) $(includedir)
        $(INSTALL_DATA) $(TARGETLIB) $(libdir)/$(TARGETLIB)
-       for i in $(TARGET_INCS);do \
-       (set -x;$(INSTALL_DATA) $$i $(includedir)); \
+       for i in $(TARGETINCS);do \
+       (set -x;$(INSTALL_DATA) $(srcdir)/$$i $(includedir)); \
        done
 
-pure: $(TOBJS) $(OBJS)
-       $(PURIFY) $(PURIFYOPTIONS) $(CC) $(CFLAGS) $^ $(LDFLAGS)
-
 regression: regression.o $(TARGETLIB)
        $(CC) $(CFLAGS) regression.o $(LDFLAGS) -o $@
 
@@ -54,7 +67,7 @@ $(TARGETLIB): $(OBJS)
        $(RANLIB) $(TARGETLIB)
 
 doc::
-       $(GENDOC) doc/trio.cfg
+       (cd $(srcdir) && $(GENDOC) doc/trio.cfg)
 
 clean:
-       $(ERASE) *~ core regression example $(TOBJS) $(OBJS) $(TARGET) $(TARGETLIB) example.o regression.o
+       $(ERASE) *~ core core.* regression example $(TOBJS) $(OBJS) $(TARGET) $(TARGETLIB) example.o regression.o