# Makefile for GNU MP/mpq functions # Copyright (C) 1991, 1993, 1994, 1996 Free Software Foundation, Inc. # This file is part of the GNU MP Library. # The GNU MP Library is free software; you can redistribute it and/or modify # it under the terms of the GNU Library General Public License as published by # the Free Software Foundation; either version 2 of the License, or (at your # option) any later version. # The GNU MP Library 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 Library General Public # License for more details. # You should have received a copy of the GNU Library General Public License # along with the GNU MP Library; see the file COPYING.LIB. If not, write to # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, # MA 02111-1307, USA. srcdir = . CC = gcc CFLAGS = -g -O AR = ar AR_FLAGS = rc RANLIB = ranlib RANLIB_TEST = [ -f /usr/bin/ranlib -o -f /bin/ranlib ] SHELL = /bin/sh #### host and target specific makefile fragments come in here. ### MPQ_SRCS = add.c canonicalize.c clear.c cmp.c cmp_ui.c div.c get_d.c \ get_den.c get_num.c init.c inv.c mul.c neg.c set.c set_den.c set_num.c \ set_si.c set_ui.c sub.c equal.c set_z.c MPQ_OBJS = add.o canonicalize.o clear.o cmp.o cmp_ui.o div.o get_d.o \ get_den.o get_num.o init.o inv.o mul.o neg.o set.o set_den.o set_num.o \ set_si.o set_ui.o sub.o equal.o set_z.o INCLUDES = -I. -I.. -I../mpn -I$(srcdir)/.. libmpq.a: Makefile $(MPQ_OBJS) rm -f $@ $(AR) $(AR_FLAGS) $@ $(MPQ_OBJS) if $(RANLIB_TEST) ; then $(RANLIB) $@; else true; fi .c.o: $(CC) -c $(INCLUDES) $(CFLAGS) $(XCFLAGS) $< clean mostlyclean: rm -f *.o libmpq.a -cd tests; $(MAKE) $@ distclean maintainer-clean: clean rm -f Makefile config.status -cd tests; $(MAKE) $@ Makefile: $(srcdir)/Makefile.in $(SHELL) ./config.status H = $(srcdir)/../gmp.h $(srcdir)/../gmp-impl.h ../mpn/gmp-mparam.h add.o: $(srcdir)/add.c $(H) canonicalize.o: $(srcdir)/canonicalize.c $(H) clear.o: $(srcdir)/clear.c $(H) cmp.o: $(srcdir)/cmp.c $(H) $(srcdir)/../longlong.h cmp_ui.o: $(srcdir)/cmp_ui.c $(H) div.o: $(srcdir)/div.c $(H) equal.o: $(srcdir)/equal.c $(H) get_d.o: $(srcdir)/get_d.c $(H) $(srcdir)/../longlong.h get_den.o: $(srcdir)/get_den.c $(H) get_num.o: $(srcdir)/get_num.c $(H) init.o: $(srcdir)/init.c $(H) inv.o: $(srcdir)/inv.c $(H) mul.o: $(srcdir)/mul.c $(H) neg.o: $(srcdir)/neg.c $(H) set.o: $(srcdir)/set.c $(H) set_den.o: $(srcdir)/set_den.c $(H) set_num.o: $(srcdir)/set_num.c $(H) set_si.o: $(srcdir)/set_si.c $(H) set_ui.o: $(srcdir)/set_ui.c $(H) set_z.o: $(srcdir)/set_z.c $(H) sub.o: $(srcdir)/sub.c $(H)