# $Header: /home/amb/CVS/cxref/query/Makefile.in,v 1.10 2010-10-19 18:18:28 amb Exp $ # # C Cross Referencing & Documentation tool. Version 1.6d. # # Query Program Makefile. # # Written by Andrew M. Bishop # # This file Copyright 1995-2010 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. # # autoconf things srcdir=@srcdir@ VPATH=@srcdir@ # The installation locations prefix=@prefix@ exec_prefix=@exec_prefix@ datarootdir=@datarootdir@ 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=-I@srcdir@/../src LIBRARY=@LIBS@ ######## programs : cxref-query ######## install : cxref-query [ -d $(bindir) ] || $(INSTALL) -d $(bindir) $(INSTALL) -m 755 cxref-query $(bindir) [ -d $(mandir)/man1 ] || $(INSTALL) -d $(mandir)/man1 $(INSTALL) -m 644 $(srcdir)/README.man $(mandir)/man1/cxref-query.1 install-win32 : cxref-query [ -d $(bindir) ] || $(INSTALL) -d $(bindir) $(INSTALL) -m 755 cxref-query.exe $(bindir) ######## clean : -rm -f cxref-query core *.o *~ #### distclean : clean -rm -f Makefile ######## OBJ_FILES=query.o \ input.o output.o \ ../src/memory.o ../src/slist.o #### cxref-query : $(OBJ_FILES) $(LD) $(LDFLAGS) $(OBJ_FILES) -o $@ $(LIBRARY) ######## .SUFFIXES: .SUFFIXES: .c .o .c.o: $(CC) -c $(CFLAGS) $< -o $@ $(INCLUDE) query.o : query.c query.h ../src/cxref.h ../src/datatype.h ../src/memory.h input.o : input.c query.h ../src/cxref.h ../src/datatype.h ../src/memory.h output.o : output.c query.h ../src/cxref.h ../src/datatype.h ../src/memory.h ../src/memory.o: ../src/memory.c ../src/memory.h cd ../src && $(MAKE) memory.o ../src/slist.o : ../src/slist.c ../src/cxref.h ../src/datatype.h ../src/memory.h cd ../src && $(MAKE) slist.o ########