* Makefile.am (DEFS): Added. automake adds -I options to DEFS,
[bpt/guile.git] / qt / Makefile.am
dissimilarity index 60%
index bda848f..482c3be 100644 (file)
@@ -1,23 +1,49 @@
-## Process this file with automake to produce Makefile.in.
-
-AUTOMAKE_OPTIONS = foreign
-
-## subdirs are for making distributions only.
-SUBDIRS = md time
-
-lib_LIBRARIES = @target_libs@
-EXTRA_LIBRARIES = libqt.a
-
-libqt_a_SOURCES = qt.c copyright.h
-libqt_a_LIBADD = qtmds.o qtmdc.o
-
-qtmds.o: @qtmds_s@ 
-## FIXME use of -c with -o not portable.
-       $(COMPILE) -o qtmds.o @qtmds_s@
-
-qtmdc.o: @qtmdc_c@ @qtmd_h@
-## FIXME use of -c with -o not portable.
-       $(COMPILE) -o qtmdc.o @qtmdc_c@
-
-EXTRA_DIST = CHANGES README.MISC README.PORT b.h meas.c stp.c stp.h \
-PLUGIN/OPT Makefile.base config
+## Process this file with automake to produce Makefile.in.
+##
+##     Copyright (C) 1998 Free Software Foundation, Inc.
+##
+##   This file is part of GUILE.
+##   
+##   GUILE 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.
+##   
+##   GUILE 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 GUILE; see the file COPYING.  If not, write
+##   to the Free Software Foundation, Inc., 59 Temple Place, Suite
+##   330, Boston, MA 02111-1307 USA
+
+AUTOMAKE_OPTIONS = foreign
+
+## subdirs are for making distributions only.
+SUBDIRS = md time
+
+lib_LTLIBRARIES = @QTHREAD_LTLIBS@
+EXTRA_LTLIBRARIES = libqthreads.la
+
+## Prevent automake from adding extra -I options
+DEFS = @DEFS@
+INCLUDES = -I.. -I$(srcdir)/..
+
+libqthreads_la_SOURCES = qt.c copyright.h
+libqthreads_la_LIBADD = qtmds.lo qtmdc.lo
+libqthreads_la_DEPENDENCIES = qtmds.lo qtmdc.lo
+libqthreads_la_LDFLAGS = -rpath $(libdir)
+
+.s.lo:
+       $(LIBTOOL) --mode=compile $(COMPILE) $(qthread_asflags) -c $<
+qtmds.s:
+       ${LN_S} ${srcdir}/${qtmds_s} qtmds.s
+qtmdc.c:
+       ${LN_S} ${srcdir}/${qtmdc_c} qtmdc.c
+qtdmdb.s:
+       ${LN_S} ${srcdir}/${qtdmdb_s} qtdmdb.s
+
+EXTRA_DIST = CHANGES README.MISC README.PORT b.h meas.c stp.c stp.h \
+       Makefile.base config