996
+ − 1 ## Makefile for the PostgreSQL module in XEmacs.
+ − 2 ## Copyright (C) 2002 Jerry James.
+ − 3
+ − 4 ## This file is part of XEmacs.
+ − 5
+ − 6 ## XEmacs is free software; you can redistribute it and/or modify it
+ − 7 ## under the terms of the GNU General Public License as published by the
+ − 8 ## Free Software Foundation; either version 2, or (at your option) any
+ − 9 ## later version.
+ − 10
+ − 11 ## XEmacs is distributed in the hope that it will be useful, but WITHOUT
+ − 12 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ − 13 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ − 14 ## for more details.
+ − 15
+ − 16 ## You should have received a copy of the GNU General Public License
+ − 17 ## along with XEmacs; see the file COPYING. If not, write to
+ − 18 ## the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ − 19 ## Boston, MA 02111-1307, USA.
+ − 20
+ − 21 ## Synched up with: Not synched with FSF.
+ − 22
+ − 23 ## This is more complicated than would normally be the case, as this makefile
+ − 24 ## has been tailored to work both inside and independently of the XEmacs
+ − 25 ## source tree, and to support both module and non-module building inside the
+ − 26 ## source tree.
+ − 27
+ − 28 ### Specialize this part for your module
+ − 29 MODNAME=postgresql
+ − 30 MODVER=1.0.0
+ − 31 MODTITLE="PostgreSQL Client Interface for XEmacs"
+ − 32 LDFLAGS=@LDFLAGS@ @postgresql_libs@
+ − 33 SRCS=postgresql.c
+ − 34
+ − 35 ### You should not need to modify anything below this line
+ − 36 SRC_SRCS=$(SRCS:%=$(srcdir)/%)
+ − 37 OBJS=$(SRCS:.c=.o)
+ − 38
+ − 39 SHELL=/bin/sh
+ − 40 RM=rm -f
+ − 41 PROGNAME=@PROGNAME@
+ − 42 CFLAGS=@CFLAGS@
+ − 43 INSTALL=@INSTALL@
+ − 44 version=@version@
+ − 45 prefix=@prefix@
+ − 46 exec_prefix=@exec_prefix@
+ − 47 libdir=@libdir@
+ − 48 instvardir=@instvardir@
+ − 49 configuration=@configuration@
+ − 50 moduledir=@moduledir@
+ − 51 with_modules=@with_modules@
+ − 52
+ − 53 srcdir=@srcdir@
+ − 54 VPATH=@srcdir@
+ − 55
+ − 56 CC=@MOD_CC@
+ − 57 MODARCHDIR=@MODARCHDIR@
+ − 58 MAKE_DOCFILE=@MAKE_DOCFILE@
+ − 59 MODCFLAGS=@MODCFLAGS@
+ − 60 INSTALLPATH=@INSTALLPATH@
+ − 61 INSTALL_PROGRAM=@MOD_INSTALL_PROGRAM@
+ − 62 OBJECT_TO_BUILD=@OBJECT_TO_BUILD@
+ − 63
+ − 64 .PHONY: clean distclean install
+ − 65 all: $(OBJECT_TO_BUILD)
+ − 66
+ − 67 .c.o:
+ − 68 $(CC) $(MODCFLAGS) -c $<
+ − 69
+ − 70 $(MODNAME).ell: $(OBJS) $(MODNAME)_i.o
+ − 71 $(CC) --mode=link --mod-output=$@ $^ $(LDFLAGS)
+ − 72
+ − 73 $(MODNAME)_i.c: $(SRCS)
+ − 74 ELLMAKEDOC=$(MAKE_DOCFILE) $(CC) --mode=init --mod-output=$@ \
+ − 75 --mod-name=$(MODNAME) --mod-version=$(MODVER) \
+ − 76 --mod-title=$(MODTITLE) $(SRC_SRCS)
+ − 77
+ − 78 clean:
+ − 79 $(RM) $(MODNAME).ell $(OBJS) $(MODNAME)_i.* *~
+ − 80
+ − 81 distclean: clean
+ − 82 $(RM) Makefile config.* configure
+ − 83
+ − 84 install: $(OBJECT_TO_BUILD)
+ − 85 $(INSTALL_PROGRAM) $< $(INSTALLPATH)