mirror of
https://github.com/postgres/postgres.git
synced 2025-05-01 01:04:50 +03:00
Clean up dependencies for version.o.
This commit is contained in:
parent
01eea27c4c
commit
22a9537ff3
@ -4,7 +4,7 @@
|
|||||||
# Makefile for utils
|
# Makefile for utils
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $Header: /cvsroot/pgsql/src/utils/Attic/Makefile,v 1.6 1999/01/17 06:20:03 momjian Exp $
|
# $Header: /cvsroot/pgsql/src/utils/Attic/Makefile,v 1.7 2000/02/27 01:18:46 tgl Exp $
|
||||||
#
|
#
|
||||||
# About strdup: Some systems have strdup in their standard library, others
|
# 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
|
# don't. Ones that don't will use this make file to compile the strdup.c
|
||||||
@ -13,10 +13,14 @@
|
|||||||
# because the strdup.c in this directory may conflict with the strdup()
|
# because the strdup.c in this directory may conflict with the strdup()
|
||||||
# prototype from the system library and cause a compile error.
|
# prototype from the system library and cause a compile error.
|
||||||
#
|
#
|
||||||
|
# getopt.o is likewise built only on request.
|
||||||
|
#
|
||||||
|
# dllinit.o is only built on Win32 platform.
|
||||||
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
SRCDIR = ..
|
SRCDIR = ..
|
||||||
include ../Makefile.global
|
include $(SRCDIR)/Makefile.global
|
||||||
|
|
||||||
all: version.o
|
all: version.o
|
||||||
|
|
||||||
@ -26,10 +30,11 @@ depend dep:
|
|||||||
$(CC) $(CFLAGS) -MM *.c >depend
|
$(CC) $(CFLAGS) -MM *.c >depend
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f version.o
|
rm -f dllinit.o getopt.o strdup.o version.o
|
||||||
ifeq ($(PORTNAME), win)
|
|
||||||
rm -f dllinit.o
|
# Make sure version.o has proper dependency on version.h,
|
||||||
endif
|
# even if we didn't do make depend.
|
||||||
|
version.o: version.c $(SRCDIR)/include/version.h
|
||||||
|
|
||||||
ifeq (depend,$(wildcard depend))
|
ifeq (depend,$(wildcard depend))
|
||||||
include depend
|
include depend
|
||||||
|
Loading…
x
Reference in New Issue
Block a user