Debian Codegraph @

rx/Makefile.in

raw
1 # Makefile for librx
2 # Copyright (C) 1994 Free Software Foundation, Inc.
3 #
4 # This file is part of GNU Rx
5 #
6 # GNU Rx is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
9 # any later version.
10 #
11 # GNU Rx is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with GNU Rx; see the file COPYING.LIB. If not, write to
18 # the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
20
21 SHELL = /bin/sh
22
23 srcdir = @srcdir@
24 VPATH = @srcdir@
25 prefix = @prefix@
26 exec_prefix = @exec_prefix@
27 bindir = $(exec_prefix)/bin
28 libdir = $(exec_prefix)/lib
29 includedir = $(prefix)/include
30 infodir = $(prefix)/info
31
32 #### Start of system configuration section. ####
33
34 CC = @CC@
35 INSTALL = @INSTALL@
36 DEFS = @DEFS@
37 CFLAGS = @CFLAGS@
38 ALL_CFLAGS = @opt_cflags@ -I. -I$(srcdir) -I$(srcdir)/../libsystas $(CFLAGS)
39 AR = ar
40 AR_FLAGS = rc
41 RANLIB = @RANLIB@
42 opt_objs=@opt_objs@
43
44 source= hashrexp.c rx.c rxanal.c rxbasic.c rxbitset.c rxcset.c rxdbug.c rxgnucomp.c rxhash.c rxnfa.c rxnode.c rxposix.c rxsimp.c rxspencer.c rxstr.c rxsuper.c rxunfa.c rgx.c
45
46 headers=_rx.h rx.h rxanal.h rxbasic.h rxbitset.h rxcontext.h rxcset.h rxgnucomp.h rxhash.h rxnfa.h rxnode.h inst-rxposix.h rxposix.h rxproto.h rxsimp.h rxspencer.h rxstr.h rxsuper.h rxunfa.h rxall.h
47
48 ancillery=configure.in Makefile.in configure \
49 COPYING.LIB ChangeLog PLUGIN \
50 ../doc/rx.texi ../doc/rx.info ../doc/texinfo.tex
51 distfiles=$(source) $(headers) $(ancillery)
52 libobjs= hashrexp.o rx.o rxanal.o rxbasic.o rxbitset.o rxcset.o rxdbug.o rxgnucomp.o rxhash.o rxnfa.o rxnode.o rxposix.o rxsimp.o rxspencer.o rxstr.o rxsuper.o rxunfa.o
53 gen_c_files=rgx.x
54
55 .SUFFIXES:
56 .SUFFIXES: .o .c .h .ps .dvi .info .texinfo .scm .cd .x
57
58 .c.x:
59 $(CC) $(ALL_CFLAGS) -DSCM_MAGIC_SNARFER -E $< | grep "^%%%" | sed -e "s/^%%%//" > $@ ; \
60
61 .c.o:
62 $(CC) -c $(ALL_CFLAGS) $(DEFS) -I$(srcdir) $<
63
64 all: librx.a
65
66 install: all
67 test -d $(libdir) || mkdir $(libdir)
68 test -d $(includedir) || mkdir $(includedir)
69 $(INSTALL) librx.a $(libdir)/librx.a
70 $(RANLIB) $(libdir)/librx.a
71 $(INSTALL) $(srcdir)/inst-rxposix.h $(includedir)/rxposix.h
72
73
74 uninstall:
75 -rm -f $(libdir)/librx.a
76 -rm -f $(includedir)/rxposix.h
77
78 clean:
79 -rm -f $(libobjs) librx.a $(opt_objs)
80
81 distclean: clean
82 -rm Makefile config.status config.log rgx.x
83
84 mostlyclean: clean
85
86 realclean: distclean
87
88 TAGS:
89 etags $(source)
90
91 info:
92
93 install-info:
94
95 clean-info:
96
97 dvi:
98
99 check:
100
101 SUBDIR=.
102 manifest:
103 for file in $(distfiles); do echo $(SUBDIR)/$$file; done
104
105 dist: $(distfiles)
106 echo rx-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q rx.c` > .fname
107 rm -rf `cat .fname`
108 mkdir `cat .fname`
109 ln $(distfiles) `cat .fname`
110 tar chzf `cat .fname`.tar.gz `cat .fname`
111 rm -rf `cat .fname` .fname
112
113
114 librx.a: $(libobjs) $(opt_objs)
115 rm -f librx.a
116 $(AR) $(AR_FLAGS) librx.a $(libobjs) $(opt_objs)
117 $(RANLIB) librx.a
118
119
120 depends:
121 touch $(gen_c_files) scmconfig.h
122 gcc -MM -I. -I../libsystas $(source)
123 rm $(gen_c_files) scmconfig.h
124 ###
125 hashrexp.o : hashrexp.c rxall.h rxnode.h rxbitset.h rxcset.h rxhash.h
126 rx.o : rx.c rx.h rxhash.h rxbitset.h rxall.h rxnfa.h _rx.h rxcset.h rxnode.h rxsuper.h
127 rxanal.o : rxanal.c rxall.h rxanal.h rxcset.h rxbitset.h rxnode.h rxsuper.h \
128 rxnfa.h _rx.h rxhash.h
129 rxbasic.o : rxbasic.c rxall.h rxbasic.h rxcontext.h rxnode.h rxbitset.h rxcset.h \
130 rxspencer.h rxproto.h rxunfa.h _rx.h rxhash.h rxanal.h rxsuper.h rxnfa.h inst-rxposix.h \
131 rxstr.h
132 rxbitset.o : rxbitset.c rxall.h rxbitset.h
133 rxcset.o : rxcset.c rxall.h rxcset.h rxbitset.h
134 rxdbug.o : rxdbug.c rxall.h rxgnucomp.h rxcset.h rxbitset.h rxnode.h rxnfa.h \
135 _rx.h rxhash.h
136 rxgnucomp.o : rxgnucomp.c rxall.h rxgnucomp.h rxcset.h rxbitset.h rxnode.h
137 rxhash.o : rxhash.c rxall.h rxhash.h rxbitset.h
138 rxnfa.o : rxnfa.c rxall.h rxnfa.h _rx.h rxhash.h rxbitset.h rxcset.h rxnode.h
139 rxnode.o : rxnode.c rxall.h rxnode.h rxbitset.h rxcset.h
140 rxposix.o : rxposix.c rxall.h rxposix.h rxspencer.h rxproto.h rxnode.h rxbitset.h \
141 rxcset.h rxunfa.h _rx.h rxhash.h rxanal.h rxsuper.h rxnfa.h inst-rxposix.h rxcontext.h \
142 rxgnucomp.h rxbasic.h rxsimp.h
143 rxsimp.o : rxsimp.c rxall.h rxsimp.h rxcset.h rxbitset.h rxnode.h
144 rxspencer.o : rxspencer.c rxall.h rxspencer.h rxproto.h rxnode.h rxbitset.h \
145 rxcset.h rxunfa.h _rx.h rxhash.h rxanal.h rxsuper.h rxnfa.h inst-rxposix.h
146 rxstr.o : rxstr.c rxall.h rxstr.h rxspencer.h rxproto.h rxnode.h rxbitset.h \
147 rxcset.h rxunfa.h _rx.h rxhash.h rxanal.h rxsuper.h rxnfa.h inst-rxposix.h rxcontext.h
148 rxsuper.o : rxsuper.c rxall.h rxsuper.h rxnfa.h _rx.h rxhash.h rxbitset.h rxcset.h \
149 rxnode.h
150 rxunfa.o : rxunfa.c rxall.h rx.h rxhash.h rxbitset.h rxunfa.h _rx.h rxcset.h \
151 rxnfa.h rxnode.h
152 rgx.o : rgx.c rgx.x