1996-11-11 14:51:57 +01:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
2000-07-02 17:21:27 +02:00
|
|
|
# Makefile for utils
|
1996-11-11 14:51:57 +01:00
|
|
|
#
|
2000-07-02 17:21:27 +02:00
|
|
|
# $Header: /cvsroot/pgsql/src/utils/Attic/Makefile,v 1.8 2000/07/02 15:21:27 petere Exp $
|
1996-11-26 08:39:11 +01:00
|
|
|
#
|
|
|
|
# About strdup: Some systems have strdup in their standard library, others
|
|
|
|
# don't. Ones that don't will use this make file to compile the strdup.c
|
|
|
|
# in this directory. (You don't see strdup mentioned because the implicit
|
|
|
|
# rule does the job). We don't make strdup.o unless asked to explicitly
|
|
|
|
# because the strdup.c in this directory may conflict with the strdup()
|
|
|
|
# prototype from the system library and cause a compile error.
|
1996-11-11 14:51:57 +01:00
|
|
|
#
|
2000-02-27 02:18:46 +01:00
|
|
|
# getopt.o is likewise built only on request.
|
|
|
|
#
|
|
|
|
# dllinit.o is only built on Win32 platform.
|
|
|
|
#
|
1996-11-11 14:51:57 +01:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
2000-07-02 17:21:27 +02:00
|
|
|
subdir = src/utils
|
|
|
|
top_builddir = ../..
|
|
|
|
include ../Makefile.global
|
1996-11-11 14:51:57 +01:00
|
|
|
|
2000-07-02 17:21:27 +02:00
|
|
|
all:
|
1996-11-11 14:51:57 +01:00
|
|
|
|
2000-07-02 17:21:27 +02:00
|
|
|
clean distclean maintainer-clean:
|
|
|
|
rm -f dllinit.o getopt.o strdup.o
|
1996-11-11 17:30:07 +01:00
|
|
|
|
1996-11-11 14:51:57 +01:00
|
|
|
depend dep:
|
1998-04-06 02:32:26 +02:00
|
|
|
$(CC) $(CFLAGS) -MM *.c >depend
|
1996-11-11 14:51:57 +01:00
|
|
|
|
|
|
|
ifeq (depend,$(wildcard depend))
|
|
|
|
include depend
|
|
|
|
endif
|