OSSP CVS Repository

ossp - Difference in ossp-pkg/xds/Makefile.in versions 1.22 and 1.23
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/xds/Makefile.in 1.22 -> 1.23

--- Makefile.in  2001/08/08 11:21:27     1.22
+++ Makefile.in  2001/08/08 19:15:23     1.23
@@ -1,70 +1,66 @@
 # Build libxds.
 
-CC              = @CC@
-AR              = ar
-RANLIB          = @RANLIB@
-
-CPPFLAGS        = @CPPFLAGS@ @DEFS@ -D_GNU_SOURCE
-CFLAGS          = @CFLAGS@
-LDFLAGS         = @LDFLAGS@
-
-XML64_OBJS      = @xml_64_bit_objects@
-XML_OBJS        = xml-encode-int32.o       xml-decode-int32.o \
-                  xml-encode-uint32.o      xml-decode-uint32.o \
-                  xml-encode-double.o      xml-decode-double.o \
-                  xml-encode-begin.o       xml-decode-begin.o \
-                  xml-encode-end.o         xml-decode-end.o \
-                  xml-encode-octetstream.o xml-decode-octetstream.o \
-                  xml-encode-string.o      xml-decode-string.o \
-                  $(XML64_OBJS)
-
-XDR64_OBJS      = @xdr_64_bit_objects@
-XDR_OBJS        = xdr-encode-int32.o       xdr-decode-int32.o \
-                  xdr-encode-uint32.o      xdr-decode-uint32.o \
-                  xdr-encode-double.o      xdr-decode-double.o \
-                  xdr-encode-octetstream.o xdr-decode-octetstream.o \
-                  xdr-encode-string.o      xdr-decode-string.o \
-                  $(XDR64_OBJS)
-
-XDS_OBJS        = decode.o destroy.o encode.o getbuffer.o init.o register.o \
-                  setbuffer.o unregister.o vdecode.o vencode.o find-engine.o \
-                  set-capacity.o
+CC        = @CC@
+AR        = ar
+RANLIB    = @RANLIB@
+CPPFLAGS  = @CPPFLAGS@ @DEFS@ -D_GNU_SOURCE
+CFLAGS    = @CFLAGS@
+LDFLAGS   = @LDFLAGS@
+LIBS      = @LIBS@
+POD2MAN   = @POD2MAN@
+
+LIB_NAME  = libxds.a
+LIB_OBJS  = xds.o xds_engine_xdr.o xds_engine_xml.o
+TST_SRCS  = xds_test_lib.c xds_test_xdr.c xds_test_xml.c
 
-OBJS            = $(XDS_OBJS) $(XDR_OBJS) $(XML_OBJS)
+.SUFFIXES:
+.SUFFIXES: .c .o .pod .3
+
+.PHONY: clean distclean realclean check docs
 
 .c.o:
         $(CC) $(CPPFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(CFLAGS) -c $<
+.pod.3:
+        $(POD2MAN) --section=3 --center="XDS Library Programmer API" $< >$@
 
-.PHONY: clean distclean realclean check docs
+all: $(LIB_NAME) xds.3
 
-all:    libxds.a
-
-libxds.a:       $(OBJS)
+$(LIB_NAME):    $(LIB_OBJS)
         @rm -f $@
-        $(AR) cr $@ $(OBJS)
+        $(AR) cr $@ $(LIB_OBJS)
         $(RANLIB) $@
 
 clean::
-        @(cd regression-tests && $(MAKE) $@)
         @(cd docs && $(MAKE) $@)
-        rm -f $(OBJS)
-        rm -f libxds.a
+        -rm -f $(LIB_OBJS)
+        -rm -f ./.*.t ./.*.l
+        -rm -f $(LIB_NAME)
+        -rm -f xds.3
 
 distclean::     clean
-        @(cd regression-tests && $(MAKE) $@)
         @(cd docs && $(MAKE) $@)
-        rm -f config.log config.status Makefile
+        -rm -f config.log config.status Makefile
 
 realclean::     distclean
-        rm -f configure
+        -rm -f configure
 
-check:          libxds.a
-        (cd regression-tests && $(MAKE) check)
+check:          $(LIB_NAME) $(TST_SRCS)
+        -@for filename in $(TST_SRCS); do \
+            for testname in `grep "#ifdef XDS_TEST_" $$filename | sed -e 's;^#ifdef ;;'`; do \
+            filebase=`echo $$filename | sed -e 's;\.c;;'`; \
+            testbase=`echo $$testname | sed -e 's;^XDS_TEST_;;'`; \
+                if [ ! -f ".$$testbase.t" ]; then \
+                echo "$(CC) $(CPPFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(CFLAGS) $(LDFLAGS) -D$$testname -o .$$testbase.t $$filebase.c $(LIB_NAME)"; \
+                $(CC) $(CPPFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(CFLAGS) $(LDFLAGS) -D$$testname -o .$$testbase.t $$filebase.c $(LIB_NAME); \
+            fi; \
+        done; \
+    done; \
+    sh ./xds_test.sh ./.*.t
 
 docs:
         @(cd docs && $(MAKE))
 
 # Dependencies
 
-$(XDS_OBJS):                    internal.h xds.h
-$(XDR_OBJS) $(XML_OBJS):        xds.h
+$(LIB_OBJS):                    xds_p.h xds.h
+

CVSTrac 2.0.1