3 # Copyright (C) 1996, Free Software Foundation, Inc.
5 # This file is part of GNU GUILE.
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)
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.
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.
26 exec_prefix = $(prefix)
27 libdir = $(exec_prefix)/lib
28 includedir = $(prefix)/include/threads
29 infodir = $(prefix)/info
33 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
42 XCFLAGS
= $(CFLAGS
) -I.
45 #### End of system configuration section. ####
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
52 default.Makefile null.README null.c \
53 axp
.1.Makefile axp
.2.Makefile axp.Makefile axp.README axp.c \
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 \
62 time_distfiles
= README.time assim cswap go init prim raw
64 all_objs
= qt.o qtmds.o qtmdc.o
69 $(AR
) $(AR_FLAGS
) libqt.a
$(all_objs
)
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.
78 for f in
${distfiles}; do \
79 ln
${srcdir}/$$f ${DISTDIR}; \
81 mkdir
${DISTDIR}/PLUGIN
82 for f in
${plugin_distfiles}; do \
83 ln
${srcdir}/PLUGIN
/$$f ${DISTDIR}/PLUGIN
; \
86 for f in
${md_distfiles}; do \
87 ln
${srcdir}/md
/$$f ${DISTDIR}/md
; \
90 for f in
${time_distfiles}; do \
91 ln
${srcdir}/time
/$$f ${DISTDIR}/time
; \
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);
103 -rm -f
$(libdir)/libqt.a
104 -rm -f
$(includedir)/qt.h
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
125 $(CC
) -o qtmds.o
-c
$(CPPFLAGS
) $(DEFS
) $(XCFLAGS
) -I
$(srcdir) @qtmds_s@
127 qtmdc.o
: @qtmdc_c@ @qtmd_h@
128 $(CC
) -o qtmdc.o
-c
$(CPPFLAGS
) $(DEFS
) $(XCFLAGS
) -I
$(srcdir) @qtmdc_c@