mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Make sure -L and -I's for our source tree are always before system include
or library directories on the command line.
This commit is contained in:
@ -1,19 +1,22 @@
|
||||
#
|
||||
# $Header: /cvsroot/pgsql/contrib/findoidjoins/Attic/Makefile,v 1.11 2000/12/04 01:32:18 tgl Exp $
|
||||
# $Header: /cvsroot/pgsql/contrib/findoidjoins/Attic/Makefile,v 1.12 2001/02/20 19:20:27 petere Exp $
|
||||
#
|
||||
|
||||
subdir = contrib/findoidjoins
|
||||
top_builddir = ../..
|
||||
include $(top_builddir)/src/Makefile.global
|
||||
|
||||
override CPPFLAGS += -I$(libpgeasy_srcdir) -I$(libpq_srcdir)
|
||||
libpgeasy_srcdir = $(top_srcdir)/src/interfaces/libpgeasy
|
||||
libpgeasy_builddir = $(top_builddir)/src/interfaces/libpgeasy
|
||||
|
||||
override CPPFLAGS := -I$(libpgeasy_srcdir) -I$(libpq_srcdir) $(CPPFLAGS)
|
||||
|
||||
OBJS = findoidjoins.o
|
||||
|
||||
all: findoidjoins
|
||||
|
||||
findoidjoins: $(OBJS) $(libpgeasy_builddir)/libpgeasy.a $(libpq_builddir)/libpq.a
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(libpgeasy) $(libpq) $(LIBS) -o $@
|
||||
$(CC) $(CFLAGS) $(OBJS) -L$(libpgeasy_builddir) -lpgeasy $(libpq) $(LDFLAGS) $(LIBS) -o $@
|
||||
|
||||
install: all installdirs
|
||||
$(INSTALL_PROGRAM) findoidjoins$(X) $(bindir)
|
||||
|
Reference in New Issue
Block a user