OSSP CVS Repository

ossp - Difference in ossp-pkg/uuid/Makefile.in versions 1.37 and 1.38
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/uuid/Makefile.in 1.37 -> 1.38

--- Makefile.in  2005/09/02 18:16:13     1.37
+++ Makefile.in  2006/01/12 20:31:50     1.38
@@ -59,6 +59,7 @@
 POD2MAN     = pod2man
 PERL        = @PERL@
 PHP         = @PHP@
+PG_CONFIG   = @PG_CONFIG@
 
 LIB_NAME    = libuuid.la
 LIB_OBJS    = uuid.lo uuid_md5.lo uuid_sha1.lo uuid_prng.lo uuid_mac.lo uuid_ui64.lo uuid_str.lo
@@ -80,13 +81,17 @@
 PHP_NAME    = $(S)/php/modules/uuid.so
 PHP_OBJS    = $(S)/php/uuid.c
 
-TARGETS     = $(LIB_NAME) @DCE_NAME@ @CXX_NAME@ $(PRG_NAME) @PERL_NAME@ @PHP_NAME@
+PGSQL_NAME  = $(S)/pgsql/libuuid.so
+PGSQL_OBJS  = $(S)/pgsql/uuid.c
+
+TARGETS     = $(LIB_NAME) @DCE_NAME@ @CXX_NAME@ $(PRG_NAME) @PERL_NAME@ @PHP_NAME@ @PGSQL_NAME@
 
 WITH_DCE         = @WITH_DCE@
 WITH_CXX         = @WITH_CXX@
 WITH_PERL        = @WITH_PERL@
 WITH_PERL_COMPAT = @WITH_PERL_COMPAT@
 WITH_PHP         = @WITH_PHP@
+WITH_PGSQL       = @WITH_PGSQL@
 
 .SUFFIXES:
 .SUFFIXES: .c .cc .o .lo
@@ -128,6 +133,10 @@
         @cd $(S)/php && $(MAKE) $(MFLAGS) -f Makefile.local PHP=$(PHP)
         @touch $(PHP_NAME)
 
+$(PGSQL_NAME): $(PGSQL_OBJS) $(LIB_NAME)
+        @cd $(S)/pgsql && $(MAKE) $(MFLAGS) PG_CONFIG=$(PG_CONFIG)
+        @touch $(PGSQL_NAME)
+
 uuid.lo: $(S)/uuid.c uuid.h $(S)/uuid_md5.h $(S)/uuid_sha1.h $(S)/uuid_prng.h $(S)/uuid_mac.h $(S)/uuid_ui64.h $(S)/uuid_str.h $(S)/uuid_bm.h $(S)/uuid_ac.h
 uuid_mac.lo: $(S)/uuid_mac.c $(S)/uuid_mac.h
 uuid_md5.lo: $(S)/uuid_md5.c $(S)/uuid_md5.h
@@ -205,6 +214,10 @@
             echo "==== PHP bindings to C API"; \
             (cd $(S)/php && $(MAKE) $(MFLAGS) -f Makefile.local test PHP=$(PHP)); \
         fi
+        -@if [ ".$(WITH_PGSQL)" = .yes ]; then \
+            echo "==== PGSQL bindings to C API"; \
+            (cd $(S)/pgsql && $(MAKE) $(MFLAGS) test PG_CONFIG=$(PG_CONFIG)); \
+        fi
 
 install:
         $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(prefix)
@@ -245,6 +258,9 @@
         -@if [ ".$(WITH_PHP)" = .yes ]; then \
             (cd $(S)/php && $(MAKE) $(MFLAGS) -f Makefile.local install EXTDIR=$(prefix)/lib/php PHP=$(PHP) DESTDIR=$(DESTDIR)); \
         fi
+        -@if [ ".$(WITH_PGSQL)" = .yes ]; then \
+            (cd $(S)/pgsql && $(MAKE) $(MFLAGS) install DESTDIR=$(DESTDIR) PG_CONFIG=$(PG_CONFIG)); \
+        fi
 
 uninstall:
         -$(RM) $(DESTDIR)$(mandir)/man1/uuid.1
@@ -301,6 +317,9 @@
         -@if [ ".$(WITH_PHP)" = .yes ]; then \
             (cd $(S)/php && $(MAKE) $(MFLAGS) -f Makefile.local clean || true); \
         fi
+        -@if [ ".$(WITH_PGSQL)" = .yes ]; then \
+            (cd $(S)/pgsql && $(MAKE) $(MFLAGS) clean PG_CONFIG=$(PG_CONFIG) || true); \
+        fi
 
 distclean: clean
         -$(RM) config.log config.status config.cache
@@ -312,6 +331,9 @@
         -@if [ ".$(WITH_PHP)" = .yes ]; then \
             (cd $(S)/php && $(MAKE) $(MFLAGS) -f Makefile.local distclean || true); \
         fi
+        -@if [ ".$(WITH_PGSQL)" = .yes ]; then \
+            (cd $(S)/pgsql && $(MAKE) $(MFLAGS) distclean PG_CONFIG=$(PG_CONFIG) || true); \
+        fi
 
 realclean: distclean
         -$(RM) uuid.3 uuid.1
@@ -324,4 +346,7 @@
         -@if [ ".$(WITH_PHP)" = .yes ]; then \
             (cd $(S)/php && $(MAKE) $(MFLAGS) -f Makefile.local realclean || true); \
         fi
+        -@if [ ".$(WITH_PGSQL)" = .yes ]; then \
+            (cd $(S)/pgsql && $(MAKE) $(MFLAGS) realclean PG_CONFIG=$(PG_CONFIG) || true); \
+        fi
 

CVSTrac 2.0.1