head	1.2;
access
	werner
	shectman;
symbols;
locks; strict;
comment	@# @;


1.2
date	91.03.08.13.22.19;	author kemnitz;	state Exp;
branches;
next	;


desc
@Initial Ported Version
@


1.2
log
@checked in with -k by werner at 1992/01/09 16:56:50
@
text
@# Makefile for pgperl.
# $Header: RCS/Makefile,v 1.2 91/03/08 13:22:19 kemnitz Exp $
# Thu Aug 23 15:00:05 1990  Igor Metz <metz@@iam.unibe.ch>

# PERLDIR is the directory, where your uperl.o and all perl header file live
PERLDIR = ..

# GLOBINCS defines include paths, where your Postgres header files live
GLOBINCS = -I../../pg -I/usr/postgres/PERLDIR/lib/H

# LIBS defines, where your libpq.a lives
LIBS = -L/usr/postgres/obj.sparc -lpq

DISTFILES = README Makefile pg-mus usersub.c pg-libpq.mus testlibpq.pl

CC=cc
CFLAGS = -g -I$(PERLDIR) $(GLOBINCS)
#CC=gcc
#CFLAGS = -traditional -fpcc-struct-return -g -I$(PERLDIR) $(GLOBINCS)

all: pgperl

pgperl: $(PERLDIR)/uperl.o usersub.o pg-libpq.o
	$(CC) -g $(PERLDIR)/uperl.o usersub.o libpq.o $(LIBS) -o pgperl

pg-libpq.c: pg-libpq.mus
	pg-mus pg-libpq.mus > pg-libpq.c

usersub.o: usersub.c
pg-libpq.o: pg-libpq.c

clean:
	rm usersub.o pg-libpq.o pg-libpq.c

dist:
	shar $(DISTFILES) > dist.shar
@
