2002-07-18 06:13:59 +02:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Makefile--
|
|
|
|
# Makefile for the port-specific subsystem of the backend
|
|
|
|
#
|
|
|
|
# These files are used in other directories for portability on systems
|
|
|
|
# with broken/missing library files.
|
|
|
|
|
|
|
|
# IDENTIFICATION
|
2004-05-17 16:35:34 +02:00
|
|
|
# $PostgreSQL: pgsql/src/port/Makefile,v 1.11 2004/05/17 14:35:34 momjian Exp $
|
2002-07-18 06:13:59 +02:00
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
subdir = src/port
|
|
|
|
top_builddir = ../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
|
2004-05-17 16:35:34 +02:00
|
|
|
override CPPFLAGS += -DPGBINDIR=\"$(bindir)\" \
|
|
|
|
-DPGDATADIR=\"$(datadir)\" \
|
|
|
|
-DSYSCONFDIR='"$(sysconfdir)"' \
|
|
|
|
-DINCLUDEDIR=\"$(includedir)\" \
|
|
|
|
-DPKGINCLUDEDIR=\"$(pkgincludedir)\" \
|
|
|
|
-DPKGLIBDIR=\"$(pkglibdir)\"
|
|
|
|
|
2002-07-27 22:10:05 +02:00
|
|
|
ifdef LIBOBJS
|
|
|
|
all: libpgport.a
|
|
|
|
endif
|
2002-07-18 06:13:59 +02:00
|
|
|
|
2002-07-27 22:10:05 +02:00
|
|
|
libpgport.a: $(LIBOBJS)
|
2003-10-24 22:31:43 +02:00
|
|
|
$(AR) $(AROPT) $@ $^
|
2002-07-27 22:10:05 +02:00
|
|
|
|
2003-06-14 16:35:42 +02:00
|
|
|
thread.o: thread.c
|
2004-04-23 20:15:55 +02:00
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) $(PTHREAD_CFLAGS) -c $<
|
2003-06-14 16:35:42 +02:00
|
|
|
|
2002-07-27 22:10:05 +02:00
|
|
|
clean distclean maintainer-clean:
|
|
|
|
rm -f libpgport.a $(LIBOBJS)
|