# $Header: /home/amb/cxref/query/RCS/Makefile.in 1.9 2004/06/22 17:31:53 amb Exp $ # # C Cross Referencing & Documentation tool. Version 1.6. # # Query Program Makefile. # # Written by Andrew M. Bishop # # This file Copyright 1995,96,99,2000,01,02,04 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=. # The installation locations prefix= exec_prefix=${prefix} bindir=$(DESTDIR)${exec_prefix}/bin mandir=$(DESTDIR)${prefix}/share/man # The installation program. INSTALL=/usr/bin/install -c -o root -g wheel INSTALL_PROGRAM=install -s -o root -g wheel -m 555 INSTALL_SCRIPT=install -o root -g wheel -m 555 INSTALL_DATA=install -o root -g wheel -m 444 # The C compiler and linker CC=cc LD=cc CFLAGS=-fno-common LDFLAGS= ######## INCLUDE=-I./../src LIBRARY= ######## programs : cxref-query ######## install : cxref-query [ -d $(bindir) ] || $(INSTALL) -d $(bindir) $(INSTALL_PROGRAM) cxref-query $(bindir) [ -d $(mandir)/man1 ] || $(INSTALL) -d $(mandir)/man1 $(INSTALL_DATA) $(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 ########