]> granicus.if.org Git - postgresql/blob - src/makefiles/Makefile.aix
Fix HAVE_OPTRESET to be HAVE_INT_OPTRESET. Typos spotted by Lorne Sunley.
[postgresql] / src / makefiles / Makefile.aix
1 # MAKE_EXPORTS is required for svr4 loaders that want a file of
2 # symbol names to tell them what to export/import.
3 MAKE_EXPORTS= true
4
5 RANLIB= touch
6 MK_NO_LORDER= true
7 AROPT = crs
8
9 DLSUFFIX = .so
10 ifeq ($(host_os), aix3.2.5)
11 ifneq ($(GCC), yes)
12         LDFLAGS_SL = -e _nostart -H512 -bM:SRE
13 endif
14 else
15         LDFLAGS_SL = -Wl,-bnoentry -Wl,-H512 -Wl,-bM:SRE
16 endif
17
18
19 EXPSUFF= .exp
20 IMPSUFF= .imp
21
22 POSTGRES_IMP= postgres$(IMPSUFF)
23
24 MKLDEXPORT=$(top_srcdir)/src/backend/port/aix/mkldexport.sh
25
26 %$(EXPSUFF): %.o
27         $(MKLDEXPORT) $*.o > $*$(EXPSUFF)
28
29 %$(DLSUFFIX): %.o %$(EXPSUFF)
30         @echo Making shared library $@ from $*.o, $*$(EXPSUFF) and postgres.imp
31         $(CC) $(LDFLAGS) $(LDFLAGS_SL) -o $@ $*.o -Wl,-bI:$(top_builddir)/src/backend/$(POSTGRES_IMP) -Wl,-bE:$*$(EXPSUFF) $(LIBS)
32
33 sqlmansect = 7