mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-08 07:27:37 +08:00
+ Thu Apr 23 09:27:16 CEST 1998 + + - Also allow call in whenever statement with the same functionality + as do. + + Thu Apr 23 12:29:28 CEST 1998 + + - Also rewrote variable declaration part. It is now possible to + declare more than one variable per line. + - Set version to 2.1.0 + + Fri Apr 24 13:50:15 CEST 1998 + + - Fixed some bugs. + - Set version to 2.1.1
80 lines
2.0 KiB
Makefile
80 lines
2.0 KiB
Makefile
SRCDIR= ../../..
|
|
include $(SRCDIR)/Makefile.global
|
|
|
|
PQ_INCLUDE=-I$(SRCDIR)/interfaces/libpq
|
|
|
|
SO_MAJOR_VERSION=2
|
|
SO_MINOR_VERSION=0
|
|
|
|
PORTNAME=@PORTNAME@
|
|
|
|
ifdef KRBVERS
|
|
CFLAGS+= $(KRBFLAGS)
|
|
endif
|
|
|
|
# Shared library stuff
|
|
shlib :=
|
|
install-shlib-dep :=
|
|
ifeq ($(PORTNAME), linux)
|
|
LINUX_ELF=@LINUX_ELF@
|
|
ifdef LINUX_ELF
|
|
install-shlib-dep := install-shlib
|
|
shlib := libecpg.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
|
|
LDFLAGS_SL = -shared -soname libecpg.so.$(SO_MAJOR_VERSION)
|
|
endif
|
|
endif
|
|
ifeq ($(PORTNAME), bsd)
|
|
ifdef BSD_SHLIB
|
|
install-shlib-dep := install-shlib
|
|
shlib := libecpg.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
|
|
LDFLAGS_SL = -x -Bshareable -Bforcearchive
|
|
CFLAGS += $(CFLAGS_SL)
|
|
endif
|
|
endif
|
|
#ifeq ($(PORTNAME), i386_solaris)
|
|
# install-shlib-dep := install-shlib
|
|
# shlib := libecpg.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
|
|
# LDFLAGS_SL = -G -z text
|
|
# CFLAGS += $(CFLAGS_SL)
|
|
#endif
|
|
ifeq ($(PORTNAME), univel)
|
|
install-shlib-dep := install-shlib
|
|
shlib := libecpg.so.1
|
|
LDFLAGS_SL = -G -z text
|
|
CFLAGS += $(CFLAGS_SL)
|
|
endif
|
|
|
|
all: libecpg.a $(shlib)
|
|
|
|
$(shlib): ecpglib.sho typename.sho
|
|
$(LD) $(LDFLAGS_SL) -o $@ ecpglib.sho typename.sho
|
|
ln -sf $@ libecpg.so
|
|
|
|
clean:
|
|
rm -f *.o *.sho *.a core a.out *~ $(shlib) libecpg.so
|
|
|
|
dep depend:
|
|
|
|
install: libecpg.a $(shlib) $(install-shlib-dep)
|
|
$(INSTALL) $(INSTLOPTS) libecpg.a $(LIBDIR)
|
|
|
|
install-shlib:
|
|
$(INSTALL) $(INSTLOPTS) $(shlib) $(LIBDIR)
|
|
ln -sf $(shlib) $(LIBDIR)/libecpg.so
|
|
|
|
uninstall::
|
|
rm -f $(LIBDIR)/libecpg.a $(LIBDIR)/$(shlib)
|
|
|
|
# Rules that do something
|
|
libecpg.a : libecpg.a(ecpglib.o) libecpg.a(typename.o)
|
|
|
|
ecpglib.o : ecpglib.c ../include/ecpglib.h ../include/ecpgtype.h
|
|
$(CC) $(CFLAGS) -I../include $(PQ_INCLUDE) -c $< -o $@
|
|
typename.o : typename.c ../include/ecpgtype.h
|
|
$(CC) $(CFLAGS) -I../include $(PQ_INCLUDE) -c $< -o $@
|
|
|
|
ecpglib.sho : ecpglib.c ../include/ecpglib.h ../include/ecpgtype.h
|
|
$(CC) $(CFLAGS) $(CFLAGS_SL) -I../include $(PQ_INCLUDE) -c $< -o $@
|
|
typename.sho : typename.c ../include/ecpgtype.h
|
|
$(CC) $(CFLAGS) $(CFLAGS_SL) -I../include $(PQ_INCLUDE) -c $< -o $@
|