* Makefile.in (distfiles): Update for the new directory structure.
[bpt/guile.git] / qt / Makefile.in
1 # Makefile for libqt
2 #
3 # Copyright (C) 1996, Free Software Foundation, Inc.
4 #
5 # This file is part of GNU GUILE.
6 #
7 # GNU GUILE is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
11 #
12 # GNU GUILE is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with GNU GUILE; see the file COPYING. If not, write to
19 # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
20
21 SHELL = /bin/sh
22 srcdir = @srcdir@
23 VPATH = @srcdir@
24
25 prefix = @prefix@
26 exec_prefix = $(prefix)
27 libdir = $(exec_prefix)/lib
28 includedir = $(prefix)/include/threads
29 infodir = $(prefix)/info
30
31 CC = @CC@
32 INSTALL = @INSTALL@
33 INSTALL_PROGRAM = @INSTALL_PROGRAM@
34
35 DEFS = @DEFS@
36 LIBS = @LIBS@
37
38 AR_FLAGS = rc
39 RANLIB = @RANLIB@
40
41 CFLAGS = -g
42 XCFLAGS = $(CFLAGS) -I.
43 LDFLAGS = -g
44
45 #### End of system configuration section. ####
46
47 distfiles = .cvsignore CHANGES ChangeLog INSTALL Makefile.base \
48 Makefile.in README README.MISC README.PORT b.h config configure \
49 configure.in copyright.h meas.c qt.c qt.h.in stp.c stp.h
50 plugin_distfiles = OPT greet
51 md_distfiles = \
52 default.Makefile null.README null.c \
53 axp.1.Makefile axp.2.Makefile axp.Makefile axp.README axp.c \
54 axp.h axp.s axp_b.s \
55 hppa-cnx.Makefile hppa.Makefile hppa.h hppa.s hppa_b.s \
56 i386.README i386.h i386.s i386_b.s \
57 ksr1.Makefile ksr1.h ksr1.s ksr1_b.s \
58 m88k.Makefile m88k.c m88k.h m88k.s m88k_b.s \
59 mips-irix5.s mips.h mips.s mips_b.s \
60 solaris.README sparc.h sparc.s sparc_b.s _sparc.s _sparc_b.s \
61 vax.h vax.s vax_b.s
62 time_distfiles = README.time assim cswap go init prim raw
63
64 all_objs= qt.o qtmds.o qtmdc.o
65
66 all: @target_all@
67
68 libqt.a: $(all_objs)
69 $(AR) $(AR_FLAGS) libqt.a $(all_objs)
70 $(RANLIB) libqt.a
71
72 # The `dist' target in the top-level Makefile uses this `dist-dir'
73 # target to select the appropriate files for distribution from the
74 # directory containing this Makefile.
75 .PHONY: dist-dir
76 dist-dir:
77 mkdir ${DISTDIR}
78 for f in ${distfiles}; do \
79 ln ${srcdir}/$$f ${DISTDIR}; \
80 done
81 mkdir ${DISTDIR}/PLUGIN
82 for f in ${plugin_distfiles}; do \
83 ln ${srcdir}/PLUGIN/$$f ${DISTDIR}/PLUGIN; \
84 done
85 mkdir ${DISTDIR}/md
86 for f in ${md_distfiles}; do \
87 ln ${srcdir}/md/$$f ${DISTDIR}/md; \
88 done
89 mkdir ${DISTDIR}/time
90 for f in ${time_distfiles}; do \
91 ln ${srcdir}/time/$$f ${DISTDIR}/time; \
92 done
93
94
95 install: all
96 test -d $(prefix) || mkdir $(prefix)
97 test -d $(libdir) || mkdir $(libdir)
98 $(INSTALL) libqt.a $(libdir)/libqt.a
99 $(RANLIB) $(libdir)/libqt.a
100 $(INSTALL) $(srcdir)/qt.h $(includedir);
101
102 uninstall:
103 -rm -f $(libdir)/libqt.a
104 -rm -f $(includedir)/qt.h
105
106 info:
107
108 clean:
109 -rm -f guile
110 -rm -f $(all_objs)
111
112 distclean: clean
113 -rm -f config.cache
114 -rm -f config.log
115 -rm -f config.status
116
117 realclean: distclean
118
119 ###
120
121 qt.o: $(srcdir)/qt.c @qtmd_h@ qt.h $(srcdir)/copyright.h
122 $(CC) -o qt.o -c $(CPPFLAGS) $(DEFS) $(XCFLAGS) -I$(srcdir) $(srcdir)/qt.c
123
124 qtmds.o: @qtmds_s@
125 $(CC) -o qtmds.o -c $(CPPFLAGS) $(DEFS) $(XCFLAGS) -I$(srcdir) @qtmds_s@
126
127 qtmdc.o: @qtmdc_c@ @qtmd_h@
128 $(CC) -o qtmdc.o -c $(CPPFLAGS) $(DEFS) $(XCFLAGS) -I$(srcdir) @qtmdc_c@
129