OSDN Git Service

Add Makefile rules for new crypt/rint() /port functions. Add include
authorBruce Momjian <bruce@momjian.us>
Sat, 10 May 2003 02:05:50 +0000 (02:05 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 10 May 2003 02:05:50 +0000 (02:05 +0000)
for rint prototype.

src/interfaces/ecpg/pgtypeslib/Makefile
src/interfaces/ecpg/pgtypeslib/dt_common.c
src/interfaces/libpq/Makefile

index 86f2fde..33deef2 100644 (file)
@@ -4,7 +4,7 @@
 #
 # Copyright (c) 1994, Regents of the University of California
 #
-# $Header: /cvsroot/pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.6 2003/05/09 16:26:29 momjian Exp $
+# $Header: /cvsroot/pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.7 2003/05/10 02:05:50 momjian Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -26,6 +26,9 @@ all: all-lib
 # Shared library stuff
 include $(top_srcdir)/src/Makefile.shlib
 
+rint.c: %.c : $(top_srcdir)/src/port/%.c
+       rm -f $@ && $(LN_S) $< .
+
 install: all installdirs install-lib
 
 installdirs:
index ff8035e..229ec27 100644 (file)
@@ -5,6 +5,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
+#include <math.h>
 
 #include "dt.h"
 #include "extern.h"
index 2a4b97b..f4c92b1 100644 (file)
@@ -4,7 +4,7 @@
 #
 # Copyright (c) 1994, Regents of the University of California
 #
-# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.78 2003/05/09 16:52:10 momjian Exp $
+# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.79 2003/05/10 02:05:50 momjian Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -46,7 +46,7 @@ backend_src = $(top_srcdir)/src/backend
 # For port modules, this only happens if configure decides the module
 # is needed (see filter hack in OBJS, above).
 
-getaddrinfo.c inet_aton.c snprintf.c strerror.c path.c: %.c : $(top_srcdir)/src/port/%.c
+crypt.c getaddrinfo.c inet_aton.c snprintf.c strerror.c path.c: %.c : $(top_srcdir)/src/port/%.c
        rm -f $@ && $(LN_S) $< .
 
 dllist.c: $(backend_src)/lib/dllist.c
@@ -75,5 +75,5 @@ uninstall: uninstall-lib
        rm -f $(DESTDIR)$(includedir)/libpq-fe.h $(DESTDIR)$(includedir_internal)/libpq-int.h $(includedir_internal)/pqexpbuffer.h
 
 clean distclean maintainer-clean: clean-lib
-       rm -f $(OBJS) getaddrinfo.c inet_aton.c snprintf.c strerror.c path.c
+       rm -f $(OBJS) crypt.c getaddrinfo.c inet_aton.c snprintf.c strerror.c path.c
        rm -f $(OBJS) dllist.c md5.c ip.c wchar.c encnames.c