mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
30 lines
531 B
Makefile
30 lines
531 B
Makefile
|
|
POSTSRC= /home/postgres/postgres95/src
|
|
|
|
include $(POSTSRC)/Makefile.global
|
|
include $(POSTSRC)/Makefile.custom
|
|
|
|
CFLAGS= $(CFLAGS_SL) -Wall -Wmissing-prototypes -I$(POSTSRC)/include
|
|
|
|
%.so: %.o
|
|
$(LD) -x -r -o $<.obj $<
|
|
@echo building shared object $@
|
|
@rm -f $@.pic
|
|
@${AR} cq $@.pic `lorder $<.obj | tsort`
|
|
${RANLIB} $@.pic
|
|
@rm -f $@
|
|
$(LD) -x -Bshareable -Bforcearchive \
|
|
-o $@ $@.pic
|
|
|
|
#
|
|
# build dynamically-loaded object file
|
|
#
|
|
DLOBJS= multikey.so
|
|
objdir= ./
|
|
|
|
CLEANFILES+= $(DLOBJS)
|
|
|
|
all:: $(DLOBJS)
|
|
|
|
$(DLOBJS): multikey.c
|