File tree 1 file changed +11
-6
lines changed
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 4
4
# Makefile for utils
5
5
#
6
6
# IDENTIFICATION
7
- # $Header: /cvsroot/pgsql/src/utils/Attic/Makefile,v 1.6 1999/01/17 06:20:03 momjian Exp $
7
+ # $Header: /cvsroot/pgsql/src/utils/Attic/Makefile,v 1.7 2000/02/27 01:18:46 tgl Exp $
8
8
#
9
9
# About strdup: Some systems have strdup in their standard library, others
10
10
# don't. Ones that don't will use this make file to compile the strdup.c
13
13
# because the strdup.c in this directory may conflict with the strdup()
14
14
# prototype from the system library and cause a compile error.
15
15
#
16
+ # getopt.o is likewise built only on request.
17
+ #
18
+ # dllinit.o is only built on Win32 platform.
19
+ #
16
20
# -------------------------------------------------------------------------
17
21
18
22
SRCDIR = ..
19
- include .. /Makefile.global
23
+ include $( SRCDIR ) /Makefile.global
20
24
21
25
all : version.o
22
26
@@ -26,10 +30,11 @@ depend dep:
26
30
$(CC ) $(CFLAGS ) -MM * .c > depend
27
31
28
32
clean :
29
- rm -f version.o
30
- ifeq ($(PORTNAME ) , win)
31
- rm -f dllinit.o
32
- endif
33
+ rm -f dllinit.o getopt.o strdup.o version.o
34
+
35
+ # Make sure version.o has proper dependency on version.h,
36
+ # even if we didn't do make depend.
37
+ version.o : version.c $(SRCDIR ) /include/version.h
33
38
34
39
ifeq (depend,$(wildcard depend) )
35
40
include depend
You can’t perform that action at this time.
0 commit comments