aboutsummaryrefslogtreecommitdiff
path: root/src/mk/port/postgres.mk.sparc
blob: 2b9cd788a0467b0fb114db81c64c540c48ee2e4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#-------------------------------------------------------------------------
#
# postgres.mk.sparc--
#    SUN SPARC/SunOS 4.x specific rules and variables
#
# Copyright (c) 1994-5, Regents of the University of California
#
#    $Id: postgres.mk.sparc,v 1.1.1.1 1996/07/09 06:22:20 scrappy Exp $
#
#-------------------------------------------------------------------------
ifndef MK_PORT
MK_PORT=	sparc

# cc won't work!
CC=		gcc

# the ar on SunOs is dumb, can't use the s option
AROPT=          cq

INSTALL=	/usr/bin/install
RANLIB=		/usr/bin/ranlib

#
# for postgres.user.mk
#
ifeq ($(CC), cc)
CFLAGS_SL=	-PIC
else
CFLAGS_SL=	-fPIC
endif

SLSUFF=		.so

%.so: %.o
	$(LD) -dc -dp -Bdynamic -o $(objdir)/$(@F) $(objdir)/$(<F)


endif