comparison src/postgresql.mk @ 656:73ebc5c43231

build a native pg_config in package postgresql
author Volker Grabsch <vog@notjusthosting.com>
date Fri, 22 Jan 2010 02:54:38 +0100
parents dab071eac9c0
children 29f1ba4559ae
comparison
equal deleted inserted replaced
655:563b1e2827ce 656:73ebc5c43231
54 $(MAKE) -C '$(1)'/src/interfaces/libpq -j '$(JOBS)' install haslibarule= shlib= 54 $(MAKE) -C '$(1)'/src/interfaces/libpq -j '$(JOBS)' install haslibarule= shlib=
55 $(MAKE) -C '$(1)'/src/port -j '$(JOBS)' haslibarule= shlib= 55 $(MAKE) -C '$(1)'/src/port -j '$(JOBS)' haslibarule= shlib=
56 $(MAKE) -C '$(1)'/src/bin/psql -j '$(JOBS)' install haslibarule= shlib= 56 $(MAKE) -C '$(1)'/src/bin/psql -j '$(JOBS)' install haslibarule= shlib=
57 $(INSTALL) -m664 '$(1)/src/include/pg_config.h' '$(PREFIX)/$(TARGET)/include/' 57 $(INSTALL) -m664 '$(1)/src/include/pg_config.h' '$(PREFIX)/$(TARGET)/include/'
58 $(INSTALL) -m664 '$(1)/src/include/postgres_ext.h' '$(PREFIX)/$(TARGET)/include/' 58 $(INSTALL) -m664 '$(1)/src/include/postgres_ext.h' '$(PREFIX)/$(TARGET)/include/'
59 # Build a native pg_config.
60 echo '/* empty */' >'$(1)'/src/include/pg_config_os.h
61 gcc \
62 -I'$(1)'/src/include \
63 -DFRONTEND \
64 '$(1)'/src/port/snprintf.c \
65 '$(1)'/src/port/path.c \
66 '$(1)'/src/port/strlcat.c \
67 '$(1)'/src/port/strlcpy.c \
68 '$(1)'/src/port/thread.c \
69 '$(1)'/src/port/exec.c \
70 '$(1)'/src/bin/pg_config/pg_config.c \
71 -o '$(PREFIX)/$(TARGET)'/bin/pg_config
59 endef 72 endef