#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.71 1996/11/18 02:23:16 bryanh Exp $
+# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.72 1996/11/18 06:07:12 momjian Exp $
#
# NOTES
# Essentially all Postgres make files include this file and use the
# Shared libraries.
# This is overridden for many PORTNAMEs below.
-SLSUFF= .so
+DLSUFFIX= .so
#----------------------------------------------------------------------
ifeq ($(PORTNAME), BSD44_derived)
RANLIB= touch
CFLAGS_SL= +z
-SLSUFF= .sl
+DLSUFFIX= .sl
%.sl: %.o
$(LD) -b -o $@ $<
ifeq ($(PORTNAME), linux)
ifndef LINUX_ELF
-SLSUFF= .o
+DLSUFFIX= .o
LDADD_BE= -ldld
else
-SLSUFF= .so
+DLSUFFIX= .so
LDADD_BE= -ldl
LDFLAGS_BE= -rdynamic
endif
RANLIB= /usr/bin/ranlib
CFLAGS_SL= -G 0
-SLSUFF= .o
+DLSUFFIX= .o
endif
# values. This is a feeble attempt to provide "portable" scripts.
# _CWD_ - current working directory
# _OBJWD_ - where the generated files (eg. object files) are
-# _SLSUFF_ - suffix of the shared library or object for
-# dynamic loading
+# _DLSUFFIX_ - suffix of the dynamic loading
# _USER_ - the login of the user
#
# Copyright (c) 1994-5, Regents of the University of California
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/mk/Attic/postgres.user.mk,v 1.1.1.1 1996/07/09 06:22:19 scrappy Exp $
+# $Header: /cvsroot/pgsql/src/mk/Attic/postgres.user.mk,v 1.2 1996/11/18 06:07:23 momjian Exp $
#
#-------------------------------------------------------------------------
C=`pwd`; \
sed -e "s:_CWD_:$$C:g" \
-e "s:_OBJWD_:$$C/$(objdir):g" \
- -e "s:_SLSUFF_:$(SLSUFF):g" \
+ -e "s:_DLSUFFIX_:$(DLSUFFIX):g" \
-e "s/_USER_/$$USER/g" < $*.source > $(objdir)/$*.sql
#How to create a dynamic lib
C="`pwd`/"; \
sed -e "s:_CWD_:$$C:g" \
-e "s:_OBJWD_:$$C/$(objdir):g" \
- -e "s:_SLSUFF_:$(SLSUFF):g" \
+ -e "s:_DLSUFFIX_:$(DLSUFFIX):g" \
-e "s/_USER_/$$USER/g" < $*.source > $(objdir)/$*.sh
#
#
# plus shared libraries
#
-ifdef SLSUFF
-ifneq ($(SLSUFF), '.o')
-CREATEFILES+= $(DLOBJS:.so=$(SLSUFF))
+ifdef DLSUFFIX
+ifneq ($(DLSUFFIX), '.o')
+CREATEFILES+= $(DLOBJS:.so=$(DLSUFFIX))
endif
endif
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/test/regress/Makefile,v 1.9 1996/11/13 10:36:17 bryanh Exp $
+# $Header: /cvsroot/pgsql/src/test/regress/Makefile,v 1.10 1996/11/18 06:07:29 momjian Exp $
#
#-------------------------------------------------------------------------
# DLOBJS is the dynamically-loaded object file. The regression test uses
# this when it does a CREATE FUNCTION ... LANGUAGE 'C').
#
-DLOBJS= regress$(SLSUFF)
+DLOBJS= regress$(DLSUFFIX)
#
# ... plus test query inputs
C="`pwd`"; \
sed -e "s:_CWD_:$$C:g" \
-e "s:_OBJWD_:$$C:g" \
- -e "s:_SLSUFF_:$(SLSUFF):g" \
+ -e "s:_DLSUFFIX_:$(DLSUFFIX):g" \
-e "s/_USER_/$$USER/g" < expected.input > expected.out
@echo "YOUR EXPECTED RESULTS ARE NOW IN FILE expected.out."
C=`pwd`; \
sed -e "s:_CWD_:$$C:g" \
-e "s:_OBJWD_:$$C:g" \
- -e "s:_SLSUFF_:$(SLSUFF):g" \
+ -e "s:_DLSUFFIX_:$(DLSUFFIX):g" \
-e "s/_USER_/$$USER/g" < $< > $@
clean:
CREATE FUNCTION circle_in(opaque)
RETURNS circle
- AS '_OBJWD_/regress_SLSUFF_'
+ AS '_OBJWD_/regress_DLSUFFIX_'
LANGUAGE 'c';
CREATE FUNCTION circle_out(opaque)
RETURNS opaque
- AS '_OBJWD_/regress_SLSUFF_'
+ AS '_OBJWD_/regress_DLSUFFIX_'
LANGUAGE 'c';
CREATE TYPE circle (
CREATE FUNCTION pt_in_circle(point, circle)
RETURNS int4
- AS '_OBJWD_/regress_SLSUFF_'
+ AS '_OBJWD_/regress_DLSUFFIX_'
LANGUAGE 'c';
CREATE FUNCTION overpaid(emp)
RETURNS bool
- AS '_OBJWD_/regress_SLSUFF_'
+ AS '_OBJWD_/regress_DLSUFFIX_'
LANGUAGE 'c';
CREATE FUNCTION boxarea(box)
RETURNS int4
- AS '_OBJWD_/regress_SLSUFF_'
+ AS '_OBJWD_/regress_DLSUFFIX_'
LANGUAGE 'c';
CREATE FUNCTION interpt_pp(path, path)
RETURNS point
- AS '_OBJWD_/regress_SLSUFF_'
+ AS '_OBJWD_/regress_DLSUFFIX_'
LANGUAGE 'c';
CREATE FUNCTION reverse_c16(char16)
RETURNS char16
- AS '_OBJWD_/regress_SLSUFF_'
+ AS '_OBJWD_/regress_DLSUFFIX_'
LANGUAGE 'c';
--
-- FUNCTION DYNAMIC LOADING
--
-LOAD '_OBJWD_/regress_SLSUFF_'
+LOAD '_OBJWD_/regress_DLSUFFIX_'
--
-- CLASS POPULATION
=============== creating new regression database... =================
QUERY: CREATE FUNCTION circle_in(opaque)
RETURNS circle
- AS '_CWD_/obj/regress_SLSUFF_'
+ AS '_CWD_/obj/regress_DLSUFFIX_'
LANGUAGE 'c';
NOTICE:ProcedureCreate: type 'circle' is not yet defined
QUERY: CREATE FUNCTION circle_out(opaque)
RETURNS opaque
- AS '_CWD_/obj/regress_SLSUFF_'
+ AS '_CWD_/obj/regress_DLSUFFIX_'
LANGUAGE 'c';
QUERY: CREATE TYPE circle (
internallength = 24,
LANGUAGE 'sql';
QUERY: CREATE FUNCTION pt_in_circle(point, circle)
RETURNS int4
- AS '_CWD_/obj/regress_SLSUFF_'
+ AS '_CWD_/obj/regress_DLSUFFIX_'
LANGUAGE 'c';
QUERY: CREATE FUNCTION overpaid(emp)
RETURNS bool
- AS '_CWD_/obj/regress_SLSUFF_'
+ AS '_CWD_/obj/regress_DLSUFFIX_'
LANGUAGE 'c';
QUERY: CREATE FUNCTION boxarea(box)
RETURNS int4
- AS '_CWD_/obj/regress_SLSUFF_'
+ AS '_CWD_/obj/regress_DLSUFFIX_'
LANGUAGE 'c';
QUERY: CREATE FUNCTION interpt_pp(path, path)
RETURNS point
- AS '_CWD_/obj/regress_SLSUFF_'
+ AS '_CWD_/obj/regress_DLSUFFIX_'
LANGUAGE 'c';
QUERY: CREATE FUNCTION reverse_c16(char16)
RETURNS char16
- AS '_CWD_/obj/regress_SLSUFF_'
+ AS '_CWD_/obj/regress_DLSUFFIX_'
LANGUAGE 'c';
-QUERY: LOAD '_CWD_/obj/regress_SLSUFF_'
+QUERY: LOAD '_CWD_/obj/regress_DLSUFFIX_'
COPY onek FROM '_CWD_/data/onek.data';
QUERY: COPY tenk1 FROM '_CWD_/data/tenk.data';
QUERY: INSERT INTO tenk2 VALUES (tenk1.*);
CFLAGS+= -I../../include -I$(LIBPQDIR)
-all: complex$(SLSUFF) funcs$(SLSUFF)
+all: complex$(DLSUFFIX) funcs$(DLSUFFIX)
clean:
- rm -f complex$(SLSUFF) funcs$(SLSUFF)
\ No newline at end of file
+ rm -f complex$(DLSUFFIX) funcs$(DLSUFFIX)
+
# Makefile for tutorial
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/tutorial/Makefile,v 1.3 1996/11/13 10:36:24 bryanh Exp $
+# $Header: /cvsroot/pgsql/src/tutorial/Makefile,v 1.4 1996/11/18 06:07:52 momjian Exp $
#
#-------------------------------------------------------------------------
# DLOBJS is the dynamically-loaded object files. The "funcs" queries
# include CREATE FUNCTIONs that load routines from these files.
#
-DLOBJS= complex$(SLSUFF) funcs$(SLSUFF)
+DLOBJS= complex$(DLSUFFIX) funcs$(DLSUFFIX)
QUERIES= advanced.sql basics.sql complex.sql funcs.sql syscat.sql
#
C=`pwd`; \
sed -e "s:_CWD_:$$C:g" \
-e "s:_OBJWD_:$$C:g" \
- -e "s:_SLSUFF_:$(SLSUFF):g" \
+ -e "s:_DLSUFFIX_:$(DLSUFFIX):g" \
-e "s/_USER_/$$USER/g" < $< > $@
funcs.sql:: $(DLOBJS)