1 # Makefile for GNU CHILL compiler runtime library.
2 # Copyright (C) 1987, 88, 90-94, 1998, 1999 Free Software Foundation, Inc.
4 #This file is part of GNU CC.
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)
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.
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, 59 Temple Place - Suite 330,
19 #Boston, MA 02111-1307, USA. */
21 # This was cribbed from the libf2c, libiberty and libstdc++ Makefile.in
22 # files. Some of this stuff may be unnecessary and worthless.
26 #### Start of system configuration section. ####
31 exec_prefix = @
exec_prefix@
32 target_alias
= @target_alias@
33 gcc_version
= @gcc_version@
34 gcc_version_trigger
= @gcc_version_trigger@
36 libdir = $(exec_prefix)/lib
37 libsubdir
= $(libdir)/gcc-lib
/$(target_alias
)/$(gcc_version
)
39 # Multilib support variables.
47 # Not configured per top-level version, since that doesn't get passed
48 # down at configure time, but overrridden by the top-level install
51 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
52 INSTALL_DATA
= @INSTALL_DATA@
61 ALL_CFLAGS
= -I.
-I
$(srcdir) $(CPPFLAGS
) $(DEFS
) $(CFLAGS
)
67 $(CC
) -c
$(ALL_CFLAGS
) $(INCLUDES
) $<
69 # Lists of required functions for each archive.
71 LIBOBJS1
= allgmem.o allmem.o allocate.o cause.o exhstack.o exh.o retmem.o \
72 unhex.o unhex1.o rtsdummy.o terminate.o
74 IOOBJS
= basicio.o chillstdio.o delete.o eoln.o existing.o format.o getassoc.o \
75 gettextaccess.o gettextindex.o gettextrecord.o getusage.o \
76 indexable.o ioerror.o isassociated.o outoffile.o readable.o \
77 readrecord.o sequencible.o settextaccess.o settextindex.o \
78 settextrecord.o variable.o writeable.o writerecord.o
80 PSOBJS
= andps.o cardps.o concatps.o copyps.o diffps.o eqps.o ffsetclrps.o \
81 ffsetps.o flsetclrps.o flsetps.o inbitstr.o inps.o leps.o ltps.o \
82 neps.o notps.o orps.o setbitps.o setbits.o sliceps.o xorps.o
84 STROBJS
= concatstr.o eqstr.o ltstr.o memmove.o
86 TIMEOBJS
= abstime.o inttime.o waituntil.o remaintime.o convdurrtstime.o \
89 TASKOBJS
= continue.o delaycase.o printbuffer.o printevent.o queuelength.o \
90 sendbuffer.o waitbuffer.o
92 OBJS
= $(LIBOBJS1
) $(IOOBJS
) $(PSOBJS
) $(STROBJS
) $(TIMEOBJS
) $(TASKOBJS
)
95 $(AR
) $(AR_FLAGS
) $@
$(OBJS
)
98 allgmem.o
: allgmem.c rtltypes.h
99 allmem.o
: allmem.c rtltypes.h
100 allocate.o
: allocate.c rtltypes.h
102 exhstack.o
: exhstack.c rtltypes.h
103 exh.o
: exh.c rtltypes.h
107 rtsdummy.o
: rtsdummy.c rtltypes.h
108 terminate.o
: terminate.c rtltypes.h
109 basicio.o
: basicio.c fileio.h
110 chillstdio.o
: chillstdio.c iomodes.h
111 delete.o
: delete.c fileio.h
112 eoln.o
: eoln.c fileio.h
113 existing.o
: existing.c fileio.h
114 format.o
: format.c bitstring.h auxtypes.h iomodes.h format.h fileio.h ioerror.h
115 getassoc.o
: getassoc.c fileio.h
116 gettextaccess.o
: gettextaccess.c fileio.h
117 gettextindex.o
: gettextindex.c fileio.h
118 gettextrecord.o
: gettextrecord.c fileio.h
119 getusage.o
: getusage.c fileio.h
120 indexable.o
: indexable.c fileio.h
122 isassociated.o
: isassociated.c fileio.h
123 outoffile.o
: outoffile.c fileio.h
124 readable.o
: readable.c fileio.h
125 readrecord.o
: readrecord.c fileio.h
126 sequencible.o
: sequencible.c fileio.h
127 settextaccess.o
: settextaccess.c fileio.h
128 settextindex.o
: settextindex.c fileio.h
129 settextrecord.o
: settextrecord.c fileio.h
130 variable.o
: variable.c fileio.h
131 writeable.o
: writeable.c fileio.h
132 writerecord.o
: writerecord.c fileio.h
133 andps.o
: andps.c powerset.h
134 cardps.o
: cardps.c powerset.h
135 concatps.o
: concatps.c powerset.h
136 copyps.o
: copyps.c powerset.h
137 diffps.o
: diffps.c powerset.h
138 eqps.o
: eqps.c powerset.h
139 ffsetclrps.o
: ffsetclrps.c powerset.h
140 ffsetps.o
: ffsetps.c powerset.h
141 flsetclrps.o
: flsetclrps.c powerset.h
142 flsetps.o
: flsetps.c powerset.h
143 inbitstr.o
: inbitstr.c powerset.h
144 inps.o
: inps.c powerset.h
145 leps.o
: leps.c powerset.h
146 ltps.o
: ltps.c powerset.h
147 neps.o
: neps.c powerset.h
148 notps.o
: notps.c powerset.h
149 orps.o
: orps.c powerset.h
150 setbitps.o
: setbitps.c powerset.h
151 setbits.o
: setbits.c powerset.h
152 sliceps.o
: sliceps.c powerset.h
153 xorps.o
: xorps.c powerset.h
154 concatstr.o
: concatstr.c
158 abstime.o
: abstime.c rtltypes.h
160 waituntil.o
: waituntil.c rtltypes.h rts.h
161 remaintime.o
: remaintime.c rts.h
162 convdurrtstime.o
: convdurrtstime.c rts.h
163 checkcycle.o
: checkcycle.c rtltypes.h rts.h
164 continue.o
: continue.c rtltypes.h rts.h
165 delaycase.o
: delaycase.c rtltypes.h rts.h
166 printbuffer.o
: printbuffer.c rtltypes.h rts.h
167 printevent.o
: printevent.c rtltypes.h rts.h
168 queuelength.o
: queuelength.c rtltypes.h rts.h
169 sendbuffer.o
: sendbuffer.c rtltypes.h rts.h
170 waitbuffer.o
: waitbuffer.c rtltypes.h rts.h
172 $(PSOBJS
): $(srcdir)/powerset.h
173 librmt.o
: $(srcdir)/rtltypes.h
174 chillrt0.o
: $(srcdir)/rtltypes.h
$(srcdir)/iomodes.h
$(srcdir)/auxtypes.h
175 $(LIBOBJS1
): $(srcdir)/rtltypes.h
176 $(TIMEOBJS
): $(srcdir)/rtltypes.h
$(srcdir)/rts.h
177 $(TASKOBJS
): $(srcdir)/rts.h
$(srcdir)/rtltypes.h
178 $(IOOBJS
): $(srcdir)/fileio.h
$(srcdir)/bitstring.h
$(srcdir)/auxtypes.h \
179 $(srcdir)/iomodes.h
$(srcdir)/format.h
$(srcdir)/ioerror.h
181 # Flags to pass to a recursive make.
184 "AR_FLAGS=$(AR_FLAGS)" \
187 "LIBCFLAGS=$(LIBCFLAGS)" \
188 "EXTRA_OFILES=$(EXTRA_OFILES)" \
189 "HDEFINES=$(HDEFINES)" \
190 "INSTALL=$(INSTALL)" \
191 "INSTALL_DATA=$(INSTALL_DATA)" \
192 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
193 "LDFLAGS=$(LDFLAGS)" \
194 "LOADLIBES=$(LOADLIBES)" \
195 "PICFLAG=$(PICFLAG)" \
199 all: chillrt0.o libchill.a
200 @
$(MULTIDO
) $(FLAGS_TO_PASS
) multi-do DO
=all
202 Makefile
: Makefile.in config.status
203 $(SHELL
) config.status
205 config.status
: configure
207 CONFIG_SITE
=no-such-file CC
='$(CC)' AR
='$(AR)' CFLAGS
='$(CFLAGS)' \
208 CPPFLAGS
='$(CPPFLAGS)' $(SHELL
) config.status
--recheck
210 ${srcdir}/configure
: configure.in
212 cd
${srcdir} && autoconf
215 $(INSTALL_DATA
) libchill.a
$(libsubdir
)$(MULTISUBDIR
)/libchill.a.n
216 $(RANLIB
) $(libsubdir
)$(MULTISUBDIR
)/libchill.a.n
217 mv
$(libsubdir
)$(MULTISUBDIR
)/libchill.a.n
$(libsubdir
)$(MULTISUBDIR
)/libchill.a
218 $(INSTALL_DATA
) chillrt0.o
$(libsubdir
)$(MULTISUBDIR
)/chillrt0.o
219 @rootme
=`pwd`/ ; export rootme
; \
220 $(MULTIDO
) $(FLAGS_TO_PASS
) multi-do DO
=install
223 check uninstall install-strip
dist installcheck installdirs info install-info clean-info
dvi:
227 @
$(MULTICLEAN
) multi-clean DO
=mostlyclean
231 @
$(MULTICLEAN
) multi-clean DO
=clean
234 @
$(MULTICLEAN
) multi-clean DO
=distclean
235 rm -f config.cache config.status Makefile configure
237 maintainer-clean
realclean: distclean
239 .PHONY
: mostlyclean clean distclean maintainer-clean
all check uninstall \
240 install-strip
dist installcheck installdirs