1#********************************************************************
2# $Author: jgoerzen $
3# $Revision: 1.3 $
4# $Date: 2002/01/11 15:55:59 $
5# $Source: /home/jgoerzen/tmp/gopher-umn/gopher/head/gophfilt/Makefile.in,v $
6# $State: Exp $
7#
8# Paul Lindner, University of Minnesota CIS.
9#
10# Copyright 1991, 1992 by the Regents of the University of Minnesota
11# see the file "Copyright" in the distribution for conditions of use.
12#********************************************************************
13# MODULE: Makefile
14# Makefile for gopher filter client
15#*********************************************************************
16# Revision History:
17# $Log: Makefile.in,v $
18# Revision 1.3  2002/01/11 15:55:59  jgoerzen
19#   * Using $(INSTALL) from subdirectories broke on systems
20#     where install-sh was used because $(INSTALL) would always
21#     resolve to ./install-sh.  Replaced all instances of
22#     $(INSTALL) with @INSTALL@ (autoconf would provide the correct
23#     path) and removed INSTALL from Makefile.config.  Reported
24#     by Don Fike <fike@cs.utk.edu> on Solaris 2.6.
25#   * Updated our copy of install-sh with the one from
26#     a current automake.
27#
28# Revision 1.2  2002/01/08 17:36:14  jgoerzen
29# Finally builds!
30#
31# Changes:
32#
33#   * config.h.in: rebuilt by autoheader
34#
35#   * configure: rebuilt by autoconf
36#
37#   * configure.in:
38#     * Added REGEXLIBS test for NetBSD -- look for re_comp in -lcompat
39#     * Added checkes for term.h, re_comp.h, regex.h
40#
41#   * gopher/ourutils.c, gopher/CURcurses.c: Use term.h check
42#
43#   * gopher/Makefile.in, gopherd/Makefile.in, gophfilt/Makefile.in:
44#     * Use REGEXLIBS
45#
46#   * gopher/globals.h, gopher/gopher.c: Remove sys_errlist
47#
48#   * object/GSgopherobj.c: Removed <regex.h> #include, now use
49#     "Regex.h" that has proper regex determining logic
50#
51#   * object/Regex.h: Moved regex.h include to here.  Make it conditional
52#     based on configure test.  Add conditional re_comp.h include.
53#
54# Revision 1.1.1.1  2000/08/19 00:28:56  jgoerzen
55# Import from UMN Gopher 2.3.1 after GPLization
56#
57# Revision 1.1  1996/01/06  00:33:31  lindner
58# rel 2.3
59#
60#********************************************************************/
61
62srcdir = @srcdir@
63top_srcdir = @top_srcdir@
64VPATH = @srcdir@
65
66include ../Makefile.config
67
68OBJS	= gophfilt.o
69
70CCFLAGS	= $(OPT) $(INTLOPTS) -I.. -I$(top_srcdir) -I$(top_srcdir)/object
71
72TARGET	= gophfilt
73
74all:	$(TARGET)
75
76.c.o:
77	$(CC) $(CCFLAGS) -c $<
78
79../object/libgopher.a:
80	(cd ..; $(MAKE) $(MFLAGS) objects)
81
82$(TARGET) : $(OBJS) ../object/libgopher.a
83	$(CC) $(LDFLAGS) -o $@ $(OBJS) ../object/libgopher.a @REGEXLIBS@ @LIBS@
84
85install : all
86	-mv $(CLIENTDIR)/$(TARGET) $(CLIENTDIR)/$(TARGET).old
87	@INSTALL@ $(TARGET) $(CLIENTDIR)
88
89clean:
90	-rm -f $(TARGET) $(OBJS) *.out *~ core
91
92$(OBJS): $(srcdir)/../object/GSgopherobj.h $(srcdir)/../conf.h
93