7
7
#
8
8
#
9
9
# IDENTIFICATION
10
- # $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.63 1996/11/12 11:41:27 bryanh Exp $
10
+ # $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.64 1996/11/13 08:36:31 bryanh Exp $
11
11
#
12
12
# NOTES
13
- # This is seen by any Makefiles that include mk/postgres.mk. To
13
+ # Essentially all Postgres make files include this file and use the
14
+ # variables it sets. To
14
15
# override the default setting, create a Makefile.custom in this
15
16
# directory and put your defines there. (Makefile.custom is included
16
17
# near the end of this file.)
17
18
#
18
19
# If you change any of these defines you probably have to
19
- # gmake clean; gmake
20
- # since no dependecies are created for these. (of course you can
20
+ # make clean; make
21
+ # since no dependencies are created for these. (of course you can
21
22
# be crafty and check what files really depend on them and just remake
22
23
# those).
23
24
#
@@ -321,8 +322,15 @@ else
321
322
AROPT = crs
322
323
endif
323
324
325
+ ##############################################################################
326
+ #
327
+ # Shared libraries.
328
+ # This is overridden for many PORTNAMEs below.
329
+
330
+ SLSUFF= .so
331
+
324
332
#----------------------------------------------------------------------
325
- ifeq ($PORTNAME, BSD44_derived)
333
+ ifeq ($( PORTNAME) , BSD44_derived)
326
334
MK_PORT= BSD44_derived
327
335
328
336
# cc is gcc, but never mind about that...
@@ -335,15 +343,8 @@ RANLIB= /usr/bin/ranlib
335
343
LEX= flex
336
344
LDADD+= -L/usr/local/lib -lfl
337
345
338
- #
339
- # for postgres.user.mk
340
- #
341
346
CFLAGS_SL= -fpic -DPIC
342
347
343
- ifneq ($(HOSTTYPE), mips)
344
- SLSUFF= .so
345
- endif
346
-
347
348
%.so: %.o
348
349
$(LD) -x -r -o $<.obj $<
349
350
@echo building shared object $@
@@ -363,10 +364,6 @@ MK_PORT= aix
363
364
# might want to try installbsd instead
364
365
INSTALL= /usr/ucb/install
365
366
366
- #
367
- # for postgres.mk
368
- #
369
-
370
367
# the -lm is because "pow" is defined in libbsd.a and we want pow(3m)
371
368
LDADD_BE= -lm -lbsd
372
369
@@ -385,11 +382,7 @@ MAKE_EXPORTS= true
385
382
CFLAGS_BE+= -qchars=signed -qmaxmem=4000 -DHAVE_ANSI_CPP
386
383
387
384
388
- #
389
- # for postgres.user.mk
390
- #
391
385
EXPSUFF= .exp
392
- SLSUFF= .so
393
386
394
387
MKLDEXPORT=$(SRCDIR)/backend/port/aix/mkldexport.sh
395
388
@@ -407,9 +400,6 @@ endif
407
400
408
401
ifeq ($(PORTNAME), alpha)
409
402
MK_PORT= alpha
410
- #
411
- # for postgres.mk
412
- #
413
403
CFLAGS_BE+= -DUSE_POSIX_SIGNALS
414
404
415
405
# NOFIXADE disallows unaligned access.
@@ -427,11 +417,6 @@ endif
427
417
# use the regex library
428
418
USE_REGEX= 1
429
419
430
- #
431
- # for postgres.user.mk
432
- #
433
- SLSUFF= .so
434
-
435
420
%.so: %.o
436
421
$(LD) -shared -expect_unresolved '*' -o $@ $<
437
422
@@ -472,29 +457,17 @@ else
472
457
LDADD_BE= -ldld -lcompat
473
458
endif
474
459
475
- #
476
- # for postgres.user.mk
477
- #
478
- SLSUFF= .o
479
-
480
460
endif
481
461
482
462
#--------------------------------------------------------------------------
483
463
484
464
ifeq ($(PORTNAME), dgux)
485
465
MK_PORT= linux
486
466
487
- SLSUFF= .so
488
- #LDFLAGS+= -rdynamic
489
-
490
-
491
467
CFLAGS_SL= -fpic
492
468
%.so: %.o
493
469
$(CC) -shared -o $@ $<
494
470
495
- #
496
- # for postgres.mk
497
- #
498
471
CC= gcc
499
472
500
473
CFLAGS_BE= -D__USE_POSIX_SIGNALS -DUSE_POSIX_SIGNALS
@@ -512,9 +485,6 @@ endif
512
485
ifeq ($(PORTNAME), hpux)
513
486
MK_PORT= hpux
514
487
515
- #
516
- # for postgres.mk
517
- #
518
488
LDADD_BE= -lBSD
519
489
520
490
ifdef ENFORCE_ALIGNMENT
@@ -547,9 +517,6 @@ INSTALL= bsdinst
547
517
# RANLIB is not used on HP-UX
548
518
RANLIB= touch
549
519
550
- #
551
- # for postgres.user.mk
552
- #
553
520
CFLAGS_SL= +z
554
521
SLSUFF= .sl
555
522
@@ -569,9 +536,6 @@ MK_PORT= i386_solaris
569
536
# cc won't work!
570
537
CC= gcc
571
538
572
- #
573
- # for postgres.mk
574
- #
575
539
CFLAGS_BE+= -DUSE_POSIX_SIGNALS
576
540
577
541
# RANLIB is not used on solaris
@@ -589,17 +553,12 @@ LDADD_BE+= -lsocket -lnsl
589
553
590
554
LD_ADD+= $(LDADD_BE)
591
555
592
- #
593
- # for postgres.user.mk
594
- #
595
556
ifeq ($(CC), cc)
596
557
CFLAGS_SL= -K PIC
597
558
else
598
559
CFLAGS_SL= -fPIC
599
560
endif
600
561
601
- SLSUFF= .so
602
-
603
562
%.so: %.o
604
563
$(LD) -G -Bdynamic -o $@ $<
605
564
@@ -615,9 +574,6 @@ MK_PORT= irix5
615
574
616
575
CC= cc
617
576
618
- #
619
- # for postgres.mk
620
- #
621
577
CFLAGS_BE+= -DUSE_POSIX_SIGNALS
622
578
623
579
# RANLIB is not used on IRIX 5
@@ -637,8 +593,6 @@ CFLAGS_BE+= -DSYSV_DIRENT
637
593
638
594
LD_ADD+= $(LDADD_BE)
639
595
640
- SLSUFF= .so
641
-
642
596
%.so: %.o
643
597
$(LD) -G -Bdynamic -o $@ $<
644
598
@@ -663,17 +617,10 @@ MK_NO_LORDER= true
663
617
# use the regex library
664
618
USE_REGEX= 1
665
619
666
- #
667
- # for postgres.user.mk
668
- #
669
620
CFLAGS_SL= -fpic
670
621
%.so: %.o
671
622
$(CC) -shared -o $@ $<
672
623
673
- #
674
- # for postgres.mk
675
- #
676
-
677
624
# The Linux gnulib #defines the problem away for you and calls
678
625
# the BSD routines if you give it the right flags.
679
626
CFLAGS_BE= -D__USE_BSD -D__USE_BSD_SIGNAL
@@ -694,17 +641,12 @@ CC= gcc
694
641
INSTALL= /usr/bin/install
695
642
RANLIB= /usr/bin/ranlib
696
643
697
- #
698
- # for postgres.user.mk
699
- #
700
644
ifeq ($(CC), cc)
701
645
CFLAGS_SL= -PIC
702
646
else
703
647
CFLAGS_SL= -fPIC
704
648
endif
705
649
706
- SLSUFF= .so
707
-
708
650
%.so: %.o
709
651
$(LD) -dc -dp -Bdynamic -o $@ $<
710
652
endif
@@ -717,9 +659,6 @@ MK_PORT= sparc_solaris
717
659
# cc won't work!
718
660
CC= gcc
719
661
720
- #
721
- # for postgres.mk
722
- #
723
662
CFLAGS_BE+= -DUSE_POSIX_SIGNALS
724
663
725
664
# RANLIB is not used on solaris
@@ -737,17 +676,12 @@ LDADD_BE+= -lsocket -lnsl
737
676
738
677
LD_ADD+= $(LDADD_BE)
739
678
740
- #
741
- # for postgres.user.mk
742
- #
743
679
ifeq ($(CC), cc)
744
680
CFLAGS_SL= -K PIC
745
681
else
746
682
CFLAGS_SL= -fPIC
747
683
endif
748
684
749
- SLSUFF= .so
750
-
751
685
%.so: %.o
752
686
$(LD) -G -Bdynamic -o $@ $<
753
687
@@ -764,9 +698,6 @@ MK_PORT= svr4
764
698
CFLAGS+= -W0
765
699
YACC= bison -y
766
700
767
- #
768
- # for postgres.mk
769
- #
770
701
CFLAGS_BE+= -DUSE_POSIX_SIGNALS
771
702
772
703
# MAKE_EXPORTS is required for svr4 loaders that want a file of
@@ -789,17 +720,12 @@ LDADD_BE+= -lsocket -lnsl -lc /usr/ucblib/libucb.a
789
720
790
721
LD_ADD+= $(LDADD_BE)
791
722
792
- #
793
- # for postgres.user.mk
794
- #
795
723
ifeq ($(CC), cc)
796
724
#CFLAGS_SL= -K PIC
797
725
else
798
726
#CFLAGS_SL= -fPIC
799
727
endif
800
728
801
- SLSUFF= .so
802
-
803
729
%.so: %.o
804
730
$(LD) -G -Bdynamic -o $@ $<
805
731
@@ -812,9 +738,6 @@ endif
812
738
ifeq ($(PORTNAME), ultrix4)
813
739
MK_PORT= ultrix4
814
740
815
- #
816
- # for postgres.mk
817
- #
818
741
ifdef ENFORCE_ALIGNMENT
819
742
CFLAGS_BE= -DNOFIXADE
820
743
endif
@@ -825,9 +748,6 @@ NO_BEFOREINSTL= true
825
748
INSTALL= /usr/bin/install
826
749
RANLIB= /usr/bin/ranlib
827
750
828
- #
829
- # for postgres.user.mk
830
- #
831
751
CFLAGS_SL= -G 0
832
752
SLSUFF= .o
833
753
0 commit comments