File tree Expand file tree Collapse file tree 16 files changed +47
-43
lines changed Expand file tree Collapse file tree 16 files changed +47
-43
lines changed Original file line number Diff line number Diff line change 1
1
#
2
- # $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/Makefile,v 1.7 2000/10/20 21:03:25 petere Exp $
2
+ # $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/Makefile,v 1.8 2000/11/30 20:36:09 petere Exp $
3
3
#
4
4
5
5
subdir = contrib/pg_dumplo
@@ -12,7 +12,7 @@ override CPPFLAGS += -I$(libpq_srcdir)
12
12
all : pg_dumplo
13
13
14
14
pg_dumplo : $(OBJS ) $(libpq_builddir ) /libpq.a
15
- $(CC ) -o $@ $(OBJS ) $(libpq ) $(CFLAGS ) $( LDFLAGS )
15
+ $(CC ) $( CFLAGS ) $( LDFLAGS ) $(OBJS ) $(libpq ) $(LIBS ) -o $@
16
16
17
17
install : all installdirs
18
18
$(INSTALL_PROGRAM ) pg_dumplo$(X ) $(bindir )
Original file line number Diff line number Diff line change 1
1
# -*-makefile-*-
2
- # $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.113 2000/11/20 16:52:54 petere Exp $
2
+ # $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.114 2000/11/30 20:36:10 petere Exp $
3
3
4
4
# ------------------------------------------------------------------------------
5
5
# All PostgreSQL makefiles include this file and use the variables it sets,
@@ -166,7 +166,7 @@ LIBS = @LIBS@
166
166
LD = @LD@
167
167
with_gnu_ld = @with_gnu_ld@
168
168
ld_R_works = @ld_R_works@
169
- LDFLAGS = @LDFLAGS@ $( LIBS )
169
+ LDFLAGS = @LDFLAGS@
170
170
LDREL = -r
171
171
LDOUT = -o
172
172
RANLIB = @RANLIB@
Original file line number Diff line number Diff line change 6
6
# Copyright (c) 1998, Regents of the University of California
7
7
#
8
8
# IDENTIFICATION
9
- # $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.35 2000/11/14 21:11:59 petere Exp $
9
+ # $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.36 2000/11/30 20:36:10 petere Exp $
10
10
#
11
11
#-------------------------------------------------------------------------
12
12
@@ -221,7 +221,7 @@ ifeq ($(PORTNAME), beos)
221
221
endif
222
222
223
223
# Pull in any extra -L options that the user might have specified.
224
- SHLIB_LINK := $(filter -L%, $(LDFLAGS )) $(SHLIB_LINK)
224
+ SHLIB_LINK := $(filter -L%, $(LIBS )) $(SHLIB_LINK)
225
225
226
226
ifeq ($(enable_rpath), yes)
227
227
SHLIB_LINK += $(rpath)
@@ -262,7 +262,7 @@ ifneq ($(PORTNAME), aix)
262
262
263
263
# Normal case
264
264
$(shlib): $(OBJS)
265
- $(LINK.shared) -o $@ $ (OBJS) $(SHLIB_LINK)
265
+ $(LINK.shared) $ (OBJS) $(SHLIB_LINK) -o $@
266
266
# If we're using major and minor versions, then make a symlink to major-version-only.
267
267
ifneq ($(shlib), lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION))
268
268
rm -f lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
Original file line number Diff line number Diff line change 4
4
#
5
5
# Copyright (c) 1994, Regents of the University of California
6
6
#
7
- # $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.67 2000/10/20 21:03:39 petere Exp $
7
+ # $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.68 2000/11/30 20:36:10 petere Exp $
8
8
#
9
9
# -------------------------------------------------------------------------
10
10
@@ -37,7 +37,7 @@ all: postgres $(POSTGRES_IMP)
37
37
ifneq ($(PORTNAME ) , win)
38
38
39
39
postgres : $(OBJS )
40
- $(CC ) $(CFLAGS ) -o $@ $^ $(LDFLAGS ) $( export_dynamic )
40
+ $(CC ) $(CFLAGS ) $( LDFLAGS ) $( export_dynamic ) $^ $(LIBS ) -o $@
41
41
42
42
else # win
43
43
@@ -80,7 +80,7 @@ $(top_builddir)/src/utils/dllinit.o: $(top_srcdir)/src/utils/dllinit.c
80
80
# The postgres.o target is needed by the rule in Makefile.global that
81
81
# creates the exports file when MAKE_EXPORTS = true.
82
82
postgres.o : $(OBJS )
83
- $(CC ) $(LDREL ) $(LDOUT ) $@ $ ^ $(LDFLAGS )
83
+ $(CC ) $(LDREL ) $(LDFLAGS ) $^ $(LIBS ) -o $@
84
84
85
85
86
86
# The following targets are specified in make commands that appear in
@@ -193,7 +193,7 @@ maintainer-clean: distclean
193
193
# are up to date. It saves the time of doing all the submakes.
194
194
.PHONY : quick
195
195
quick : $(OBJS )
196
- $(CC ) -o postgres $( OBJS ) $(LDFLAGS ) $(export_dynamic )
196
+ $(CC ) $( CFLAGS ) $(LDFLAGS ) $(export_dynamic ) $^ $( LIBS ) -o postgres
197
197
198
198
depend dep : $(top_srcdir ) /src/include/parser/parse.h $(top_builddir ) /src/include/utils/fmgroids.h
199
199
for i in $( DIRS) ; do $( MAKE) -C $$ i $@ ; done
Original file line number Diff line number Diff line change 4
4
# Makefile for regex
5
5
#
6
6
# IDENTIFICATION
7
- # $Header: /cvsroot/pgsql/src/backend/regex/Makefile,v 1.15 2000/10/20 21:03:46 petere Exp $
7
+ # $Header: /cvsroot/pgsql/src/backend/regex/Makefile,v 1.16 2000/11/30 20:36:10 petere Exp $
8
8
#
9
9
# -------------------------------------------------------------------------
10
10
@@ -28,7 +28,7 @@ SUBSYS.o: $(OBJS)
28
28
$(LD ) $(LDREL ) $(LDOUT ) SUBSYS.o $(OBJS )
29
29
30
30
retest : retest.o SUBSYS.o $(DEBUGOBJ )
31
- $(CC ) -o $@ $^ $(CFLAGS ) $( LDFLAGS )
31
+ $(CC ) $( CFLAGS ) $( LDFLAGS ) $^ $(LIBS ) -o $@
32
32
33
33
depend dep :
34
34
$(CC ) -MM $(CFLAGS ) * .c > depend
Original file line number Diff line number Diff line change 4
4
# Makefile for utils/mb
5
5
#
6
6
# IDENTIFICATION
7
- # $Header: /cvsroot/pgsql/src/backend/utils/mb/Makefile,v 1.14 2000/10 /30 10:40:28 ishii Exp $
7
+ # $Header: /cvsroot/pgsql/src/backend/utils/mb/Makefile,v 1.15 2000/11 /30 20:36:11 petere Exp $
8
8
#
9
9
# -------------------------------------------------------------------------
10
10
@@ -22,13 +22,13 @@ SUBSYS.o: $(OBJS)
22
22
utftest.o : utftest.c conv.c wchar.c mbutils.c
23
23
24
24
sjistest : sjistest.o palloc.o common.o mbutils.o wchar.o wstrcmp.o wstrncmp.o big5.o
25
- $(CC ) -o $@ $^ $(CFLAGS ) $( LDFLAGS )
25
+ $(CC ) $( CFLAGS ) $( LDFLAGS ) $^ $(LIBS ) -o $@
26
26
27
27
liketest : liketest.o palloc.o $(OBJS )
28
- $(CC ) -o $@ $^ $(CFLAGS ) $( LDFLAGS )
28
+ $(CC ) $( CFLAGS ) $( LDFLAGS ) $^ $(LIBS ) -o $@
29
29
30
30
utftest : utftest.o palloc.o common.o wstrcmp.o wstrncmp.o big5.o
31
- $(CC ) -o $@ $^ $(CFLAGS ) $( LDFLAGS )
31
+ $(CC ) $( CFLAGS ) $( LDFLAGS ) $^ $(LIBS ) -o $@
32
32
33
33
depend dep :
34
34
$(CC ) -MM $(CFLAGS ) * .c > depend
Original file line number Diff line number Diff line change 4
4
#
5
5
# Copyright (c) 1994, Regents of the University of California
6
6
#
7
- # $Header: /cvsroot/pgsql/src/bin/pg_dump/Makefile,v 1.26 2000/10/20 21:03:56 petere Exp $
7
+ # $Header: /cvsroot/pgsql/src/bin/pg_dump/Makefile,v 1.27 2000/11/30 20:36:11 petere Exp $
8
8
#
9
9
# -------------------------------------------------------------------------
10
10
@@ -20,10 +20,10 @@ override CPPFLAGS+= -I$(libpq_srcdir)
20
20
all : submake pg_dump pg_restore pg_dumpall
21
21
22
22
pg_dump : pg_dump.o common.o $(OBJS ) $(libpq_builddir ) /libpq.a
23
- $(CC ) $(CFLAGS ) -o $@ pg_dump.o common.o $(OBJS ) $(libpq ) $(LDFLAGS )
23
+ $(CC ) $(CFLAGS ) $( LDFLAGS ) pg_dump.o common.o $(OBJS ) $(libpq ) $(LIBS ) -o $@
24
24
25
25
pg_restore : pg_restore.o $(OBJS ) $(libpq_builddir ) /libpq.a
26
- $(CC ) $(CFLAGS ) -o $@ pg_restore.o $(OBJS ) $(libpq ) $(LDFLAGS )
26
+ $(CC ) $(CFLAGS ) $( LDFLAGS ) pg_restore.o $(OBJS ) $(libpq ) $(LIBS ) -o $@
27
27
28
28
../../utils/strdup.o :
29
29
$(MAKE ) -C ../../utils strdup.o
Original file line number Diff line number Diff line change 4
4
#
5
5
# Copyright (c) 1998, PostgreSQL Global Development Group
6
6
#
7
- # $Header: /cvsroot/pgsql/src/bin/pg_encoding/Attic/Makefile,v 1.11 2000/09/17 13:02:37 petere Exp $
7
+ # $Header: /cvsroot/pgsql/src/bin/pg_encoding/Attic/Makefile,v 1.12 2000/11/30 20:36:11 petere Exp $
8
8
#
9
9
# -------------------------------------------------------------------------
10
10
@@ -14,10 +14,10 @@ include $(top_builddir)/src/Makefile.global
14
14
15
15
OBJS = pg_encoding.o
16
16
17
- all : submake pg_encoding$( X )
17
+ all : submake pg_encoding
18
18
19
- pg_encoding$( X ) : $(OBJS )
20
- $(CC ) -o $@ $(OBJS ) $(libpq ) $(LDFLAGS ) $( CFLAGS )
19
+ pg_encoding : $(OBJS )
20
+ $(CC ) $( CFLAGS ) $(LDFLAGS ) $^ $ (libpq ) $(LIBS ) -o $@
21
21
22
22
.PHONY : submake
23
23
Original file line number Diff line number Diff line change 4
4
#
5
5
# Copyright (C) 2000 by PostgreSQL Global Development Team
6
6
#
7
- # $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/Makefile,v 1.19 2000/09/17 13:02:39 petere Exp $
7
+ # $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/Makefile,v 1.20 2000/11/30 20:36:11 petere Exp $
8
8
#
9
9
# -------------------------------------------------------------------------
10
10
11
11
subdir = src/bin/pg_id
12
12
top_builddir = ../../..
13
13
include $(top_builddir ) /src/Makefile.global
14
14
15
- all : pg_id$( X )
15
+ all : pg_id
16
16
17
- pg_id$( X ) : pg_id.o
18
- $(CC ) -o $@ $^ $(LDFLAGS )
17
+ pg_id : pg_id.o
18
+ $(CC ) $( CFLAGS ) $( LDFLAGS ) $^ $(LIBS ) -o $@
19
19
20
20
install : all installdirs
21
21
$(INSTALL_PROGRAM ) pg_id$(X ) $(DESTDIR )$(bindir ) /pg_id$(X )
Original file line number Diff line number Diff line change 1
- # $Header: /cvsroot/pgsql/src/bin/pg_passwd/Attic/Makefile,v 1.12 2000/11/18 19:00:23 petere Exp $
1
+ # $Header: /cvsroot/pgsql/src/bin/pg_passwd/Attic/Makefile,v 1.13 2000/11/30 20:36:12 petere Exp $
2
2
3
3
subdir = src/bin/pg_passwd
4
4
top_builddir = ../../..
5
5
include $(top_builddir ) /src/Makefile.global
6
6
7
7
all : pg_passwd
8
8
9
+ pg_passwd : pg_passwd.o
10
+ $(CC ) $(CFLAGS ) $(LDFLAGS ) $^ $(LIBS ) -o $@
11
+
9
12
install : all installdirs
10
13
$(INSTALL_PROGRAM ) pg_passwd$(X ) $(DESTDIR )$(bindir ) /pg_passwd$(X )
11
14
You can’t perform that action at this time.
0 commit comments