77#
88#
99# IDENTIFICATION
10- # $Header: /cvsroot/pgsql/src/bin/psql/Attic/Makefile.in,v 1.18 1999/11/26 04:24:16 momjian Exp $
10+ # $Header: /cvsroot/pgsql/src/bin/psql/Attic/Makefile.in,v 1.19 1999/11/27 19:43:20 tgl Exp $
1111#
1212# -------------------------------------------------------------------------
1313
@@ -29,38 +29,50 @@ CFLAGS+= $(MBFLAGS)
2929endif
3030
3131OBJS =command.o common.o help.o input.o stringutils.o mainloop.o \
32- copy.o startup.o prompt.o variables.o large_obj.o print.o describe.o \
33- tab-complete.o @STRDUP@ @STRERROR2@ @SNPRINTF@
32+ copy.o startup.o prompt.o variables.o large_obj.o print.o describe.o \
33+ tab-complete.o
3434
3535all : submake psql
3636
37- # Move this to the utils directory
37+ ifneq (@STRDUP@,)
38+ OBJS+ =$(SRCDIR ) /utils/strdup.o
39+
40+ $(SRCDIR ) /utils/strdup.o :
41+ $(MAKE ) -C $(SRCDIR ) /utils strdup.o
42+ endif
43+
44+ # Move these to the utils directory?
45+
46+ ifneq (@STRERROR@,)
47+ OBJS+ =$(SRCDIR ) /backend/port/strerror.o
48+
49+ $(SRCDIR ) /backend/port/strerror.o :
50+ $(MAKE ) -C $(SRCDIR ) /backend/port strerror.o
51+ endif
52+
3853ifneq (@SNPRINTF@,)
39- OBJS+ =../.. /backend/port/snprintf.o
54+ OBJS+ =$( SRCDIR ) /backend/port/snprintf.o
4055
41- ../.. /backend/port/snprintf.o :
42- $(MAKE ) -C ../.. /backend/port snprintf.o
56+ $( SRCDIR ) /backend/port/snprintf.o :
57+ $(MAKE ) -C $( SRCDIR ) /backend/port snprintf.o
4358endif
4459
60+ # End of hacks for picking up backend 'port' modules
61+
4562psql : $(OBJS ) $(LIBPQDIR ) /libpq.a
4663 $(CC ) -o psql -L$(LIBPQDIR ) $(OBJS ) -lpq $(LDFLAGS )
4764
48- ../../utils/strdup.o :
49- $(MAKE ) -C ../../utils strdup.o
50-
51- OBJS :
52- $(CC ) $(CFLAGS ) -c $< -o $@
53-
5465help.o : sql_help.h
5566
5667ifneq ($(strip $(PERL ) ) ,)
57- sql_help.h : $(wildcard ../.. /../doc/src/sgml/ref/* .sgml) create_help.pl
68+ sql_help.h : $(wildcard $( SRCDIR ) /../doc/src/sgml/ref/* .sgml) create_help.pl
5869 $(PERL ) create_help.pl sql_help.h
5970else
6071sql_help.h :
6172endif
6273
6374.PHONY : submake
75+
6476submake :
6577 $(MAKE ) -C $(LIBPQDIR ) libpq.a
6678
0 commit comments