]> granicus.if.org Git - postgresql/blob - src/interfaces/Makefile
Ok, I've split todays commit into three, the first two already done had some
[postgresql] / 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.44 2001/03/05 09:39:52 peter Exp $
8 #
9 #-------------------------------------------------------------------------
10
11 subdir = src/interfaces
12 top_builddir = ../..
13 include $(top_builddir)/src/Makefile.global
14
15 DIRS := libpq ecpg libpgeasy
16
17 ALLDIRS := $(DIRS) odbc libpq++ libpgtcl perl5 python jdbc
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 ($(with_tcl), yes)
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 ifeq ($(with_java), yes)
40 DIRS += jdbc
41 endif
42
43
44 all install installdirs uninstall dep depend distprep:
45         @for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit; done
46
47 clean:
48         @for dir in $(DIRS); do $(MAKE) -C $$dir $@; done
49
50 distclean maintainer-clean: clean
51         @for dir in $(ALLDIRS); do $(MAKE) -C $$dir $@; done