OSDN Git Service

Makefile cleanup for interface tree. Now essentially with all the
[pg-rex/syncrep.git] / src / interfaces / Makefile
1 #-------------------------------------------------------------------------
2 #
3 # Makefile for src/interfaces
4 #
5 # Copyright (c) 1994, Regents of the University of California
6 #
7 # $Header: /cvsroot/pgsql/src/interfaces/Makefile,v 1.40 2000/06/28 18:29:35 petere Exp $
8 #
9 #-------------------------------------------------------------------------
10
11 subdir = src/interfaces
12 top_builddir = ../..
13 include ../Makefile.global
14
15 DIRS := libpq ecpg libpgeasy
16
17 ALLDIRS := $(DIRS) odbc libpq++ libpgtcl perl5 python
18
19 ifeq ($(enable_odbc), yes)
20 DIRS += odbc
21 endif
22
23 ifeq ($(with_CXX), yes)
24 DIRS += libpq++
25 endif
26
27 ifeq ($(USE_TCL), true)
28 DIRS += libpgtcl
29 endif
30
31 ifeq ($(with_perl), yes)
32 DIRS += perl5
33 endif
34
35 ifeq ($(with_python), yes)
36 DIRS += python
37 endif
38
39
40 all install installdirs uninstall dep depend:
41         @for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit 1; done
42
43 clean:
44         @for dir in $(DIRS); do $(MAKE) -C $$dir $@; done
45
46 distclean maintainer-clean: clean
47         @for dir in $(ALLDIRS); do $(MAKE) -C $$dir $@; done