File: Makefile.am

package info (click to toggle)
pgadmin3 1.20.0~beta2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 73,704 kB
  • ctags: 18,591
  • sloc: cpp: 193,786; ansic: 18,736; sh: 5,154; pascal: 1,120; yacc: 927; makefile: 516; lex: 421; xml: 126; perl: 40
file content (132 lines) | stat: -rw-r--r-- 2,886 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
#######################################################################
#
# pgAdmin III - PostgreSQL Tools
# 
# Copyright (C) 2002 - 2014, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
# Makefile.am - Makefile for *nix systems
#
#######################################################################


AUTOMAKE_OPTIONS = subdir-objects

bin_PROGRAMS = pgadmin3

pgadmin3_SOURCES = \
	pgAdmin3.cpp

EXTRA_DIST = \
	Makefile.deps \
	pgAdmin3.vcxproj \
	pgAdmin3.vcxproj.filters \
	precomp.cpp \
	pgAdmin3.rc \
	ver_svn.bat \
	ver_svn.sh

# Make sure we always have these dependencies, even if dependency tracking
# is turend off.  The leading dash keeps automake from trying to process this.
-include $(top_srcdir)/pgadmin/Makefile.deps

TMP_ui =

# Include all the sub-Makefiles
include agent/module.mk
include ctl/module.mk
include db/module.mk
include dd/module.mk
include debugger/module.mk
include dlg/module.mk
include frm/module.mk
include include/module.mk
include ogl/module.mk
include pgscript/module.mk
include schema/module.mk
include slony/module.mk
include gqb/module.mk
include hotdraw/module.mk
include ui/module.mk
include utils/module.mk
include libssh2/module.mk

if SUN_CC
  __CFLAGS=""
else
  __CFLAGS=-Wall
endif

if SUN_CXX
  __CXXFLAGS=""
else
  __CXXFLAGS=-Wall -Wno-non-virtual-dtor -fno-strict-aliasing
endif

if EDB_LIBPQ
  __EDB_LIBPQ=-DEDB_LIBPQ
else
  __EDB_LIBPQ=
endif

if !APPBUNDLE

nobase_dist_pkgdata_DATA = \
	$(srcdir)/settings.ini


if BUILD_DEBUG
nobase_dist_pkgdata_DATA += \
	$(TMP_ui)
endif

if BUILD_SSH_TUNNEL
AM_CPPFLAGS = -DDATA_DIR=\"$(pkgdatadir)/\" -I$(top_srcdir)/pgadmin/include -I$(top_srcdir)/pgadmin/include/libssh2 $(__CPPFLAGS) $(__EDB_LIBPQ)
else
AM_CPPFLAGS = -DDATA_DIR=\"$(pkgdatadir)/\" -I$(top_srcdir)/pgadmin/include $(__CPPFLAGS) $(__EDB_LIBPQ)
endif

# Automake trys to execute install-exec-hook if it appears anywhere in the file, so we need a dummy
# for non-APPBUNDLE cases.
install-exec-hook:

else

nobase_dist_data_DATA = \
	$(srcdir)/settings.ini

if BUILD_DEBUG
nobase_dist_data_DATA += \
	$(TMP_ui)
endif

if BUILD_SSH_TUNNEL
AM_CPPFLAGS = -I$(top_srcdir)/pgadmin/include -I$(top_srcdir)/pgadmin/include/libssh2 $(__CPPFLAGS) $(__EDB_LIBPQ)
else
AM_CPPFLAGS = -I$(top_srcdir)/pgadmin/include $(__CPPFLAGS) $(__EDB_LIBPQ)
endif

install-exec-hook:
	cd $(bindir) ;\
	mv pgadmin3 tmp ;\
	mv tmp pgAdmin3 ;\
	if test "$(BUILD_DEBUG)" = "no"; then \
	    strip pgAdmin3 ;\
	fi

endif

# Convert images to an embeddable format
BUILT_SOURCES = $(patsubst %.png,%.pngc,$(wildcard $(top_srcdir)/pgadmin/include/images/*.png))

$(top_builddir)/xtra/png2c/png2c:
	(cd $(top_builddir)/xtra/png2c && $(MAKE) $(AM_MAKEFLAGS) png2c)

$(BUILT_SOURCES): $(top_builddir)/xtra/png2c/png2c

%.pngc: %.png
	$(top_builddir)/xtra/png2c/png2c $< $@

clean-local:
	rm -f include/images/*.pngc