OSDN Git Service

* Chill runtime moved into toplevel libchill.
[pf3gnuchains/gcc-fork.git] / libchill / Makefile.in
1 # Makefile for GNU CHILL compiler runtime library.
2 #   Copyright (C) 1987, 88, 90-94, 1998 Free Software Foundation, Inc.
3
4 #This file is part of GNU CC.
5
6 #GNU CC 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 CC 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 CC; see the file COPYING.  If not, write to
18 #the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
19
20 # This was cribbed from the libf2c, libiberty and libstdc++ Makefile.in
21 # files.  Some of this stuff may be unnecessary and worthless.
22
23 SHELL = /bin/sh
24
25 #### Start of system configuration section. ####
26
27 srcdir = @srcdir@
28 VPATH = @srcdir@
29 prefix = @prefix@
30 exec_prefix = @exec_prefix@
31 target_alias = @target_alias@
32 gcc_version = @gcc_version@
33 gcc_version_trigger = @gcc_version_trigger@
34
35 libdir = $(exec_prefix)/lib
36 libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)
37
38 # Multilib support variables.
39 MULTISRCTOP =
40 MULTIBUILDTOP =
41 MULTIDIRS =
42 MULTISUBDIR =
43 MULTIDO = true
44 MULTICLEAN = true
45
46 # Not configured per top-level version, since that doesn't get passed
47 # down at configure time, but overrridden by the top-level install
48 # target.
49 INSTALL = @INSTALL@
50 INSTALL_PROGRAM = @INSTALL_PROGRAM@
51 INSTALL_DATA = @INSTALL_DATA@
52
53 AR = @AR@
54 AR_FLAGS = rc
55
56 RANLIB = @RANLIB@
57
58 CC = @CC@
59 CFLAGS = @CFLAGS@
60 ALL_CFLAGS = -I. -I$(srcdir) $(CPPFLAGS) $(DEFS) $(CFLAGS)
61
62 .SUFFIXES:
63 .SUFFIXES: .c .o
64
65 .c.o:
66         $(CC) -c $(ALL_CFLAGS) $(INCLUDES) $<
67
68 # Lists of required functions for each archive.
69
70 LIBOBJS1 = allgmem.o allmem.o allocate.o cause.o exhstack.o exh.o retmem.o \
71            unhex.o unhex1.o rtsdummy.o terminate.o
72
73 IOOBJS = basicio.o chillstdio.o delete.o eoln.o existing.o format.o getassoc.o \
74          gettextaccess.o gettextindex.o gettextrecord.o getusage.o \
75          indexable.o ioerror.o isassociated.o outoffile.o readable.o \
76          readrecord.o sequencible.o settextaccess.o settextindex.o \
77          settextrecord.o variable.o writeable.o writerecord.o
78
79 PSOBJS = andps.o cardps.o concatps.o copyps.o diffps.o eqps.o ffsetclrps.o \
80         ffsetps.o flsetclrps.o flsetps.o inbitstr.o inps.o leps.o ltps.o \
81         neps.o notps.o orps.o setbitps.o setbits.o sliceps.o xorps.o
82
83 STROBJS = concatstr.o eqstr.o ltstr.o memmove.o
84
85 TIMEOBJS = abstime.o inttime.o waituntil.o remaintime.o convdurrtstime.o \
86            checkcycle.o
87
88 TASKOBJS = continue.o delaycase.o printbuffer.o printevent.o queuelength.o \
89            sendbuffer.o waitbuffer.o
90
91 OBJS = $(LIBOBJS1) $(IOOBJS) $(PSOBJS) $(STROBJS) $(TIMEOBJS) $(TASKOBJS)
92
93 libchill.a: $(OBJS)
94         $(AR) $(AR_FLAGS) $@ $(OBJS)
95         $(RANLIB) $@
96
97 $(PSOBJS): $(srcdir)/powerset.h
98 librmt.o: $(srcdir)/rtltypes.h
99 chillrt0.o: $(srcdir)/rtltypes.h $(srcdir)/iomodes.h $(srcdir)/auxtypes.h
100 $(LIBOBJS1): $(srcdir)/rtltypes.h
101 $(TIMEOBJS): $(srcdir)/rtltypes.h $(srcdir)/rts.h
102 $(TASKOBJS): $(srcdir)/rts.h $(srcdir)/rtltypes.h
103 $(IOOBJS): $(srcdir)/fileio.h $(srcdir)/bitstring.h $(srcdir)/auxtypes.h \
104            $(srcdir)/iomodes.h $(srcdir)/format.h $(srcdir)/ioerror.h
105
106 # Flags to pass to a recursive make.
107 FLAGS_TO_PASS = \
108         "AR=$(AR)" \
109         "AR_FLAGS=$(AR_FLAGS)" \
110         "CC=$(CC)" \
111         "CFLAGS=$(CFLAGS)" \
112         "LIBCFLAGS=$(LIBCFLAGS)" \
113         "EXTRA_OFILES=$(EXTRA_OFILES)" \
114         "HDEFINES=$(HDEFINES)" \
115         "INSTALL=$(INSTALL)" \
116         "INSTALL_DATA=$(INSTALL_DATA)" \
117         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
118         "LDFLAGS=$(LDFLAGS)" \
119         "LOADLIBES=$(LOADLIBES)" \
120         "PICFLAG=$(PICFLAG)" \
121         "RANLIB=$(RANLIB)" \
122         "SHELL=$(SHELL)"
123
124 all: chillrt0.o libchill.a
125         @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
126
127 Makefile: Makefile.in config.status
128         $(SHELL) config.status
129
130 config.status: configure
131         rm -f config.cache
132         CONFIG_SITE=no-such-file CC='$(CC)' AR='$(AR)' CFLAGS='$(CFLAGS)' \
133         CPPFLAGS='$(CPPFLAGS)' $(SHELL) config.status --recheck
134
135 ${srcdir}/configure: configure.in
136         rm -f config.cache
137         cd ${srcdir} && autoconf
138
139 install: all
140         $(INSTALL_DATA) libchill.a $(libsubdir)$(MULTISUBDIR)/libchill.a.n
141         $(RANLIB) $(libsubdir)$(MULTISUBDIR)/libchill.a.n
142         mv $(libsubdir)$(MULTISUBDIR)/libchill.a.n $(libsubdir)$(MULTISUBDIR)/libchill.a
143         $(INSTALL_DATA) chillrt0.o $(libsubdir)$(MULTISUBDIR)/chillrt0.o
144         @rootme=`pwd`/ ; export rootme ; \
145         $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
146
147
148 check uninstall install-strip dist installcheck installdirs:
149
150 mostlyclean:
151         rm -f *.o
152         @$(MULTICLEAN) multi-clean DO=mostlyclean
153
154 clean: mostlyclean
155         rm -f config.log
156         @$(MULTICLEAN) multi-clean DO=clean
157
158 distclean: clean
159         @$(MULTICLEAN) multi-clean DO=distclean
160         rm -f config.cache config.status Makefile configure
161
162 maintainer-clean realclean: distclean
163
164 .PHONY: mostlyclean clean distclean maintainer-clean all check uninstall \
165         install-strip dist installcheck installdirs 
166