mirror of https://github.com/postgres/postgres
parent
47df6e7e2d
commit
5777dca4f8
@ -1,22 +1,25 @@ |
|||||||
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Makefile
|
# Makefile for src/tools/fsync
|
||||||
#
|
#
|
||||||
|
# Copyright (c) 2003-2006, PostgreSQL Global Development Group
|
||||||
#
|
#
|
||||||
TARGET = test_fsync
|
# $PostgreSQL: pgsql/src/tools/fsync/Makefile,v 1.3 2006/10/13 14:19:29 momjian Exp $
|
||||||
XFLAGS =
|
#
|
||||||
CFLAGS = -O
|
#-------------------------------------------------------------------------
|
||||||
LIBS =
|
|
||||||
|
subdir = src/tools/fsync
|
||||||
|
top_builddir = ../../..
|
||||||
|
include $(top_builddir)/src/Makefile.global |
||||||
|
|
||||||
|
override CPPFLAGS := -DFRONTEND -I$(libpq_srcdir) $(CPPFLAGS) |
||||||
|
|
||||||
$(TARGET) : test_fsync.o |
OBJS= test_fsync.o
|
||||||
$(CC) -o $(TARGET) $(XFLAGS) $(CFLAGS) test_fsync.o $(LIBS)
|
|
||||||
|
|
||||||
test_fsync.o : test_fsync.c |
all: submake-libpq submake-libpgport test_fsync |
||||||
$(CC) -c $(XFLAGS) $(CFLAGS) test_fsync.c
|
|
||||||
|
|
||||||
clean: |
test_fsync: test_fsync.o $(libpq_builddir)/libpq.a |
||||||
rm -f *.o $(TARGET) log core
|
$(CC) $(CFLAGS) test_fsync.o $(libpq_pgport) $(LDFLAGS) $(LIBS) -o $@$(X)
|
||||||
|
|
||||||
install: |
clean distclean maintainer-clean: |
||||||
make clean
|
rm -f test_fsync$(X) $(OBJS)
|
||||||
make CFLAGS=-O
|
|
||||||
install -s -o bin -g bin $(TARGET) /usr/local/bin
|
|
||||||
|
Loading…
Reference in new issue