home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre4.z / postgre4 / src / contrib / pgperl / Makefile next >
Encoding:
Makefile  |  1992-08-27  |  1.0 KB  |  38 lines

  1. # Makefile for pgperl.
  2. # $Header: /private/postgres/src/contrib/pgperl/RCS/Makefile,v 1.4 1992/02/15 20:35:03 mer Exp $
  3. # Thu Aug 23 15:00:05 1990  Igor Metz <metz@iam.unibe.ch>
  4. # touched up to work with my configuration under postgres3.1 and perl4.x
  5.  
  6. # PERLDIR is the directory, where your uperl.o and all perl header file live
  7. PERLDIR = ..
  8.  
  9. # GLOBINCS defines include paths, where your Postgres header files live
  10. GLOBINCS = -I../../pg -I/usr/postgres/src/lib/H
  11.  
  12. # LIBS defines, where your libpq.a lives
  13. LIBS = -L/usr/postgres/obj.sparc -lpq -lm
  14.  
  15. DISTFILES = README Makefile pg-mus usersub.c pg-libpq.mus testlibpq.pl
  16.  
  17. CC=cc
  18. CFLAGS = -g -I$(PERLDIR) $(GLOBINCS)
  19. #CC=gcc
  20. #CFLAGS = -traditional -fpcc-struct-return -g -I$(PERLDIR) $(GLOBINCS)
  21.  
  22. all: pgperl
  23.  
  24. pgperl: $(PERLDIR)/uperl.o usersub.o pg-libpq.o
  25.     $(CC) -g $(PERLDIR)/uperl.o usersub.o pg-libpq.o $(LIBS) -o pgperl 
  26.  
  27. pg-libpq.c: pg-libpq.mus
  28.     pg-mus pg-libpq.mus > pg-libpq.c
  29.  
  30. usersub.o: usersub.c
  31. pg-libpq.o: pg-libpq.c
  32.  
  33. clean:
  34.     rm usersub.o pg-libpq.o pg-libpq.c
  35.  
  36. dist:
  37.     shar $(DISTFILES) > dist.shar
  38.