]> granicus.if.org Git - postgresql/blob - src/makefiles/Makefile.netbsd
Install the SQL command man pages into a section appropriate for each
[postgresql] / src / makefiles / Makefile.netbsd
1 AROPT = cr
2
3 ifdef ELF_SYSTEM
4 export_dynamic = -Wl,-E
5 rpath = -Wl,-R$(libdir)
6 shlib_symbolic = -Wl,-Bsymbolic -lc
7 else
8 rpath = -R$(libdir)
9 endif
10
11 DLSUFFIX = .so
12 CFLAGS_SL = -fpic -DPIC
13
14 %.so: %.o
15 ifdef ELF_SYSTEM
16         $(LD) -x -Bshareable -o $@ $<
17 else
18         $(LD) $(LDREL) $(LDOUT) $<.obj -x $<
19         @echo building shared object $@
20         @rm -f $@.pic
21         @${AR} cq $@.pic `lorder $<.obj | tsort`
22         ${RANLIB} $@.pic
23         @rm -f $@
24         $(LD) -x -Bshareable -Bforcearchive \
25           -o $@ $@.pic
26 endif
27
28 sqlmansect = 7