]> granicus.if.org Git - postgresql/commitdiff
Add provisions for using strdup replacement in the places that still
authorPeter Eisentraut <peter_e@gmx.net>
Sat, 12 May 2001 19:49:48 +0000 (19:49 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 12 May 2001 19:49:48 +0000 (19:49 +0000)
needed it.

from our fearless Ultrix porter, Alexander Klimov <ask@wisdom.weizmann.ac.il>

src/bin/pg_passwd/Makefile
src/interfaces/ecpg/preproc/Makefile

index e14690c06012eb1abd7d377289313c6d00b7fb27..f6f4acd01184663692ec167fbd543f4967a5ba91 100644 (file)
@@ -1,14 +1,22 @@
-# $Header: /cvsroot/pgsql/src/bin/pg_passwd/Attic/Makefile,v 1.13 2000/11/30 20:36:12 petere Exp $
+# $Header: /cvsroot/pgsql/src/bin/pg_passwd/Attic/Makefile,v 1.14 2001/05/12 19:49:47 petere Exp $
 
 subdir = src/bin/pg_passwd
 top_builddir = ../../..
 include $(top_builddir)/src/Makefile.global
 
+OBJS = pg_passwd.o
+ifdef STRDUP
+OBJS += $(top_builddir)/src/utils/strdup.o
+endif
+
 all: pg_passwd
 
-pg_passwd: pg_passwd.o
+pg_passwd: $(OBJS)
        $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@
 
+$(top_builddir)/src/utils/strdup.o:
+       $(MAKE) -C $(top_builddir)/src/utils strdup.o
+
 install: all installdirs
        $(INSTALL_PROGRAM) pg_passwd$(X) $(DESTDIR)$(bindir)/pg_passwd$(X)
 
index 46a47c63bc39d3bde588571e309f6ea4006967a9..e869987a2ddea2e0cfe1ff4a21f3918de4316ff9 100644 (file)
@@ -1,4 +1,4 @@
-# $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Makefile,v 1.75 2001/05/11 01:46:33 momjian Exp $
+# $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Makefile,v 1.76 2001/05/12 19:49:48 petere Exp $
 
 subdir = src/interfaces/ecpg/preproc
 top_builddir = ../../../..
@@ -25,6 +25,12 @@ $(top_builddir)/src/backend/port/snprintf.o:
        $(MAKE) -C $(top_builddir)/src/backend/port snprintf.o
 endif
 
+ifdef STRDUP
+OBJS+=$(top_builddir)/src/utils/strdup.o
+
+$(top_builddir)/src/utils/strdup.o:
+       $(MAKE) -C $(top_builddir)/src/utils strdup.o
+endif
 
 ecpg: $(OBJS)
        $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@