OSDN Git Service

clean up the bin/*/Makefiles...up version.h to v6.1 instead of v6.0
[pg-rex/syncrep.git] / src / bin / psql / Makefile.in
1 #-------------------------------------------------------------------------
2 #
3 # Makefile.inc--
4 #    Makefile for bin/psql
5 #
6 # Copyright (c) 1994, Regents of the University of California
7 #
8 #
9 # IDENTIFICATION
10 #    $Header: /cvsroot/pgsql/src/bin/psql/Attic/Makefile.in,v 1.5 1997/04/26 05:06:40 scrappy Exp $
11 #
12 #-------------------------------------------------------------------------
13
14 SRCDIR= ../..
15 include ../../Makefile.global
16
17 CFLAGS+= -I$(LIBPQDIR)
18
19 OBJS= psql.o stringutils.o @STRDUP@ 
20
21 all: submake psql
22
23 psql: $(OBJS) $(LIBPQDIR)/libpq.a
24         $(CC) -o psql -L$(LIBPQDIR) $(OBJS) -lpq $(LDFLAGS)
25
26 ../../utils/strdup.o:
27         $(MAKE) -C ../../utils strdup.o
28
29 .PHONY: submake
30 submake:
31         $(MAKE) -C $(LIBPQDIR) libpq.a
32
33 install: psql
34         $(INSTALL) $(INSTL_EXE_OPTS) psql $(DESTDIR)$(BINDIR)/psql
35
36 depend dep:
37         $(CC) -MM $(INCLUDE_OPT) *.c >depend
38
39 clean: 
40         rm -f psql $(OBJS) 
41
42 ifeq (depend,$(wildcard depend))
43 include depend
44 endif
45
46
47