summaryrefslogtreecommitdiff
path: root/gnu/lib/libg++/librx/Makefile.in
blob: f3a314679b9c5d6bad7c19a21bd02bfe0f625bf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# Makefile for librx
# Copyright (C) 1994 Free Software Foundation, Inc.
# 
# This file is part of GNU Rx
# 
# GNU Rx is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# 
# GNU Rx is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with GNU SED; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

SHELL = /bin/sh

srcdir = @srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
includedir = $(prefix)/include
infodir = $(prefix)/info

#### Start of system configuration section. ####

CC = @CC@
INSTALL = @INSTALL@
DEFS = @DEFS@
CFLAGS = -g 
LIBCFLAGS = $(CFLAGS)
AR = ar
AR_FLAGS = rc
RANLIB = @RANLIB@
PICFLAG =

# @target_frag@

source=rx.c
headers=rx.h
ancillery=configure.in Makefile.in configure \
	  COPYING.LIB INSTALL INSTALL.rx ChangeLog DOC 
distfiles=$(source) $(headers) $(ancillery)
libobjs=rx.o

COMPILE.c = $(CC) -c $(LIBCFLAGS) $(DEFS) -I$(srcdir)
.c.o:
	if [ -n "$(PICFLAG)" ]; then \
	  $(COMPILE.c) $(PICFLAG) $< -o pic/$@; \
	else true; fi
	$(COMPILE.c) $<

all: librx.a

install: all
	$(INSTALL) librx.a $(libdir)/librx.a
	$(RANLIB) $(libdir)/librx.a
	$(INSTALL) $(srcdir)/rx.h $(includedir)/rx.h


uninstall:
	rm $(libdir)/librx.a
	rm $(includedir)/rx.h

clean:
	-rm -rf $(libobjs) librx.a pic stamp-picdir

distclean: clean
	-rm Makefile config.status config.cache config.log

mostlyclean: clean

maintainer-clean realclean: distclean

TAGS:
	etags $(source)

info:

install-info:

clean-info:

dvi:

check:

dist:	$(distfiles)
	echo rx-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q rx.c` > .fname
	rm -rf `cat .fname`
	mkdir `cat .fname`
	ln $(distfiles) `cat .fname`
	tar chzf `cat .fname`.tar.gz `cat .fname`
	rm -rf `cat .fname` .fname


librx.a: $(libobjs)
	rm -f librx.a
	$(AR) $(AR_FLAGS) librx.a rx.o
	$(RANLIB) librx.a

rx.o: stamp-picdir rx.c rx.h

stamp-picdir:
	if [ -n "$(PICFLAG)" ] && [ ! -d pic ]; then \
	  mkdir pic; \
	else true; fi
	touch stamp-picdir