7
7
#
8
8
#
9
9
# 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 $
11
11
#
12
12
# -------------------------------------------------------------------------
13
13
@@ -29,38 +29,50 @@ CFLAGS+= $(MBFLAGS)
29
29
endif
30
30
31
31
OBJS =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
34
34
35
35
all : submake psql
36
36
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
+
38
53
ifneq (@SNPRINTF@,)
39
- OBJS+ =../.. /backend/port/snprintf.o
54
+ OBJS+ =$( SRCDIR ) /backend/port/snprintf.o
40
55
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
43
58
endif
44
59
60
+ # End of hacks for picking up backend 'port' modules
61
+
45
62
psql : $(OBJS ) $(LIBPQDIR ) /libpq.a
46
63
$(CC ) -o psql -L$(LIBPQDIR ) $(OBJS ) -lpq $(LDFLAGS )
47
64
48
- ../../utils/strdup.o :
49
- $(MAKE ) -C ../../utils strdup.o
50
-
51
- OBJS :
52
- $(CC ) $(CFLAGS ) -c $< -o $@
53
-
54
65
help.o : sql_help.h
55
66
56
67
ifneq ($(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
58
69
$(PERL ) create_help.pl sql_help.h
59
70
else
60
71
sql_help.h :
61
72
endif
62
73
63
74
.PHONY : submake
75
+
64
76
submake :
65
77
$(MAKE ) -C $(LIBPQDIR ) libpq.a
66
78
0 commit comments