# $Header: /home/amb/cxref/query/RCS/Makefile.in 1.7 2002/04/21 17:04:03 amb Exp $ # # C Cross Referencing & Documentation tool. Version 1.5d. # # Query Program Makefile. # # Written by Andrew M. Bishop # # This file Copyright 1995,96,99,2000,01,02 Andrew M. Bishop # It may be distributed under the GNU Public License, version 2, or # any higher version. See section COPYING of the GNU Public license # for conditions under which this file may be redistributed. # SHELL=/bin/sh # autoconf things srcdir=@srcdir@ VPATH=@srcdir@ EXEEXT=@EXEEXT@ # The installation locations prefix=@prefix@ exec_prefix=@exec_prefix@ bindir=$(DESTDIR)@bindir@ mandir=$(DESTDIR)@mandir@ # The installation program. INSTALL=@INSTALL@ # The C compiler and linker CC=@CC@ LD=@CC@ CFLAGS=@CFLAGS@ LDFLAGS=@LDFLAGS@ ######## INCLUDE= LIBRARY=@LIBS@ ######## CXREF_QUERY=cxref-query$(EXEEXT) programs : $(CXREF_QUERY) ######## OBJ_FILES=query.o \ input.o output.o \ ../memory.o ../slist.o #### $(CXREF_QUERY) : $(OBJ_FILES) $(LD) $(LDFLAGS) $(OBJ_FILES) -o $@ $(LIBRARY) ######## install : $(CXREF_QUERY) $(INSTALL) -m 755 $(CXREF_QUERY) $(bindir) $(INSTALL) -m 644 $(srcdir)/README.man $(mandir)/man1/cxref-query.1 install-win32 : $(CXREF_QUERY) $(INSTALL) -m 755 $(CXREF_QUERY) $(bindir) ######## clean : -rm -f $(CXREF_QUERY) core *.o *~ #### distclean : clean -rm -f Makefile ######## .SUFFIXES: .SUFFIXES: .c .o .c.o: $(CC) -c $(CFLAGS) $< -o $@ $(INCLUDE) query.o : query.c query.h ../cxref.h ../datatype.h ../memory.h input.o : input.c query.h ../cxref.h ../datatype.h ../memory.h output.o : output.c query.h ../cxref.h ../datatype.h ../memory.h ../memory.o: ../memory.c ../memory.h cd .. && $(MAKE) memory.o ../slist.o : ../slist.c ../cxref.h ../datatype.h ../memory.h cd .. && $(MAKE) slist.o ########