Makefile.aix 712 Bytes
Newer Older
1 2 3 4
# MAKE_EXPORTS is required for svr4 loaders that want a file of
# symbol names to tell them what to export/import.
MAKE_EXPORTS= true

5 6 7
RANLIB= touch
MK_NO_LORDER= true

8
EXPSUFF= .exp
9
IMPSUFF= .imp
10

11
POSTGRES_IMP= postgres$(IMPSUFF)
12 13 14

MKLDEXPORT=$(SRCDIR)/backend/port/aix/mkldexport.sh

15 16 17 18
$(POSTGRES_IMP):
	@echo Making $@
	$(MKLDEXPORT) postgres $(BINDIR) > $@
	$(CC) -bE:$(SRCDIR)/backend/$@ -o postgres $(OBJS) ../utils/version.o $(LDFLAGS)
19

20 21
%$(EXPSUFF):
	$(MKLDEXPORT) $*.o `pwd` > $*$(EXPSUFF)
22

Bruce Momjian's avatar
Bruce Momjian committed
23
%$(DLSUFFIX): %.o %$(EXPSUFF)
24
	@echo Making share library $@ from $*.o, $*$(EXPSUFF), and installed postgres.imp
Bruce Momjian's avatar
Bruce Momjian committed
25
	$(LD) -H512 -bM:SRE -bI:$(LIBDIR)/$(POSTGRES_IMP) -bE:$*$(EXPSUFF) -o $@ $*.o $(LDFLAGS) $(CFLAGS_SL)